Skip to content

Conversation

@markgoddard
Copy link
Contributor

Add playbooks and scripts to aid in performing maintainence on hypervisors

These may be used to perform package updates that require a reboot:

  • disable compute service (nova-compute-disable.yml)
  • live migrate VMs away (nova-compute-drain.yml)
  • reboot (reboot.yml)
  • enable compute service (nova-compute-enable.yml)

They may also be used to drain a compute node before a rebuild:

  • disable compute service (nova-compute-disable.yml)
  • live migrate VMs away (nova-compute-drain.yml)
  • stop services (kayobe overcloud service stop)

markgoddard and others added 3 commits March 21, 2022 17:10
…isors

These may be used to perform package updates that require a reboot:

* disable compute service (nova-compute-disable.yml)
* live migrate VMs away (nova-compute-drain.yml)
* reboot (reboot.yml)
* enable compute service (nova-compute-enable.yml)

They may also be used to drain a compute node before a rebuild:

* disable compute service (nova-compute-disable.yml)
* live migrate VMs away (nova-compute-drain.yml)
* stop services (kayobe overcloud service stop)
Starting from python-openstackclient 5.5.0, it is not necessary to
specify the --block-migration argument when instance disks are not on
shared storage [1]. Instead, we can request the use of Nova API version
2.25, which added the auto value for block_migration.

This was added to Mitaka so it is safe to use on all our deployments.

This client version is only available from Wallaby. On Victoria, the
change is a no-op.

Note that a warning will be written to stderr about --disk-overcommit
and --no-disk-overcommit options. This is a bug in openstackclient [2].

[1] https://review.opendev.org/c/openstack/python-openstackclient/+/771801
[2] https://storyboard.openstack.org/#!/story/2009657
Note that `kayobe overcloud host package update` doesn't support serial
execution.
@markgoddard markgoddard self-assigned this Mar 21, 2022
@markgoddard markgoddard marked this pull request as ready for review March 22, 2022 10:40
@markgoddard markgoddard merged commit 2a401d7 into stackhpc/wallaby May 30, 2022
@markgoddard markgoddard deleted the compute-maintenance-playbooks branch May 30, 2022 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants