find_stack api treat stack_name and id differently
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
New
|
Undecided
|
Neetu Jain |
Bug Description
http://
If I have a deleted stack, which name is stack_deleted.
I will get a 404 error if I request to v1/stacks/
That block the function of openstacksdk, because it always request with id. And it can receive an 404 error if the stack are deleted. If any tool that use this url , they might face the same issue.
➜ unicode git:(master) ✗ heat stack-show n1-OpDX1a3P
Stack not found: n1-OpDX1a3P
➜ unicode git:(master) ✗ heat stack-show 35d2103b-
+------
| Property | Value |
+------
| capabilities | [] |
| creation_time | 2015-12-23T16:47:04 |
| description | No description |
| disable_rollback | True |
| id | 35d2103b-
| links | http://
| notification_topics | [] |
| parameters | { |
| | "OS::stack_id": "35d2103b-
| | "OS::project_id": "1e6a5c5d14f647
| | "OS::stack_name": "n1-OpDX1a3P", |
| | "file": "{u'get_file': u'file:
| | } |
| parent | None |
| stack_name | n1-OpDX1a3P |
| stack_owner | None |
| stack_status | DELETE_COMPLETE |
| stack_status_reason | Stack DELETE completed successfully |
| stack_user_
| tags | None |
| template_
| timeout_mins | 60 |
| updated_time | None |
+------
Changed in heat: | |
milestone: | none → no-priority-tag-bugs |
I confirm this bug