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

crypto_create_destroy: add checkpoint #5040

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

smitterl
Copy link
Contributor

Depends on avocado-framework/avocado-vt#3723

virsh nodedev-dumpxml didn't list attr elements on transient devices. Add checkpoint.

@smitterl
Copy link
Contributor Author

JOB ID     : 1bce45dc12c343bcac6cbdbf84007295442a6929
JOB LOG    : /var/lib/avocado/job-results/job-2023-07-19T05.55-1bce45d/job.log
 (1/1) type_specific.io-github-autotest-libvirt.virsh.crypto_nodedev_create_destroy.positive: PASS (14.69 s)
RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML   : /var/lib/avocado/job-results/job-2023-07-19T05.55-1bce45d/results.html
JOB TIME   : 15.07 s

@smitterl smitterl force-pushed the transient_ap_dev branch 2 times, most recently from 92b8d24 to 3129615 Compare July 19, 2023 10:14
@smitterl
Copy link
Contributor Author

JOB ID     : 67bd0c10bb1a5418de8303b2960f0b4c80a4e236
JOB LOG    : /var/lib/avocado/job-results/job-2023-07-19T06.13-67bd0c1/job.log
 (1/1) type_specific.io-github-autotest-libvirt.virsh.crypto_nodedev_create_destroy.positive: PASS (14.69 s)
RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML   : /var/lib/avocado/job-results/job-2023-07-19T06.13-67bd0c1/results.html
JOB TIME   : 15.06 s

Copy link
Contributor

@cliping cliping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

`virsh nodedev-dumpxml` didn't list `attr` elements on
transient devices. Add checkpoint.

Try to destroy on teardown in case checkpoint fails.

Signed-off-by: Sebastian Mitterle <[email protected]>
@smitterl
Copy link
Contributor Author

smitterl commented Aug 3, 2023

JOB ID     : 58cb46f10fb759d392d5afcc61948612ca40b76c
JOB LOG    : /var/lib/avocado/job-results/job-2023-08-03T06.49-58cb46f/job.log
 (1/1) type_specific.io-github-autotest-libvirt.virsh.crypto_nodedev_create_destroy.positive: STARTED
 (1/1) type_specific.io-github-autotest-libvirt.virsh.crypto_nodedev_create_destroy.positive: PASS (25.54 s)
RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML   : /var/lib/avocado/job-results/job-2023-08-03T06.49-58cb46f/results.html
JOB TIME   : 27.19 s

@dzhengfy dzhengfy added the depend on The PR has dependency on other PRs label Aug 4, 2023
Copy link
Contributor

@dzhengfy dzhengfy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Others LGTM

if dev_name:
try:
destroy_nodedev(dev_name)
except:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it better to output any exception details for debugging?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dzhengfy IMO, not in this case. destroy_nodedev has debug=True and after its invocation in the test it's already checked if the device was removed successfully. Here in finally it's called in case the new checkpoint fails.

@dzhengfy dzhengfy merged commit 2e24bfb into autotest:master Sep 15, 2023
4 checks passed
@smitterl smitterl deleted the transient_ap_dev branch November 20, 2023 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
depend on The PR has dependency on other PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants