Need prep all instance['metadata'] access for objects

Bug #1192012 reported by Chris Behrens
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Alexei Kornienko

Bug Description

  File "/home/cbehrens/git/nova/openstack.git/nova/api/openstack/compute/views/servers.py", line 136, in <genexpr>
    return dict((item['key'], item['value']) for item in metadata)

We need to normalize all instance['metadata'] to dicts and switch code to work with them... much like we had/have to do for system_metadata.

Chris Behrens (cbehrens)
Changed in nova:
status: New → Confirmed
importance: Undecided → Medium
tags: added: unified-objects
Changed in nova:
assignee: nobody → Alexei Kornienko (alexei-kornienko)
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/33623

Changed in nova:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

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

Reviewed: https://review.openstack.org/33623
Committed: http://github.com/openstack/nova/commit/8596f8b294e552873a29b6861bae4aa794d92b31
Submitter: Jenkins
Branch: master

commit 8596f8b294e552873a29b6861bae4aa794d92b31
Author: Alexei Kornienko <email address hidden>
Date: Wed Jun 19 12:37:57 2013 +0300

    Fix metadata access in prep for instance objects

    Related to blueprint unified-object-model
    Fixes: bug #1192012

    Change-Id: I8b708dc3d89fedfcb4bbf5d26b959da1298b0525

Changed in nova:
status: In Progress → Fix Committed
Dan Smith (danms)
tags: added: grizzly-backport-potential
Thierry Carrez (ttx)
Changed in nova:
milestone: none → havana-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: havana-2 → 2013.2
Alan Pevec (apevec)
tags: removed: grizzly-backport-potential
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.