Stack abandon deletes nested stacks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Peter Razumovsky |
Bug Description
If you have a stack containing nested stack resources, abandon adopt is destructive wrt the child stacks.
Probably what most users desire is to abandon the parent but not destroy all the nested resources (or, at least to have an option to do this):
-bash-4.3$ heat stack-list -n
+----+-
| id | stack_name | stack_status | creation_time | updated_time | parent |
+----+-
+----+-
-bash-4.3$ cat parent.yaml
heat_template_
resources:
nested:
type: random.yaml
-bash-4.3$ cat random.yaml
heat_template_
resources:
random:
type: OS::Heat:
-bash-4.3$ heat stack-create p1 -f parent.yaml
+------
| id | stack_name | stack_status | creation_time | updated_time |
+------
| db83e0f1-
+------
-bash-4.3$ heat stack-list -n
+------
| id | stack_name | stack_status | creation_time | updated_time | parent |
+------
| db83e0f1-
| ef7cf115-
+------
-bash-4.3$ heat stack-abandon p1 | tee abandon_data3.yaml
{
"files": {
"file:
},
"status": "COMPLETE",
"name": "p1",
"tags": null,
"stack_
"environment": {
"encrypted_
"parameter_
"parameters": {},
"resource_
"
"resources": {}
}
},
"template": {
"heat_
"resources": {
"nested": {
"type": "file:/
}
}
},
"action": "CREATE",
"project_id": "16e90909340245
"id": "db83e0f1-
"resources": {
"nested": {
"files": {
},
"status": "COMPLETE",
"name": "p1-nested-
"tags": null,
"
"
}
},
"template": {
"random": {
"type": "OS::Heat:
}
}
},
"action": "CREATE",
"project_id": "16e90909340245
"id": "ef7cf115-
"resources": {
"random": {
"status": "COMPLETE",
"name": "random",
},
"action": "CREATE",
"type": "OS::Heat:
}
}
}
}
}
-bash-4.3$ heat stack-list -n
+----+-
| id | stack_name | stack_status | creation_time | updated_time | parent |
+----+-
+----+-
-bash-4.3$
tags: | added: abandon-adopt |
Changed in heat: | |
assignee: | nobody → Peter Razumovsky (prazumovsky) |
importance: | Undecided → Medium |
milestone: | none → mitaka-1 |
Changed in heat: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/239936
Review: https:/