Maintenance mode ================ Overview -------- Maintenance mode helps by protecting the cluster from potentially disruptive maintenance operations. It is useful for performing maintenance tasks on a node that may result in a loss of data or disrupt running services such as firmware upgrades. Before proceeding, refer to the :doc:`Maintenance Mode ` to understand its functionality and impact. Enabling Maintenance feature ---------------------------- .. code:: text sunbeam enable maintenance Maintenance mode relies on `OpenStack Watcher`_ to manage hypervisor services and virtual machine instances. Enabling Maintenance mode feature will also enable resource optimization feature to deploy required applications like watcher. Usage ----- Enabling Maintenance Mode ~~~~~~~~~~~~~~~~~~~~~~~~~ Before enabling maintenance mode, perform a dry run to check for potential issues: .. code:: text sunbeam cluster maintenance enable --dry-run Continue to run operations to enable maintenance mode for : 0: change_nova_service_state state=disabled resource= 1: Migrate instance type=live resource=test-vm1 2: Migrate instance type=live resource=test-vm2 3: set-noout-ops 4: assert-noout-flag-set-ops If no issues are reported, enable maintenance mode: .. code:: text sunbeam cluster maintenance enable Continue to run operations to enable maintenance mode for : 0: change_nova_service_state state=disabled resource= 1: Migrate instance type=live resource=test-vm1 2: Migrate instance type=live resource=test-vm2 3: set-noout-ops 4: assert-noout-flag-set-ops [y/n]: y Operation result: 0: change_nova_service_state state=disabled resource= SUCCEEDED 1: Migrate instance type=live resource=test-vm1 SUCCEEDED 2: Migrate instance type=live resource=test-vm2 SUCCEEDED 3: set-noout-ops SUCCEEDED 4: assert-noout-flag-set-ops SUCCEEDED Enable maintenance for node: Disabling Maintenance Mode ~~~~~~~~~~~~~~~~~~~~~~~~~~ To disable maintenance mode, first run a dry run to validate the operation: .. code:: text sunbeam cluster maintenance disable --dry-run required operations to disable maintenance mode for : 0: EnableHypervisorStep 1: unset-noout-ops 2: assert-noout-flag-unset-ops 3: start-osd-ops Disable maintenance for node: If the output confirms a safe transition, disable maintenance mode: .. code:: text sunbeam cluster maintenance disable Continue to run operations to disable maintenance mode for : 0: EnableHypervisorStep 1: unset-noout-ops 2: assert-noout-flag-unset-ops 3: start-osd-ops [y/n]: y Operation result: 0: EnableHypervisorStep SUCCEEDED 1: unset-noout-ops SUCCEEDED 2: assert-noout-flag-unset-ops SUCCEEDED 3: start-osd-ops SUCCEEDED Disable maintenance for node: .. LINKS .. _OpenStack Watcher: https://wiki.openstack.org/wiki/Watcher Known issues ------------- Cold migration is not supported ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Currently cold migration is not supported in Sunbeam. So maintenance mode pre-flight check will block user to continue if there are any instances in SHUTOFF status. This will blocked until upstream watcher support disabling cold migration in host maintenance strategy.