CLOUDSTACK-10160: Fix typo in Libvirt XML definition for Virtio-SCSI#2341
Conversation
The attribute for the XML element 'controller' should be 'model' and not 'mode'. Source: https://libvirt.org/formatdomain.html#elementsControllers A scsi controller has an optional attribute model, which is one of 'auto', 'buslogic', 'ibmvscsi', 'lsilogic', 'lsisas1068', 'lsisas1078', 'virtio-scsi' or 'vmpvscsi'. In the current state a regular SCSI device is attached and not a Virtio-SCSI device. Signed-off-by: Wido den Hollander <wido@widodh.nl>
|
Preferably this one would be merged to 4.10 as well so that we could fix it in a hotfix there. Otherwise 4.11 |
|
@wido the 4.10 maintainer may choose to backport (cherry-pick it) |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
To make sure the XML output string is correct Signed-off-by: Wido den Hollander <wido@widodh.nl>
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-1308 |
|
Thanks @rhtyd ! I've also added a UnitTest in a second commit to make sure this is tested. |
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
@nathanejohnson: Not to point a finger, but without this it never worked properly. Although it seemed to work as VirtIO-SCSI it was actually just plain SCSI. |
|
@wido when using linux, it recognizes as a VIRTIO-Scsi HBA, and when spinning up Windows guests with the Virtio SCSI drivers installed it recognizes the storage appropriately. That doesn't "prove" it's actually using it as virtio-scsi, but it's possible when the "model" is not specified (or incorrectly specified) it might default to "auto", which might do the right thing based on OS support? I'm guessing here. |
|
Trillian test result (tid-1704)
|
|
Lgtm, any further improvements may be submitted in separate PRs. Merging now, thanks. |
…ouds' Alteração nas exceções quando nenhuma estratégia suporta a criação de VM _snapshot_ Closes apache#2341 See merge request scclouds/scclouds!1191

The attribute for the XML element 'controller' should be 'model' and
not 'mode'.
Source: https://libvirt.org/formatdomain.html#elementsControllers
A scsi controller has an optional attribute model, which is one of
'auto', 'buslogic', 'ibmvscsi', 'lsilogic', 'lsisas1068', 'lsisas1078',
'virtio-scsi' or 'vmpvscsi'.
In the current state a regular SCSI device is attached and not a Virtio-SCSI
device.
Afterwards this is what lspci reports: