← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1271479] [NEW] ide disk type is not set when starting vm from dashboard

 

Public bug reported:

Hello

we have a openstack havana controller installation with 2 compute nodes
centos 6.4 /KVM

i get 3 ide disk images from i need to build a vm by booting on the
first one and attach the 2 others as volumes

when i play the nova command line below the vm start well and volumes
are attached

nova boot --flavor vcdn_mn --key_name KEY_NAME --availability-zone nova:vcdn_kvm5 --image c5813703-2bfb-4f58-b0f1-9cd08fb8e596  --nic net-id=a2b8e7e4-cceb-4e5a-881b-8d872f6384db --nic net-id=d2292ebe-a431-4bd9-a5e4-570e2f98f169 --nic net-id=7368ec5a-3f9d-49af-a254-87a754f9b952 --block-device source=volume,dest=volume,id=8d8a2e6d-9c7e-4905-b194-8a74b6ae6c42,bus=ide,shutdown=preserve --block-device source=volume,dest=volume,id=7379756e-e435-40ad-8f0c-de43b0adcac4,bus=ide,shutdown=preserve mn1.vxn1s1.cdn
 
the libvirt.xml disk device section looks like :

 <disk type="file" device="disk">
      <driver name="qemu" type="qcow2" cache="none"/>
      <source file="/var/lib/nova/instances/a8a255cd-0b60-436d-ae71-e00f28e725bd/disk"/>
      <target bus="ide" dev="hda"/>
    </disk>
    <disk type="block" device="disk">
      <driver name="qemu" type="raw" cache="none"/>
      <source dev="/dev/disk/by-path/ip-192.168.60.23:3260-iscsi-iqn.2010-10.org.openstack:volume-8d8a2e6d-9c7e-4905-b194-8a74b6ae6c42-lun-1"/>
      <target bus="ide" dev="hdb"/>
      <serial>8d8a2e6d-9c7e-4905-b194-8a74b6ae6c42</serial>
    </disk>
    <disk type="block" device="disk">
      <driver name="qemu" type="raw" cache="none"/>
      <source dev="/dev/disk/by-path/ip-192.168.60.23:3260-iscsi-iqn.2010-10.org.openstack:volume-7379756e-e435-40ad-8f0c-de43b0adcac4-lun-1"/>
      <target bus="ide" dev="hdc"/>
      <serial>7379756e-e435-40ad-8f0c-de43b0adcac4</serial>
    </disk>

but if i restart the vm from the dashboard  the libvirt.xml is modified
and looks like, the target bus is changed from "ide" to virtio" so the
vm cant boot anymore because of partition table ... :

 <disk type="file" device="disk">
      <driver name="qemu" type="qcow2" cache="none"/>
      <source file="/var/lib/nova/instances/a8a255cd-0b60-436d-ae71-e00f28e725bd/disk"/>
      <target bus="virtio" dev="hda"/>
    </disk>
    <disk type="block" device="disk">
      <driver name="qemu" type="raw" cache="none"/>
      <source dev="/dev/disk/by-path/ip-192.168.60.23:3260-iscsi-iqn.2010-10.org.openstack:volume-8d8a2e6d-9c7e-4905-b194-8a74b6ae6c42-lun-1"/>
      <target bus="ide" dev="hdb"/>
      <serial>8d8a2e6d-9c7e-4905-b194-8a74b6ae6c42</serial>
    </disk>
    <disk type="block" device="disk">
      <driver name="qemu" type="raw" cache="none"/>
      <source dev="/dev/disk/by-path/ip-192.168.60.23:3260-iscsi-iqn.2010-10.org.openstack:volume-7379756e-e435-40ad-8f0c-de43b0adcac4-lun-1"/>
      <target bus="ide" dev="hdc"/>
      <serial>7379756e-e435-40ad-8f0c-de43b0adcac4</serial>
    </disk>


i ve tried to set libvirt_disk_prefix=hd (even if it not seems possible value..) into /etc/nova/nova.conf

i ve  set some metadata on boot disk image  => disk_bus, disk_dev,
hw_disk_bus  without success

+------------------------+--------------------------------------+
| Property               | Value                                |
+------------------------+--------------------------------------+
| Property 'disk_bus'    | ide                                  |
| Property 'disk_dev'    | hda                                  |
| Property 'hw_disk_bus' | ide                                  |
| checksum               | 29bd44d6edd8358d6b74967ab7eaf526     |
| container_format       | bare                                 |
| created_at             | 2014-01-21T12:41:29                  |
| deleted                | False                                |
| deleted_at             | None                                 |
| disk_format            | qcow2                                |
| id                     | c5813703-2bfb-4f58-b0f1-9cd08fb8e596 |
| is_public              | True                                 |
| min_disk               | 0                                    |
| min_ram                | 0                                    |
| name                   | vcdn_mn_img0                         |
| owner                  | None                                 |
| protected              | False                                |
| size                   | 915537920                            |
| status                 | active                               |
| updated_at             | 2014-01-22T10:24:35                  |
+------------------------+--------------------------------------+

i ve tried some modification tests into /usr/lib/python2.6/site-
packages/nova/virt/libvirt/blockinfo.py but without success


thanks for your help 
KR

Philippe

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1271479

Title:
  ide disk type is not set when starting vm from dashboard

Status in OpenStack Compute (Nova):
  New

Bug description:
  Hello

  we have a openstack havana controller installation with 2 compute
  nodes  centos 6.4 /KVM

  i get 3 ide disk images from i need to build a vm by booting on the
  first one and attach the 2 others as volumes

  when i play the nova command line below the vm start well and volumes
  are attached

  nova boot --flavor vcdn_mn --key_name KEY_NAME --availability-zone nova:vcdn_kvm5 --image c5813703-2bfb-4f58-b0f1-9cd08fb8e596  --nic net-id=a2b8e7e4-cceb-4e5a-881b-8d872f6384db --nic net-id=d2292ebe-a431-4bd9-a5e4-570e2f98f169 --nic net-id=7368ec5a-3f9d-49af-a254-87a754f9b952 --block-device source=volume,dest=volume,id=8d8a2e6d-9c7e-4905-b194-8a74b6ae6c42,bus=ide,shutdown=preserve --block-device source=volume,dest=volume,id=7379756e-e435-40ad-8f0c-de43b0adcac4,bus=ide,shutdown=preserve mn1.vxn1s1.cdn
   
  the libvirt.xml disk device section looks like :

   <disk type="file" device="disk">
        <driver name="qemu" type="qcow2" cache="none"/>
        <source file="/var/lib/nova/instances/a8a255cd-0b60-436d-ae71-e00f28e725bd/disk"/>
        <target bus="ide" dev="hda"/>
      </disk>
      <disk type="block" device="disk">
        <driver name="qemu" type="raw" cache="none"/>
        <source dev="/dev/disk/by-path/ip-192.168.60.23:3260-iscsi-iqn.2010-10.org.openstack:volume-8d8a2e6d-9c7e-4905-b194-8a74b6ae6c42-lun-1"/>
        <target bus="ide" dev="hdb"/>
        <serial>8d8a2e6d-9c7e-4905-b194-8a74b6ae6c42</serial>
      </disk>
      <disk type="block" device="disk">
        <driver name="qemu" type="raw" cache="none"/>
        <source dev="/dev/disk/by-path/ip-192.168.60.23:3260-iscsi-iqn.2010-10.org.openstack:volume-7379756e-e435-40ad-8f0c-de43b0adcac4-lun-1"/>
        <target bus="ide" dev="hdc"/>
        <serial>7379756e-e435-40ad-8f0c-de43b0adcac4</serial>
      </disk>

  but if i restart the vm from the dashboard  the libvirt.xml is
  modified and looks like, the target bus is changed from "ide" to
  virtio" so the vm cant boot anymore because of partition table ... :

   <disk type="file" device="disk">
        <driver name="qemu" type="qcow2" cache="none"/>
        <source file="/var/lib/nova/instances/a8a255cd-0b60-436d-ae71-e00f28e725bd/disk"/>
        <target bus="virtio" dev="hda"/>
      </disk>
      <disk type="block" device="disk">
        <driver name="qemu" type="raw" cache="none"/>
        <source dev="/dev/disk/by-path/ip-192.168.60.23:3260-iscsi-iqn.2010-10.org.openstack:volume-8d8a2e6d-9c7e-4905-b194-8a74b6ae6c42-lun-1"/>
        <target bus="ide" dev="hdb"/>
        <serial>8d8a2e6d-9c7e-4905-b194-8a74b6ae6c42</serial>
      </disk>
      <disk type="block" device="disk">
        <driver name="qemu" type="raw" cache="none"/>
        <source dev="/dev/disk/by-path/ip-192.168.60.23:3260-iscsi-iqn.2010-10.org.openstack:volume-7379756e-e435-40ad-8f0c-de43b0adcac4-lun-1"/>
        <target bus="ide" dev="hdc"/>
        <serial>7379756e-e435-40ad-8f0c-de43b0adcac4</serial>
      </disk>

  
  i ve tried to set libvirt_disk_prefix=hd (even if it not seems possible value..) into /etc/nova/nova.conf

  i ve  set some metadata on boot disk image  => disk_bus, disk_dev,
  hw_disk_bus  without success

  +------------------------+--------------------------------------+
  | Property               | Value                                |
  +------------------------+--------------------------------------+
  | Property 'disk_bus'    | ide                                  |
  | Property 'disk_dev'    | hda                                  |
  | Property 'hw_disk_bus' | ide                                  |
  | checksum               | 29bd44d6edd8358d6b74967ab7eaf526     |
  | container_format       | bare                                 |
  | created_at             | 2014-01-21T12:41:29                  |
  | deleted                | False                                |
  | deleted_at             | None                                 |
  | disk_format            | qcow2                                |
  | id                     | c5813703-2bfb-4f58-b0f1-9cd08fb8e596 |
  | is_public              | True                                 |
  | min_disk               | 0                                    |
  | min_ram                | 0                                    |
  | name                   | vcdn_mn_img0                         |
  | owner                  | None                                 |
  | protected              | False                                |
  | size                   | 915537920                            |
  | status                 | active                               |
  | updated_at             | 2014-01-22T10:24:35                  |
  +------------------------+--------------------------------------+

  i ve tried some modification tests into /usr/lib/python2.6/site-
  packages/nova/virt/libvirt/blockinfo.py but without success


  thanks for your help 
  KR

  Philippe

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1271479/+subscriptions


Follow ups

References