openstack ocata tripleo
The baremetal server can go in the provisioning state of error of a server. This also does not allow the server to be deleted from the baremetal servers lists known to the undercloud.
Before the server can be deleted from the openstack baremetal list the same has to be first removed from the error state
[stack@osa ~]$ openstack baremetal node provide 5944698a-bcaf-4c15-ab0c-42fa38b2f656
The requested action "provide" can not be performed on node "5944698a-bcaf-4c15-ab0c-42fa38b2f656" while it is in state "error". (HTTP 400)
[stack@osa ~]$ openstack baremetal node list
+--------------------------------------+-----------------+---------------+-------------+--------------------+-------------+
| UUID | Name | Instance UUID | Power State | Provisioning State | Maintenance |
+--------------------------------------+-----------------+---------------+-------------+--------------------+-------------+
| 5944698a-bcaf-4c15-ab0c-42fa38b2f656 | overcloud-node2 | None | power off | error | False |
+--------------------------------------+-----------------+---------------+-------------+--------------------+-------------+
As the provisioning state is in error the baremetal server cannot be put in the manageable or available using the openstack baremetal node manage or openstack baremetal node provision.
Hence the server has to be undeployed using the
openstack baremetal node undeploy <baremetal>
[stack@osa ~]$ openstack baremetal node undeploy 5944698a-bcaf-4c15-ab0c-42fa38b2f656
[stack@osa ~]$ openstack baremetal node list
+--------------------------------------+-----------------+---------------+-------------+--------------------+-------------+
| UUID | Name | Instance UUID | Power State | Provisioning State | Maintenance |
+--------------------------------------+-----------------+---------------+-------------+--------------------+-------------+
| 5944698a-bcaf-4c15-ab0c-42fa38b2f656 | overcloud-node2 | None | power off | available | False |
+--------------------------------------+-----------------+---------------+-------------+--------------------+-------------+
[stack@osa ~]$
As the baremetal server is now out of the error state, the node can be deleted if needed.
[stack@osa ~]$ openstack baremetal node delete 5944698a-bcaf-4c15-ab0c-42fa38b2f656
Deleted node 5944698a-bcaf-4c15-ab0c-42fa38b2f656
[stack@osa ~]$
The baremetal server can go in the provisioning state of error of a server. This also does not allow the server to be deleted from the baremetal servers lists known to the undercloud.
Before the server can be deleted from the openstack baremetal list the same has to be first removed from the error state
[stack@osa ~]$ openstack baremetal node provide 5944698a-bcaf-4c15-ab0c-42fa38b2f656
The requested action "provide" can not be performed on node "5944698a-bcaf-4c15-ab0c-42fa38b2f656" while it is in state "error". (HTTP 400)
[stack@osa ~]$ openstack baremetal node list
+--------------------------------------+-----------------+---------------+-------------+--------------------+-------------+
| UUID | Name | Instance UUID | Power State | Provisioning State | Maintenance |
+--------------------------------------+-----------------+---------------+-------------+--------------------+-------------+
| 5944698a-bcaf-4c15-ab0c-42fa38b2f656 | overcloud-node2 | None | power off | error | False |
+--------------------------------------+-----------------+---------------+-------------+--------------------+-------------+
As the provisioning state is in error the baremetal server cannot be put in the manageable or available using the openstack baremetal node manage or openstack baremetal node provision.
Hence the server has to be undeployed using the
openstack baremetal node undeploy <baremetal>
[stack@osa ~]$ openstack baremetal node undeploy 5944698a-bcaf-4c15-ab0c-42fa38b2f656
[stack@osa ~]$ openstack baremetal node list
+--------------------------------------+-----------------+---------------+-------------+--------------------+-------------+
| UUID | Name | Instance UUID | Power State | Provisioning State | Maintenance |
+--------------------------------------+-----------------+---------------+-------------+--------------------+-------------+
| 5944698a-bcaf-4c15-ab0c-42fa38b2f656 | overcloud-node2 | None | power off | available | False |
+--------------------------------------+-----------------+---------------+-------------+--------------------+-------------+
[stack@osa ~]$
As the baremetal server is now out of the error state, the node can be deleted if needed.
[stack@osa ~]$ openstack baremetal node delete 5944698a-bcaf-4c15-ab0c-42fa38b2f656
Deleted node 5944698a-bcaf-4c15-ab0c-42fa38b2f656
[stack@osa ~]$