-
Notifications
You must be signed in to change notification settings - Fork 170
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
virtiofs : add case for restart service after config shared memory #5004
virtiofs : add case for restart service after config shared memory #5004
Conversation
nanli1
commented
Jul 3, 2023
@@ -245,6 +251,26 @@ def check_filesystem_in_guest(vm, fs_dev): | |||
test.cancel("Bug %s is not fixed on current build" % bug_url) | |||
|
|||
try: | |||
if setup_mem: | |||
vmxml = vm_xml.VMXML.new_from_inactive_dumpxml(vm_names[int(guest_num)-1]) |
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.
below line start 255 to line 273 can be wrapped into one independent method
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 Chunfu, Done
36d29b7
to
ea3dd10
Compare
ea3dd10
to
c32fa7d
Compare
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
@@ -86,6 +86,14 @@ | |||
bug_url = "https://bugzilla.redhat.com/show_bug.cgi?id=1940276" | |||
destroy_start = "yes" | |||
stress_script = "#!/usr/bin/python3;import os;while True:; os.open("%s/moo", os.O_CREAT | os.O_RDWR); os.unlink("%s/moo");" | |||
- restart_service: | |||
only file_backed |
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.
Sorry, the manual case is indicated explicitly. The scenario can be expanded to all the memory backed type, not just the file type. We can remove this only condition. Thanks
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.
But we just write this code instead of modular cases ,Do you update this case later?
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.
Oh, I made a mistake
"Sorry, the manual case is NOT indicated explicitly". I lost "NOT"
@@ -86,6 +86,14 @@ | |||
bug_url = "https://bugzilla.redhat.com/show_bug.cgi?id=1940276" | |||
destroy_start = "yes" | |||
stress_script = "#!/usr/bin/python3;import os;while True:; os.open("%s/moo", os.O_CREAT | os.O_RDWR); os.unlink("%s/moo");" | |||
- restart_service: | |||
only file_backed | |||
func_supported_since_libvirt_ver = (8, 0, 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.
I check the scenario in bug 2078693 with libvirt-9.0.0-10.2.el9_2.x86_64, the issue still exists. So the fix for this bug was just backported to libvirt-8.0.0. For the version between libvirt-9.2.0 and libvirt-8.0.0, the issue still exists.
Hi, @dzhengfy How can deal with such situation in automation?
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.
@dzhengfy For the version between libvirt-9.2.0 and libvirt-8.0.0, How about just leave it failed
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.
Confirmed with dzheng and lizhu, We decided updated supported libvirt version is newer than 9.2.0
VIRT-298224: Verify the libvirt can identify shared memory after restart libvirtd/virtqemud Signed-off-by: nanli <[email protected]>
c32fa7d
to
9795e9a
Compare
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
LGTM |