Can't boot with bdm when use image in local

Bug #1459917 reported by wangxiyuan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
wangxiyuan
Kilo
Fix Released
Undecided
Unassigned

Bug Description

when boot vm with bdm like this:

nova boot --flavor 1 --nic net-id=xxxx --image xxxx
--block-device source=image,dest=local,id=xxxx,size=2,bootindex=0 test

it raise a error:Mapping image to local is not supported.

But in nova it said :

  # if this bdm is generated from --image ,then
   # source_type = image and destination_type = local is allowed

wangxiyuan (wangxiyuan)
Changed in nova:
assignee: nobody → wangxiyuan (wangxiyuan)
Revision history for this message
jichenjc (jichenjc) wrote :

https://review.openstack.org/#/c/166401/3/nova/block_device.py

it might be helpful for you
I think it's a comment fix

Changed in nova:
status: New → Confirmed
importance: Undecided → Wishlist
importance: Wishlist → Low
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/186976

Changed in nova:
status: Confirmed → In Progress
Revision history for this message
wangxiyuan (wangxiyuan) wrote :

@jichenjc thanks!

wangxiyuan (wangxiyuan)
description: updated
description: updated
description: updated
Matt Riedemann (mriedem)
tags: added: volumes
Matt Riedemann (mriedem)
tags: added: kilo-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/193139

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → liberty-1
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/kilo)

Reviewed: https://review.openstack.org/193139
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=b3f7b77fda2e6cddea44b4620fb750979287933a
Submitter: Jenkins
Branch: stable/kilo

commit b3f7b77fda2e6cddea44b4620fb750979287933a
Author: wangxiyuan <email address hidden>
Date: Sat May 30 09:56:43 2015 +0800

    Fix wrong check when use image in local

    When use bdm to boot with image in local,we should check
    whether boot_index is valid firstly.

    For example,when use novaclient,boot_index is a string ,
    it can't compare with integer directly.

    Change-Id: I8c0c3793e4453b9a5d6daac7404c281c163ac474
    Closes-bug:#1459917
    (cherry picked from commit 1ae7d453e59f483f7a90fcd60aa51870ca11af92)

tags: added: in-stable-kilo
Thierry Carrez (ttx)
Changed in nova:
milestone: liberty-1 → 12.0.0
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.