Getting the xenapi_device_id from image_meta is not reading from the correct key

Bug #1253564 reported by Aditi Raveesh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Aditi Raveesh

Bug Description

The xenapi_device_id is set on the image metadata . This is used to set the device_id on the vm record before the vm is created.
Currently, when we read the device id from the metadata we are looking at the key image_meta["xenapi_device_id"]. But the device id is set as image_meta["properties"]["xenapi_device_id"].

We need to fix where we read the device id from.

Feature review link:
https://review.openstack.org/#/c/55117/

Aditi Raveesh (aditirav)
Changed in nova:
assignee: nobody → Aditi Raveesh (aditirav)
status: New → In Progress
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/57635

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/57635
Committed: http://github.com/openstack/nova/commit/c515ef1de5cdd228d45df18a57aa74680d417cf5
Submitter: Jenkins
Branch: master

commit c515ef1de5cdd228d45df18a57aa74680d417cf5
Author: Aditi Raveesh <email address hidden>
Date: Thu Nov 21 15:16:27 2013 +0530

    Fix for reading the xenapi_device_id from image metadata

    The xenapi_device_id is set on the image metadata.
    This is used to set the device_id on the vm record
    before the vm is created. Currently, when we read
    the device id from the metadata we are looking at
    the key image_meta["xenapi_device_id"].
    But the device id is set as
    image_meta["properties"]["xenapi_device_id"].

    Fixes bug 1253564

    Change-Id: Ide174b50db4e440401b5e6389844e7dcfc8a1c76

Changed in nova:
status: In Progress → Fix Committed
Changed in nova:
milestone: none → icehouse-1
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-1 → 2014.1
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.