XenAPI: 'dict' object has no attribute 'name'

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

Bug Description

As part of the no-db-messaging blueprint work, the instance object is now being sent as a dict instead of an Instance model object.

The XenAPI driver should consistently use dict style item lookup instead of class-style attribute lookup on the instance object to ensure it works with both dicts and Instance model objects.

Changed in nova:
assignee: nobody → Johannes Erdfelt (johannes.erdfelt)
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/10424

Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/10424
Committed: http://github.com/openstack/nova/commit/3a00eb0c8029de719caf4b6658ae983bd9070bbb
Submitter: Jenkins
Branch: master

commit 3a00eb0c8029de719caf4b6658ae983bd9070bbb
Author: Johannes Erdfelt <email address hidden>
Date: Fri Jul 27 17:56:02 2012 +0000

    Convert to using dict style key lookups in XenAPI

    Fixes bug 1030073

    With instances being passed as dicts via the RPC API, uses of the instance
    object should use dict style key lookups instead of attribute style
    lookups.

    Change-Id: Iefc0e403d440aada68b259ded457166ad10699fd

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