Stack abandon occasionally produces malformed data

Bug #1700752 reported by Gábor Márton
6
This bug affects 1 person
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": {
            "common_resources": {
                "action": "CREATE",
                "environment": {
                    "encrypted_param_names": [],
                    ...
                }
                ...
            },
            ...
        }
    }
]

After converting the "Field-Value" list into a dictionary, stack adopt succeeded.

description: updated
description: updated
Rico Lin (rico-lin)
Changed in heat:
milestone: none → no-priority-tag-bugs
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.