Ironic: disallow deployment and cleaning in maintenance mode

This is a common source of confusion for users since ironic essentially
gets stuck in "wait call-back" or "clean wait" state. See e.g.
https://bugzilla.redhat.com/show_bug.cgi?id=1712561

Depends-On: https://review.opendev.org/#/c/683970/
Change-Id: I3b3f6037970e741f93549878e4e36d36297be9c3
This commit is contained in:
Dmitry Tantsur 2019-09-23 16:14:17 +02:00
parent 41dcc097ba
commit 036946bc7d
2 changed files with 12 additions and 0 deletions

View File

@ -301,6 +301,7 @@ outputs:
ironic::conductor::automated_clean: {get_param: IronicAutomatedClean}
ironic::conductor::enabled_hardware_types: {get_param: IronicEnabledHardwareTypes}
ironic::conductor::force_power_state_during_sync: {get_param: IronicForcePowerStateDuringSync}
ironic::conductor::allow_provisioning_in_maintenance: false
# We need an endpoint containing a real IP, not a VIP here
ironic_conductor_http_host:
str_replace:

View File

@ -0,0 +1,11 @@
---
upgrade:
- |
The bare metal service (ironic) no longer allows nodes in maintenance
to enter deployment or cleaning. If a node enters maintenance during
deployment or cleaning, the process will be immediately aborted.
fixes:
- |
Deployment or cleaning of bare metal nodes no longer gets stuck if a node
is in maintenance mode. The process is aborted instead and has to be
restarted after moving the node out of maintenance.