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

retry_if function may mask error (kvm and TM[ssh] drivers) #6078

Closed
3 tasks
xorel opened this issue Jan 9, 2023 · 0 comments
Closed
3 tasks

retry_if function may mask error (kvm and TM[ssh] drivers) #6078

xorel opened this issue Jan 9, 2023 · 0 comments

Comments

@xorel
Copy link
Member

xorel commented Jan 9, 2023

Description
When retry_if function is used to retry a call which runs exit on failure (such as exec_and_log), retry_if function reports the error but not exit on error.

This may lead to unexpected results, e.g. onevm suspend finished correctly although the checkpoint save failed

Thu Jan 5 02:23:59 2023 [Z0][VM][I]: New LCM state is SAVE_SUSPEND
Thu Jan 5 02:24:10 2023 [Z0][VMM][E]: save: Command "virsh --connect qemu:///system save 2af29c7a-9dba-44e2-89e9-89c29b2c72b0 /var/lib/one//datastores/102/1927/checkpoint" failed: error: Failed to save domain '2af29c7a-9dba-44e2-89e9-89c29b2c72b0' to /var/lib/one//datastores/102/1927/checkpoint error: operation failed: domain is not running Could not save 2af29c7a-9dba-44e2-89e9-89c29b2c72b0 to /var/lib/one//datastores/102/1927/checkpoint
Thu Jan 5 02:24:10 2023 [Z0][VMM][I]: ExitCode: 0

To Reproduce
Simulate saving checkpoint error in the drivers, run onevm save, check logs.

Expected behavior
retry_if function needs to act exactly the same as the original call

Details

  • Affected Component: storage drivers, KVM drivers
  • 6.2+ (and possibly older)

Progress Status

  • Code committed
  • Testing - QA
  • Documentation (Release notes - resolved issues, compatibility, known issues)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants