Comment 5 for bug 1421439

Revision history for this message
Claude Durocher (claude-d) wrote : Re: [Bug 1421439] Re: hw_disk_bus property not properly applied to a VM running in Ceph

My first two tests were done by creating ephemeral instances (boot from
image). My last two tests were done with volume in Ceph (Create a volume
from an image and boot an instance from that volume).

Claude

2015-02-26 9:58 GMT-05:00 Alexander Gubanov <email address hidden>:

> I cann't reproduce it too
> Verified on mos 6.0 Ubuntu, Ceph RBD
>
> 2014.2-6.0:
> VERSION:
> api: '1.0'
> astute_sha: 16b252d93be6aaa73030b8100cf8c5ca6a970a91
> build_id: 2014-12-26_14-25-46
> build_number: '58'
> feature_groups:
> - mirantis
> fuellib_sha: fde8ba5e11a1acaf819d402c645c731af450aff0
> fuelmain_sha: 81d38d6f2903b5a8b4bee79ca45a54b76c1361b8
> nailgun_sha: 5f91157daa6798ff522ca9f6d34e7e135f150a90
> ostf_sha: a9afb68710d809570460c29d6c3293219d3624d4
> production: docker
> release: '6.0'
>
> VM was created before changing image
>
> root@node-9:~# egrep 'model type|target dev|rbd'
> /etc/libvirt/qemu/instance-00000001.xml
> <source protocol='rbd'
> name='compute/8c3bce3f-dadb-4c39-b29f-921387a4540b_disk'>
> <target dev='vda' bus='virtio'/>
> <target dev='tapb52edcea-88'/>
> <model type='virtio'/>
> <model type='cirrus' vram='9216' heads='1'/>
>
> VM was created after changing image
>
> root@node-8:~# egrep 'model type|target dev|rbd'
> /etc/libvirt/qemu/instance-00000007.xml
> <source protocol='rbd'
> name='compute/c1234800-9f39-434b-886a-86b7db77d367_disk'>
> <target dev='hda' bus='ide'/>
> <target dev='tap5c401757-df'/>
> <model type='rtl8139'/>
> <model type='cirrus' vram='9216' heads='1'/>
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1421439
>
> Title:
> hw_disk_bus property not properly applied to a VM running in Ceph
>
> Status in Mirantis OpenStack:
> Incomplete
>
> Bug description:
> {"build_id": "2014-12-26_14-25-46", "ostf_sha":
> "a9afb68710d809570460c29d6c3293219d3624d4", "build_number": "58",
> "auth_required": true, "api": "1.0", "nailgun_sha":
> "5f91157daa6798ff522ca9f6d34e7e135f150a90", "production": "docker",
> "fuelmain_sha": "81d38d6f2903b5a8b4bee79ca45a54b76c1361b8",
> "astute_sha": "16b252d93be6aaa73030b8100cf8c5ca6a970a91",
> "feature_groups": ["mirantis", "experimental"], "release": "6.0",
> "release_versions": {"2014.2-6.0": {"VERSION": {"build_id":
> "2014-12-26_14-25-46", "ostf_sha":
> "a9afb68710d809570460c29d6c3293219d3624d4", "build_number": "58",
> "api": "1.0", "nailgun_sha":
> "5f91157daa6798ff522ca9f6d34e7e135f150a90", "production": "docker",
> "fuelmain_sha": "81d38d6f2903b5a8b4bee79ca45a54b76c1361b8",
> "astute_sha": "16b252d93be6aaa73030b8100cf8c5ca6a970a91",
> "feature_groups": ["mirantis"], "release": "6.0", "fuellib_sha":
> "fde8ba5e11a1acaf819d402c645c731af450aff0"}}}, "fuellib_sha":
> "fde8ba5e11a1acaf819d402c645c731af450aff0"}
>
> [Operating System]
> Ubuntu 12.04
>
> [Reference Architecture]
> HA with Ceph
> 1 Zabbix node
> 3 controller nodes
> 3 compute nodes
> 3 Ceph nodes
>
> [Network model ]
> Neutron - VLAN
>
>
> Steps to reproduce
> ------------------------------
> - install Fuel with Ceph and Neutron VLAN network
> - deploy 3 controller nodes, 3 compute nodes and 3 ceph nodes
> - test 1 : create a VM NOT in Ceph with TestVM image (driver is virtio
> in XML, normal)
> - test 2 : create a VM in Ceph with TestVM image (driver is virtio in
> XML, normal)
> - edit TestVM image property : glance image-update TestVM --property
> hw_disk_bus=ide --property hw_vif_model=rtl813
> - test 3 : create a VM NOT in Ceph with TestVM image (driver is ide in
> XML, good)
> - test 4 : create a VM in Ceph with TestVM image (driver is virtio in
> XML, BAD)
>
> Expected result
> ------------------------------
> Test 4 : disk driver should be ide (like in test 3)
>
> Actual result
> ------------------------------
> Test 4 : disk driver is virtio
>
> Example:
> ------------------------------
> cat /etc/libvirt/qemu/instance-00000001.xml
> ...
> <emulator>/usr/bin/kvm-spice</emulator>
> <disk type='file' device='disk'>
> <driver name='qemu' type='qcow2' cache='none'/>
> <source
> file='/var/lib/nova/instances/9b3637b4-81ce-4aad-a48e-2686342e1d81/disk'/>
> <target dev='vda' bus='virtio'/>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x04'
> function='0x0'/>
> </disk>
>
> cat /etc/libvirt/qemu/instance-00000004.xml
> ...
> <disk type='network' device='disk'>
> <driver name='qemu' type='raw' cache='none'/>
> <auth username='compute'>
> <secret type='ceph' uuid='a5d0dd94-57c4-ae55-ffe0-7e3732a24455'/>
> </auth>
> <source protocol='rbd'
> name='volumes/volume-e9933a71-7db8-420f-93b3-20d944b4ce03'>
> <host name='192.168.0.6' port='6789'/>
> <host name='192.168.0.7' port='6789'/>
> <host name='192.168.0.8' port='6789'/>
> </source>
> <target dev='vda' bus='virtio'/>
> <serial>e9933a71-7db8-420f-93b3-20d944b4ce03</serial>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x04'
> function='0x0'/>
> </disk>
>
> glance image-update TestVM --property hw_disk_bus=ide --property
> hw_vif_model=rtl8139
>
> glance image-show TestVM
>
> +------------------------------+-------------------------------------------------+
> | Property | Value
> |
>
> +------------------------------+-------------------------------------------------+
> | Property 'hw_disk_bus' | ide
> |
> | Property 'hw_vif_model' | rtl8139
> |
> | Property 'murano_image_info' | {"title": "Murano Demo", "type":
> "cirros.demo"} |
> | checksum | 64d7c1cd2b6f60c92c14662941cb7913
> |
> | container_format | bare
> |
> | created_at | 2015-02-12T21:35:40
> |
> | deleted | False
> |
> | disk_format | qcow2
> |
> | id | 61ba2ea6-3bd5-433b-94f2-c90299d29120
> |
> | is_public | True
> |
> | min_disk | 0
> |
> | min_ram | 64
> |
> | name | TestVM
> |
> | owner | 9e507661505748d4a35a315489879c98
> |
> | protected | False
> |
> | size | 13167616
> |
> | status | active
> |
> | updated_at | 2015-02-12T21:44:09
> |
>
> +------------------------------+-------------------------------------------------+
>
> cat /etc/libvirt/qemu/instance-00000007.xml
> ...
> <disk type='file' device='disk'>
> <driver name='qemu' type='qcow2' cache='none'/>
> <source
> file='/var/lib/nova/instances/c5ca85f3-6625-47b8-a643-c375f43c248c/disk'/>
> <target dev='hda' bus='ide'/>
> <address type='drive' controller='0' bus='0' target='0' unit='0'/>
> </disk>
>
> cat /etc/libvirt/qemu/instance-0000000a.xml
> ...
> <disk type='network' device='disk'>
> <driver name='qemu' type='raw' cache='none'/>
> <auth username='compute'>
> <secret type='ceph' uuid='a5d0dd94-57c4-ae55-ffe0-7e3732a24455'/>
> </auth>
> <source protocol='rbd'
> name='volumes/volume-3d62794b-60c1-4692-89b5-d7f228b2963d'>
> <host name='192.168.0.6' port='6789'/>
> <host name='192.168.0.7' port='6789'/>
> <host name='192.168.0.8' port='6789'/>
> </source>
> <target dev='vda' bus='virtio'/>
> <serial>3d62794b-60c1-4692-89b5-d7f228b2963d</serial>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x04'
> function='0x0'/>
> </disk>
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mos/+bug/1421439/+subscriptions
>