-
Notifications
You must be signed in to change notification settings - Fork 94
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
Velero Collector and Analyzer #806
Comments
initial thoughts: some more collectors:
important note: when the local volume provider plugin is configured, it will be an init container in the velero deployment, we should get the logs for it as well when possible. also, that means that you'd have to pass ideas for analyzers:
i'll add more if i think of anything else. |
I'll start getting into this over the next couple of days, once I familiarise myself with Velero itself first 👍 |
Running out of memory: Detect how many objects are in storage and warn if the number is close enough to lead restic to run out of memory |
Some sample logs from recent support issues, that would have been helped by this analyzer: Permissions issues on the backup location:
Files got removed during backup (e.g. a database without getting an application level backup):
inconsistent state between the backupstoragelocation and the object store that velero uses, we resolved this by deleting the default restic repository manually and restarting Velero so that it would be recreated.
Some other ideas:
|
@adamancini velero has The codebase is https://github.com/vmware-tanzu/velero/blob/main/pkg/cmd/cli/debug/debug.go |
Recently discovered the following working a support issue:
When this error is thrown it means that the particular volume won't be backed up likely due to a plugin issue for a particular storage provider. Full error was:
The OpenEBS plugin which only has support for cstor and not localpv was being used instead of a filesystem backup |
|
|
installing an older velero (1.9.x) to check custom resource differences
|
Signed-off-by: Archit Sharma <[email protected]>
Signed-off-by: Archit Sharma <[email protected]>
* test velero spec * local watch script for building troubleshoot * need to get an older velero library to support restic
Signed-off-by: Archit Sharma <[email protected]>
Signed-off-by: Archit Sharma <[email protected]>
* test velero spec * local watch script for building troubleshoot * need to get an older velero library to support restic
Signed-off-by: Archit Sharma <[email protected]>
analyzer work #1366 |
* test velero spec * need to get an older velero library to support restic
Signed-off-by: Archit Sharma <[email protected]>
* test velero spec * need to get an older velero library to support restic Signed-off-by: Archit Sharma <[email protected]>
Signed-off-by: Archit Sharma <[email protected]>
* updated schemas Signed-off-by: Archit Sharma <[email protected]>
* test velero spec * need to get an older velero library to support restic Signed-off-by: Archit Sharma <[email protected]>
* updated schemas Signed-off-by: Archit Sharma <[email protected]>
* updated schemas * velero analyzer without collector Signed-off-by: Archit Sharma <[email protected]>
* updated schemas * velero analyzer without collector Signed-off-by: Archit Sharma <[email protected]>
* updated schemas * velero analyzer without collector Signed-off-by: Archit Sharma <[email protected]>
* updated schemas * velero analyzer without collector Signed-off-by: Archit Sharma <[email protected]>
* feat: add velero analyzer (#806) * updated schema * analyzer without collector * tests * covers deprecated Restic repository type * velero version from deployment image to check deprecated type * read for both velero pod kinds (velero*, node-agent*) --------- Signed-off-by: Archit Sharma <[email protected]>
Describe the rationale for the suggested feature.
Velero is a toolset that allows you to backup/restore Kubernetes resources and persistent volumes. There are Kubernetes clusters where both Troubleshoot and Velero are commonly used and often times there is a lack of information and analysis that happens on the state of Velero in those environments
Describe the feature
A Velero Collector and Analyzer can be added to Support Bundle and Preflight specs.
The Velero Collector can collect information such as:
kubectl logs deploy/velero -n <velero-namespace> -c velero
kubectl get bsl -n <velero-namespace>
kubectl get bsl -n <velero-namespace> -oyaml
kubectl get resticrepositories -n <velero-namespace>
kubectl get resticrepositories -n <velero-namespace> -oyaml
velero get backups
The Velero Analyzer can provide the following analysis:
Additional context
The text was updated successfully, but these errors were encountered: