-
Notifications
You must be signed in to change notification settings - Fork 75
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
Adding check if disk description is empty #46
Adding check if disk description is empty #46
Conversation
Signed-off-by: Slavina Sobadjieva <slavina.rumenova@gmail.com>
fb55440
to
50f2ecb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This lgtm and thank you.
I wonder if it'd be useful to add a warning on LN 294 that the description is not being used.
Any update on this one ? :) |
We are running into this issue with disks that do not have a description. When can we expect a new release for the plugin? |
I am going to push an image for the next release of this plugin ( |
The v1.2.0 image for this plugin is available. @jravetch thanks for the callout, I'm making a note to add this to the release changelog. I haven't cut that yet, we are testing things first. We would like for people to upgrade Velero as they upgrade their plugins but there is no known compatibility issues between the new v1.2.0 and the earlier versions of Velero. |
@carlisia I updated the deployment to use the new plugin version, but I am still getting the same error. Below is the output when I describe the latest backup run
Why isn't the backup format version changed? Am I missing something? |
Let me look into it. Why did you expect the backup format version to be different? Also, let me see what your backup log says, please paste all of it for me. |
Oh I thought the format version was tied to the plugin version. Here's the output of the logs, grepping only for errors.
Checking the description of the disk, it's not in JSON, just a string. So the plugin is still throwing the error and marking the backup as partially failed. |
Just for sanity, what's the output of |
|
So i believe if this line is a string, but not JSON, the condition will still fail. |
Unfortunately I didn't verify that a test be added for this new condition, which would've served as a double purpose of clarifying the intent of the change. The conditions that determine if Velero tag will be applied or not are listed here: |
So there is already a test case. Can we change the error log to just info instead?
|
In order to prevent velero backups of being marked as PartialyFailed for disks, having no description set (as it is an optional argument), adding a check if the disk description is empty before parsing the description json. If empty only the velero tags are set on the snapshot.
Change fixes vmware-tanzu/velero#3149.
Signed-off-by: Slavina Sobadjieva slavina.rumenova@gmail.com