Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed backups suggest running "velero Backup logs [...]" (typo on the command) #7048

Open
SamuAlfageme opened this issue Dec 17, 2024 · 0 comments
Labels
kind/design Categorizes issue or PR as related to design. sig/ui Denotes a PR or issue as being assigned to SIG UI.

Comments

@SamuAlfageme
Copy link
Contributor

What is the problem, where is it and why is it an issue?

When inspecting the message on the Web UI for a failed backup, the following message appears:

Image

End-users will reproduce the command to run from the error message, resulting on:

velero Backup logs
Error: unknown command "Backup" for "velero"

Did you mean this?
	backup
	backup-location

Run 'velero --help' for usage.
An error occurred: unknown command "Backup" for "velero"

Did you mean this?
	backup
	backup-location

(The nested error message from velero is a different story...)

However, the message on the Phase from velero backup describe... contains the right wording:

velero backup describe
Name:         test-[...]
Namespace:    velero
Labels:       velero.io/storage-location=default-cluster-backup-bsl
Annotations:  velero.io/resource-timeout=10m0s
              velero.io/source-cluster-k8s-gitversion=v1.31.3
              velero.io/source-cluster-k8s-major-version=1
              velero.io/source-cluster-k8s-minor-version=31

Phase:  Failed (run `velero backup logs test-[...]` for more information)

So I'm not sure how that wrong casing reached the Web UI.

The API request containing the backup information has no trace of this message either:
curl 'https://<KKP>/api/v2/projects/5rwv2wjfx6/clusters/s75kqvxjkq/clusterbackup' 
[
    {
        "name": "test-[...]",
        "id": "b7315c19-e75c-4d44-be63-2aed8684ce01",
        "spec": {
            "includedNamespaces": [
                "cloud-init-settings",
                "default",
                "kube-node-lease",
                "kube-public",
                "kube-system",
                "kubernetes-dashboard",
                "velero"
            ],
            "storageLocation": "default-cluster-backup-bsl",
            "clusterid": "s75kqvxjkq",
            "ttl": "720h0m0s",
            "status": "Failed",
            "createdAt": "2024-12-16T08:20:46Z"
        }
    }
]

Suggest how to fix it, if possible

Prevent Backup from being uppercase as it induces errors on unexperienced users.

@SamuAlfageme SamuAlfageme added kind/design Categorizes issue or PR as related to design. sig/ui Denotes a PR or issue as being assigned to SIG UI. labels Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/design Categorizes issue or PR as related to design. sig/ui Denotes a PR or issue as being assigned to SIG UI.
Projects
None yet
Development

No branches or pull requests

1 participant