Unable to delete overcloud node when identifying --stack by UUID, using name works however
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
New
|
Undecided
|
Unassigned |
Bug Description
Running `openstack overcloud node delete --stack $stack $node_uuid` fails if $stack is set to the UUID of a heat stack. Setting it to the stack_name, e.g. "overcloud", succeeds however. As per the output of `openstack overcloud node delete --help`, they should be interchangeable. The gist of the error is "Environment not found [name=23e7c364-
Full error message below:
[stack@hci-director ~]$ nova_id=$(openstack server list | grep compute-3 | awk {'print $2'} | egrep -vi 'id|^$')
[stack@hci-director ~]$ stack_id=
[stack@hci-director ~]$ time openstack overcloud node delete --stack $stack_id $nova_id
deleting nodes [u'6b2a2e71-
Started Mistral Workflow. Execution ID: 4864b1df-
{u'execution': {u'id': u'4864b1df-
u'message': u"Failed to run action [action_
u'status': u'FAILED'}
real 1m39.169s
user 0m0.530s
sys 0m0.104s
[stack@hci-director ~]$
Additional Details:
The stack ID was correct:
[stack@hci-director ~]$ heat stack-list
WARNING (shell) "heat stack-list" is deprecated, please use "openstack stack list" instead
+------
| id | stack_name | stack_status | creation_time | updated_time |
+------
| 23e7c364-
+------
[stack@hci-director ~]$
As well as the nova id:
[stack@hci-director ~]$ openstack server list | grep osd-compute-3
| 6b2a2e71-
[stack@hci-director ~]$
Note that the delete works if I identify the stack by its name.
[stack@hci-director ~]$ time openstack overcloud node delete --stack overcloud 6b2a2e71-
deleting nodes [u'6b2a2e71-
Started Mistral Workflow. Execution ID: 396f123d-
real 1m50.662s
user 0m0.563s
sys 0m0.099s
[stack@hci-director ~]$
Thank you for the detailed bug report! This looks like a duplicate of bug 1640933, which was just fixed on master last week - doesn't look like a backport made it through yet though.