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

add rbd with luks scenario in blockcopy with dest xml case #5762

Conversation

nanli1
Copy link
Contributor

@nanli1 nanli1 commented Jul 8, 2024

xxxx-294410: Do blockcopy with different dest XML - rbd with luks and auth
Signed-off-by: nanli nanli@redhat.com

avocado run --vt-type libvirt --test-runner=runner --vt-machine-type q35 backingchain.blockcopy.dest_xml.rbd_with_luks_and_auth
 (1/1) type_specific.io-github-autotest-libvirt.backingchain.blockcopy.dest_xml.rbd_with_luks_and_auth.pivot_reuse_external: PASS (56.15 s)
 (1/1) type_specific.io-github-autotest-libvirt.backingchain.blockcopy.dest_xml.rbd_with_luks_and_auth.finish_reuse_external: PASS (61.22 s)

Got error on rhel10 ,it's a bug

2024-07-07 21:47:09,652 virsh            L0822 DEBUG| Running virsh command: blockcopy avocado-vt-vm1 vdb  --pivot  --xml /tmp/xml_utils_temp_jjulza25.xml --transient-job --reuse-external --verbose --wait
2024-07-07 21:47:09,652 process          L0658 INFO | Running '/bin/virsh blockcopy avocado-vt-vm1 vdb  --pivot  --xml /tmp/xml_utils_temp_jjulza25.xml --transient-job --reuse-external --verbose --wait '
2024-07-07 21:47:09,839 process          L0470 DEBUG| [stderr] error: internal error: unable to execute QEMU command 'blockdev-add': encryption load fail: Invalid argument

@nanli1 nanli1 force-pushed the add_rbd_dest_with_luks_sceanrio_in_blockcopy_case branch 2 times, most recently from 18f9994 to 8b07603 Compare July 8, 2024 14:17
  xxxx-294410: Do blockcopy with different dest XML - rbd with luks and auth
Signed-off-by: nanli <nanli@redhat.com>
@nanli1 nanli1 force-pushed the add_rbd_dest_with_luks_sceanrio_in_blockcopy_case branch from 8b07603 to ba1aaf2 Compare July 9, 2024 00:12
@dzhengfy dzhengfy requested a review from chunfuwen July 25, 2024 07:13
:param disk_dict: disk dict.
:param secret_dict: secret dict to define a secret.
"""
sec_uuid = libvirt_secret.create_secret(sec_dict=eval(secret_dict))
Copy link
Contributor

Choose a reason for hiding this comment

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

previously we hit a few scenarios that secret is already there because previously secret fail to be deleted. So here we need to clean secret firstly if secret existed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi chunfu , thanks your comment :D . but sometimes we need two secrets, such as this scenario. if we clean secret here, the first secret would also be cleaned.

@nanli1 nanli1 requested a review from chunfuwen July 25, 2024 09:05
@nanli1
Copy link
Contributor Author

nanli1 commented Aug 15, 2024

@chunfuwen Could you review again

Copy link
Contributor

@chunfuwen chunfuwen left a comment

Choose a reason for hiding this comment

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

lgtm

@Yingshun Yingshun merged commit f723811 into autotest:master Aug 27, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants