Missing dest type in block_device_mapping_v2

Bug #1443796 reported by zhangjialong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Opinion
Wishlist
haoning

Bug Description

I use the command like follows to create vm
nova boot --image 66c6aa5a-ce65-40ca-b0fc-1af18b2f744d --flavor m1.tiny --nic net-id=05233983-9bf6-4ab3-bc82-687d6ab9204d --block-device source=blank,device=vdb,bootindex=1,size=1 cirros

After the vm created, virsh dumpxml vm
i can found only one disk attached to the vm

    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='none'/>
      <source file='/opt/stack/data/nova/instances/bf7e6006-393e-4e8c-91d3-a28eee965f79/disk'/>
      <target dev='vda' bus='virtio'/>
      <alias name='virtio-disk0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw' cache='none'/>
      <source file='/opt/stack/data/nova/instances/bf7e6006-393e-4e8c-91d3-a28eee965f79/disk.config'/>
      <target dev='hdd' bus='ide'/>
      <readonly/>
      <alias name='ide0-1-1'/>
      <address type='drive' controller='0' bus='1' target='0' unit='1'/>
    </disk>
    <controller type='usb' index='0'>
      <alias name='usb0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'>
      <alias name='pci.0'/>
    </controller>
    <controller type='ide' index='0'>
      <alias name='ide0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>

In my view, we need to check the params named dest in if it exsit in block_device_mappint_v2

Tags: bdm dest missing
zhangjialong (zhangjl)
Changed in nova:
assignee: nobody → zhangjialong (zhangjl)
zhangjialong (zhangjl)
description: updated
summary: - Invalid dest type in block_device_mapping_v2
+ Miss dest type in block_device_mapping_v2
summary: - Miss dest type in block_device_mapping_v2
+ Missing dest type in block_device_mapping_v2
description: updated
zhangjialong (zhangjl)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/173357

Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Michael Still (<email address hidden>) on branch: master
Review: https://review.openstack.org/173357
Reason: This patch has been stalled for a long time, so I am abandoning it. Please feel free to restore it when the code is ready for review.

Changed in nova:
assignee: zhangjialong (zhangjl) → nobody
status: In Progress → Confirmed
haoning (killinux)
Changed in nova:
assignee: nobody → haoning (killinux)
Revision history for this message
John Garbutt (johngarbutt) wrote :

So there is a blueprint and spec for this, which should be restored if required:
https://blueprints.launchpad.net/nova/+spec/check-destination-type-in-block-device-mapping-v2

Changed in nova:
importance: Undecided → Wishlist
Revision history for this message
John Garbutt (johngarbutt) wrote :

This wishlist bug has been open a year without any activity. I'm going to move it to "Opinion / Wishlist", which is an easily-obtainable queue of older requests that have come on. This bug can be reopened (set back to "New") if someone decides to work on this.

Changed in nova:
status: Confirmed → Opinion
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.