Red Hat Bugzilla – Bug 1262126
nova host-update <uuid> --maintenance enable fails
Last modified: 2015-09-18 10:40:15 EDT
Description of problem:
nova host-update <uuid> --maintenance enable fails when using the kvm compute plugin.
This bug exists upstream here: https://bugs.launchpad.net/nova/+bug/1465176
Version-Release number of selected component (if applicable):
RHEL-OSP 7 GA
Steps to Reproduce:
1. run the above command
fails, I don't have an environment to run the command on to give the exact output ATM
Put's compute node in maintenance mode
As a workaround you can run the following command from one of the controller nodes (after pulling in the overcloudrc file from the undercloud):
# nova-manage service disable --host <host> --service openstack-nova-compute
ERROR (NotFound): Compute host <UUID> could not be found. (HTTP 404) (Request-ID: req-17bbf512-3a9d-4bab-bd81-507f7297e73a)
Host maintenance mode is a Xen specific concept and as such is not implemented by the other drivers. The closest equivalent for Libvirt/KVM today is to disable the service (the stated workaround) and call host-evacuate (or alternatively issue host-servers-migrate or host-evacuate-live before disabling the service).