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.
Reviewed: https:/ /review. openstack. org/34508 github. com/openstack/ nova/commit/ ea6d089d196e2d7 1eac17a1b007978 8a71522cfd
Committed: http://
Submitter: Jenkins
Branch: master
commit ea6d089d196e2d7 1eac17a1b007978 8a71522cfd
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 'system_ metadata' ]
properties dict is converted to primitive which makes instance[
a list of dicts.
Fix bug #1193552
Change-Id: I43a8b4c1673a83 1b0c87881004eb0 a7e5b149d9e