-
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
migration: Add 3 migration cases to check disks port option #3343
Conversation
@dzhengfy Could you please help review this pr? Thanks! |
beb45e6
to
e59ce56
Compare
@fangge1212 , could you help also review this PR, especially for the checkpoints? |
except Exception as err: | ||
logging.error(err) | ||
|
||
logging.info("Recovery VM XML configration") | ||
if vm.is_alive(): |
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.
What's the purpose to move this part out of try block?
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.
When an exception is thrown while destroying a remote VM, the vm on local will not be destroyed in previous code.
except Exception as err: | ||
logging.error(err) | ||
|
||
logging.info("Recovery VM XML configration") | ||
if vm.is_alive(): |
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.
What's the purpose to move this part out of try block?
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.
Please see my answer above.
@dzhengfy |
I'm waiting for the conclusion of #3339. Please comment on that issue if you have any ideas |
d205109
to
e427fb8
Compare
@dzhengfy I moved the common function to avocado-vt. Could you please help review it again? |
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
e427fb8
to
5efa4cd
Compare
@@ -13,6 +13,8 @@ | |||
from virttest.libvirt_xml import vm_xml | |||
from virttest.utils_test import libvirt | |||
from virttest.utils_libvirt import libvirt_config | |||
from virttest.utils_libvirt import libvirt_misc |
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.
Can we merge those two lines import with previous one with ',' separate them?
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.
May I ask why we should do that? I think it's easier to maintain and read the code than you suggest.
This PR adds 3 migration cases: RHEL-196401: Migrate vm with copy storage over TCP transport with a specified IP RHEL-196402: Migrate vm with copy storage over TCP transport with specified IP+Port RHEL-196392: [--disks-uri] Migrate vm with copy storage over TCP transport - Specified IP+Port Signed-off-by: Yingshun Cui <[email protected]>
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
This PR adds 2 migration cases:
depends on:
avocado-framework/avocado-vt#2958
avocado-framework/avocado-vt#2957
Test results: