resource-list filtering does NOT work when 'nested-depth' is specified
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Rabi Mishra |
Bug Description
Version:
heatclient: 1.2.0
heat: master on 67e6f20967c67da
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:
If I don't speficy the 'nested-depth' option the cmd works fine:
heat resource-list fail_bay -f status=FAILED
But if 'nested-depth' option was specified, the filters would not work and all of the resources are returned:
heat resource-list fail_bay -n 2 -f status=FAILED
Expected:
Only the failed resources of stack 'fail_bay' will be returned
Actual:
All resources of stack 'fail_bay' returned.
For the details of heat command output please see[1], heat logs are attached.
Changed in heat: | |
milestone: | none → newton-2 |
We don't seem to be passing filters to the iter_resources for nested stack.
https:/ /github. com/openstack/ heat/blob/ master/ heat/engine/ stack.py# L338