hw_scsi_model from glance image is not used when booting instance from new volume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
New
|
Undecided
|
Unassigned |
Bug Description
When creating an instance backed by a cinder volume, the disk device /dev/vda is used regardless of image settings. I am using the following image metadata to set virtio-scsi driver on my instances:
hw_disk_bus=scsi
hw_scsi_
When I boot instances using a normal root device ("boot from image"), they are using /dev/sda and virtio-scsi as expected. When booting from volume (either with a new volume or an existing image-based volume), they use "<target dev='vda' bus='virtio'/>", ignoring the image metadata.
According to this spec: http://
A "work item" was: "Nova retrieve “hw_scsi_model” property from volume’s glance_
I would expect this work is what would implement setting virtio-scsi on volume backed instances, however none of the reviews I have looked through for that spec appear to implement anything regarding volume backed instances.
Changed in nova: | |
status: | New → Triaged |
I was able to work around this.. can_set_mount_point is false by default so I didn't realize that horizon is sending the 'vda' device name. After changing this to sda, the instance is now created with bus=scsi.
Modification made was: (label= _("Device Name"),
required= False,
initial= "sda",
help_ text=_( "Volume mount point (e.g. 'vda' "
"mounts at '/dev/vda'). Leave "
"this field blank to let the "
"system choose a device name "
"for you."))
device_name = forms.CharField
changed initial="vda" to initial="sda"
This field was hidden by default and the instance has metadata saying to use the scsi bus, so I am still thinking this is some sort of bug. Maybe the dashboard should not send a device name if the field is not visible?