-
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
Add scsi device case #5085
Add scsi device case #5085
Conversation
chunfuwen
commented
Aug 4, 2023
•
edited
Loading
edited
a5eb249
to
3bb8c7c
Compare
cleaning libvirtd logs... Command 'virsh list' finished with 0 after 0.026136258s DATA (filename=output.expected) => NOT FOUND (data sources: variant, test, file) |
ee1f6cc
to
c5fffff
Compare
c5fffff
to
5223f37
Compare
@@ -2,6 +2,7 @@ | |||
type = scsi_device | |||
status_error = "no" | |||
start_vm = "no" | |||
vms = avocado-vt-vm1 vm1 |
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.
Ususally we config vm names in our local CI job definition instead of here.
For example, you can change it in shared/cfg/base.cfg or this cfg file
In shared/cfg/base.cfg, there is the definition which we use to configure the vms names
# List of virtual machine object names (whitespace separated)
vms = avocado-vt-vm1
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.
remove vms parameter, and enable it in local CI
vm_names = params.get("vms").split() | ||
for vm_name in vm_names: | ||
vm_output = virsh.dumpxml(vm_name).stdout_text | ||
if 'shareable' not in vm_output: |
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.
This is to match 'shareable' word in the whole vm xml. How about using more acurate searching by xpath, like using check_guest_xml_by_xpaths() in utils_libvirt/libvirt_vmxml.py ?
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.
updated with getting object attribute method
5223f37
to
0c776f3
Compare
0c776f3
to
cb95a6d
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
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.
Others LGTM
ignore_status=False) | ||
|
||
|
||
def check_hostdev_shareable_attr(test, params, env): |
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.
There is no 'env' parameter to this function.
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.
updated
test.fail("VM: % failed to find shareable attribute in output: %s" % (vm_name, str(hostdev_xml))) | ||
|
||
|
||
def test_coldplug_scsi_hostdev_qemu_pr_helper(test, params, env): |
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.
Same as above
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.
updated
xx-186123: [SCSI] Hot-plug the same scsi device to two guests with shareable element xx-145209: [scsi] Check the qemu-pr-helper process can be restarted when vm issue pr cmds xx-98980: [scsi] [negative] Generate duplicated addresses for scsi devices -- bug 1210587 (fixed) Signed-off-by: chunfuwen <[email protected]>
cb95a6d
to
68f3c0a
Compare