weizhouapache commented on issue #7490:
URL: https://github.com/apache/cloudstack/issues/7490#issuecomment-2407291077
thanks @tcp-dw
I was able to reproduce the issue
- create vm
- attach 6 disks. it looks good
```
<controller type='scsi' index='0' model='virtio-scsi'>
<driver queues='1'/>
<alias name='scsi0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x09'
function='0x0'/>
</controller>
<controller type='scsi' index='1' model='virtio-scsi'>
<alias name='scsi1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x08'
function='0x0'/>
</controller>
```
- stop and start the vm
```
<controller type='scsi' index='0' model='virtio-scsi'>
<driver queues='1'/>
<alias name='scsi0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x09'
function='0x0'/>
</controller>
...
<controller type='scsi' index='1' model='lsilogic'>
<alias name='scsi1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05'
function='0x0'/>
</controller>
```
It seems to be a bug, as the controller id of all virtio-scsi disks are
hardcoded as 0 (`(short)0`)
https://github.com/apache/cloudstack/blob/e5bd83ea6a380c4435bb00c5bab6a58ab8622e2b/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java#L2702
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]