Maintenance mode¶
Maintenance mode may be used if you need to take a node out of the resource pool. Putting a node in maintenance mode will prevent Bare Metal service from executing periodic tasks associated with the node. This will also prevent Compute service from placing a tenant instance on the node by not exposing the node to the nova scheduler. Nodes can be placed into maintenance mode with the following command.
$ openstack baremetal node maintenance set $NODE_UUID
A maintenance reason may be included with the optional --reason
command
line option. This is a free form text field that will be displayed in the
maintenance_reason
section of the node show
command.
$ openstack baremetal node maintenance set $UUID --reason "Need to add ram."
$ openstack baremetal node show $UUID
+------------------------+--------------------------------------+
| Property | Value |
+------------------------+--------------------------------------+
| target_power_state | None |
| extra | {} |
| last_error | None |
| updated_at | 2015-04-27T15:43:58+00:00 |
| maintenance_reason | Need to add ram. |
| ... | ... |
| maintenance | True |
| ... | ... |
+------------------------+--------------------------------------+
To remove maintenance mode and clear any maintenance_reason
use the
following command.
$ openstack baremetal node maintenance unset $NODE_UUID