resource-list filtering doesn't manage dependencies properly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Thomas Herve |
Bug Description
Version
heatclient: 1.2.0
heat: master on 2969f0a49e830e3
Procedure
1. I created a magnum bay with following cmds:
magnum baymodel-create --name k8sbaymodel --image-id fedora-
magnum bay-create --name fail_bay --baymodel k8sbaymodel --node-count 3
2. The bay creation failed and I tried to do list the failing resources of the bay with:
heat resource-list fail_bay -f status=FAILED
Expected:
The resources of stack 'fail_bay' will be returned
Actual:
Got an error "ERROR: The specified reference "extrouter_inside" (in kube_minions) is incorrect."
For the details of heat command output please see[1], heat logs are attached.
It's not clear what's going on exactly. The problem seems to be with the template here: https:/ /github. com/openstack/ magnum/ blob/master/ magnum/ templates/ kubernetes/ kubecluster- fedora- ironic. yaml#L149
That said, Heat shouldn't (and doesn't in my tests) allow to create such a template. There is no reason to go in a FAILED state as it doesn't validate.