boot from volume + configdrive with virtio-scsi broken (regression)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Jay Pipes | ||
Ocata |
Fix Committed
|
High
|
Artom Lifshitz | ||
Pike |
Fix Committed
|
High
|
Artom Lifshitz | ||
Queens |
Fix Committed
|
High
|
Artom Lifshitz |
Bug Description
Hi,
Since last ocata update (2:15.0.
The libvirt xml generated looks wrong, on the first scsi disk the "unit" is wrong, it's 1 while it must be 0. The VM can't boot, kvm start but the boot screen show the "No boot disk found" message.
The wrong xml generated:
<disk type='network' device='cdrom'>
<driver name='qemu' type='raw' cache='none' io='native'/>
<auth username=
<secret type='ceph' uuid='XXXXXXXXX
</auth>
<source protocol='rbd' name='disks/
<host name='XXX.
<host name='XXX.
<host name='XXX.
</source>
<target dev='hda' bus='ide'/>
<readonly/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
<disk type='network' device='disk'>
<driver name='qemu' type='raw' cache='none' io='native' discard='unmap'/>
<auth username=
<secret type='ceph' uuid='XXXXXXXXX
</auth>
<source protocol='rbd' name='ssds/
<host name='XXX.
<host name='XXX.
<host name='XXX.
</source>
<target dev='sda' bus='scsi'/>
<
<address type='drive' controller='0' bus='0' target='0' unit='1'/>
</disk>
As workaround, I have fixed the issue here:
--- a/nova/
+++ b/nova/
@@ -3576,7 +3576,7 @@
disk_info = disk_mapping[name]
- if 'unit' in disk_mapping:
+ if 'unit' in disk_mapping and disk_info["bus"] == "scsi":
conf = disk.libvirt_
Changed in nova: | |
assignee: | nobody → sahid (sahid-ferdjaoui) |
tags: | added: libvirt |
Changed in nova: | |
status: | New → Confirmed |
summary: |
- boot from volume + configdrive broken (regression) + boot from volume + configdrive with virtio-scsi broken (regression) |
Changed in nova: | |
assignee: | Jay Pipes (jaypipes) → melanie witt (melwitt) |
Changed in nova: | |
assignee: | melanie witt (melwitt) → sahid (sahid-ferdjaoui) |
Changed in nova: | |
assignee: | sahid (sahid-ferdjaoui) → Jay Pipes (jaypipes) |
The issue is still present on master branch.