Cell type is overwritten when update a cell without cell-type specified
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
wingwj |
Bug Description
I create a 'parent' cell through API, and update its 'name' only.
And I found, the type of my cell is changed to 'child'.
-----------
I check the code, if you not specified the 'cell-type' in UPDATE request,
the value will be overwritten by the default value, 'child'.
That's not correct, you need to reserve the existing cell-type.
-----------
Here's the code segment in cells.py. The 'cell' is transformed from request:
def _normalize_
# Start with the cell type conversion
if 'type' in cell:
del cell['type']
else:
...
The issue is also involved in the new V3-api.
Thanks~
Changed in nova: | |
assignee: | nobody → wingwj (wingwj) |
Changed in nova: | |
status: | Fix Committed → In Progress |
Changed in nova: | |
milestone: | none → icehouse-1 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | icehouse-1 → 2014.1 |
Fix proposed to branch: master /review. openstack. org/46272
Review: https:/