child cell create instance error duo to wrong system_metadata format

Bug #1193552 reported by Yaguang Tang
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Yaguang Tang

Bug Description

the instance primitive dict data constructed from API cell is send the child cell to create db entry ,
 but the instance['system_metadata'] dict is not contain only "key" "value" as keys , actually after converted by jsonutils.to_primitive the keys are all instance_system_metadata table columns , so in the child cell db entry can't be created successfully.

Tags: cells
Yaguang Tang (heut2008)
tags: added: cells
Changed in nova:
assignee: nobody → Yaguang Tang (heut2008)
Yaguang Tang (heut2008)
description: updated
summary: - child cell create instance error duo to instance info from api cell is
- not as expected
+ child cell create instance error duo to wrong system_metadata format
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/34508

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/34508
Committed: http://github.com/openstack/nova/commit/ea6d089d196e2d71eac17a1b0079788a71522cfd
Submitter: Jenkins
Branch: master

commit ea6d089d196e2d71eac17a1b0079788a71522cfd
Author: Yaguang Tang <email address hidden>
Date: Wed Jun 26 15:11:54 2013 +0800

    Update instance properties values in child cells to create instance.

    When using nova cells, in child cell, instance properties dict received
    from API cell is returned by database that contains instance['name']. We
    need to pop this from dict before creating a instance entry in child cell.

    The system metadata also need to be recreated in child cell because instance
    properties dict is converted to primitive which makes instance['system_metadata']
    a list of dicts.

    Fix bug #1193552

    Change-Id: I43a8b4c1673a831b0c87881004eb0a7e5b149d9e

Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
Chris Behrens (cbehrens) wrote :
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
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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