-
Notifications
You must be signed in to change notification settings - Fork 168
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
External snapshot deletion failure modification! #5177
Conversation
LOGS for Testcase runs:
After Patch :
|
In libvirt version lesser than 9.0.0 external snapshot deletion was unsupported, but the testcase is failing now with the error message as "Snapshot delete succeed but expect fail" because the deletion is supported now with external disk. For reference : https://libvirt.org/news.html#v9-0-0-2023-01-16 Signed-off-by: Anushree Mathur <[email protected]>
@@ -439,7 +439,7 @@ def run(test, params, env): | |||
test.fail("Snapshot xml file %s missing" | |||
% snap_xml_path) | |||
else: | |||
if status_error: | |||
if (not libvirt_version.version_compare(9, 0, 0)) and status_error: |
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.
Will this check also work for libvirt 9.1.0? Can we make it generic?
if libvirt_version < 9.0.0 and status error
fail(...)
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.
@sacsant It will work for all the libvirt_version because the version compare will take the libvirt version and then check whether it is greater than to the specified libvirt version or not then will return true or false accordingly!
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.
Thanks, then we are good with the proposed changes.
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.
LGTM
@chunfuwen @dzhengfy Could you review this PR! |
@chunfuwen @dzhengfy Could you review this PR! |
@Yingshun @luckyh @yalzhang @chunfuwen @dzhengfy Could you review and merge this PR! |
@Yingshun @luckyh @yalzhang @chunfuwen @dzhengfy Could you review and merge this PR! I have already got 2 LGTMs |
1 similar comment
@Yingshun @luckyh @yalzhang @chunfuwen @dzhengfy Could you review and merge this PR! I have already got 2 LGTMs |
A notification for libvirt external snapshot deletion: there is an issue with deleting the external snapshot with multiple children snapshots: https://gitlab.com/libvirt/libvirt/-/issues/534. It is fixed in libvirt v9.10.0 |
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.
no impact for downstream testing since we have added it into skiplist
@chunfuwen @dzhengfy I have got 4 approvals. Could you please review and merge this PR! |
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.
lgtm
In libvirt version lesser than 9.0.0 external snapshot deletion was unsupported, but the testcase is failing now with the error message as "Snapshot delete succeed but expect fail" because the deletion is supported now with external disk.
For reference : https://libvirt.org/news.html#v9-0-0-2023-01-16
Signed-off-by: Anushree Mathur [email protected]