Stack abandon occasionally produces malformed data
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
New
|
Undecided
|
Unassigned |
Bug Description
Scenario (occurred with a deep/large stack):
1. Create stack. In the failure scenario, the template was 3 levels nested.
2. Abandon stack. In the failure scenario, the size of the abandon JSON was more than 1.5MB.
3. Adopt stack. Note that because of the large abandon JSON, max_json_body_size in /etc/heat/heat.conf needed to be increased. Then failure:
ERROR: Invalid adopt data: The template is not a JSON object or YAML mapping.
The problem with the abondon JSON was that its top-most map was encoded as a "Field-Value" list (all other maps were correctly encoded as JSON dictionaries):
[
{
"Field": "files",
"Value": {
"...": "...",
...
}
},
{
"Field": "status",
"Value": "COMPLETE"
},
...
{
"Field": "template",
"Value": {
},
...
{
"Field": "resources",
"Value": {
}
...
},
...
}
}
]
After converting the "Field-Value" list into a dictionary, stack adopt succeeded.
description: | updated |
description: | updated |
Changed in heat: | |
milestone: | none → no-priority-tag-bugs |