Comment 0 for bug 1441990

Revision history for this message
wanghao (wanghao749) wrote :

Version of Nova in my Devstack :
--------------------------------------------------------------------------------------
commit c1e383ca55bee667ff6cfdaa35a213a61ea7ab3a
Merge: 581ca4f e0a3d60
Author: Jenkins <email address hidden>
Date: Wed Mar 18 01:06:50 2015 +0000
--------------------------------------------------------------------------------------

When I create a vm from image and take the bdm args like this :

nova boot --image 0c466b13-163c-4f2f-adfd-cde58d79b33c --flavor wanghaotype --nic net-id=b8708653-66e4-4f33-91a7-97eb0c65b54e --block-device source=blank,dest=volume,device=vdb,bootindex=0,size=1 wanghao

It worke but the vm don't have bootable disk because the vm's xml only have this :

    <disk type='block' device='disk'>
      <driver name='qemu' type='raw' cache='none'/>
      <source dev='/dev/disk/by-path/ip-192.168.86.76:3260-iscsi-iqn.2010-10.org.openstack:volume-e264ca3b-a23a-4d51-9f27-0561c9fca75c-lun-1'/>
      <target dev='vdb' bus='virtio'/>
      <serial>e264ca3b-a23a-4d51-9f27-0561c9fca75c</serial>
      <alias name='virtio-disk1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </disk>

I think we should allow the bootindex=1 when creating vm from image with a blank volume. Or we forbid this kind of parameter combination.