nova overwrites hw_disk_bus image property with incorrect value
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Triaged
|
Medium
|
Unassigned |
Bug Description
Currently using Havana
Booting from a snapshot with the image property 'hw_disk_bus' = ide boots fine initially. Shutting down/restarting the instance via the dashboard overwrites this value with 'virtio' in the libvirt.xml definition. The value in glance and nova image is correct.
glance image-show b2e157f7-
+------
| Property | Value |
+------
| Property 'base_image_ref' | e8ce2f05-
| Property 'hw_disk_bus' | ide |
| Property 'image_location' | snapshot |
| Property 'image_state' | available |
| Property 'image_type' | snapshot |
| Property 'instance_
| Property 'instance_
| Property 'instance_type_id' | 24 |
| Property 'instance_
| Property 'instance_
| Property 'instance_
| Property 'instance_
| Property 'instance_
| Property 'instance_
| Property 'instance_uuid' | b34995bc-
| Property 'os_type' | None |
| Property 'owner_id' | 473a5f18d57a474
| Property 'user_id' | 40caf1d1cb994fb
| checksum | fdad2f12773319d
| container_format | bare |
| created_at | 2014-04-29T17:29:57 |
| deleted | False |
| disk_format | qcow2 |
| id | b2e157f7-
| is_public | True |
| min_disk | 35 |
| min_ram | 2048 |
| name | pre-migration |
| protected | False |
| size | 12756713472 |
| status | active |
| updated_at | 2014-05-12T14:27:25 |
+------
nova image-show b2e157f7-
+------
| Property | Value |
+------
| metadata owner_id | 473a5f18d57a474
| minDisk | 35 |
| metadata instance_type_name | windows7 |
| metadata instance_type_swap | 2000 |
| metadata instance_
| id | b2e157f7-
| metadata instance_
| metadata os_type | None |
| metadata image_state | available |
| metadata image_location | snapshot |
| minRam | 2048 |
| status | ACTIVE |
| updated | 2014-05-
| metadata instance_type_id | 24 |
| metadata instance_type_vcpus | 2 |
| metadata base_image_ref | e8ce2f05-
| progress | 100 |
| metadata instance_
| OS-EXT-
| metadata image_type | snapshot |
| metadata user_id | 40caf1d1cb994fb
| name | pre-migration |
| created | 2014-04-
| metadata instance_uuid | b34995bc-
| server | b34995bc-
| metadata instance_
| metadata hw_disk_bus | ide |
| metadata instance_
+------
The libvirt.xml of the instance
<disk type="file" device="disk">
<driver name="qemu" type="qcow2" cache="none"/>
<source file="/
<target bus="virtio" dev="vda"/>
</disk>
<disk type="file" device="disk">
<driver name="qemu" type="qcow2" cache="none"/>
<source file="/
<target bus="virtio" dev="vdb"/>
</disk>
Changed in nova: | |
importance: | Undecided → Medium |
tags: | added: libvirt |
Workaround is to snapshot the image which was shutdown and redeploy it.