Merge "Refactor nova upgrade task"

This commit is contained in:
Zuul 2024-09-13 13:26:49 +00:00 committed by Gerrit Code Review
commit badd9e872b
4 changed files with 24 additions and 24 deletions

View File

@ -1,16 +0,0 @@
---
# Create new set of configs on nodes
- import_tasks: config.yml
- import_tasks: check-containers.yml
# TODO(donghm): Flush_handlers to restart nova services
# should be run in serial nodes to decrease downtime if
# the previous task did not run. Update when the
# Ansible strategy module for rolling upgrade is finished.
- name: Flush handlers
meta: flush_handlers
# NOTE(dszumski): The Nova upgrade is not finished here and
# continues in subsequent tasks.

View File

@ -6,6 +6,9 @@
service_ks_register_auth: "{{ openstack_nova_auth }}"
service_ks_register_user_roles: "{{ nova_ks_user_roles }}"
# Create new set of configs on nodes
- import_tasks: config.yml
- name: Run Nova upgrade checks
become: true
vars:
@ -48,4 +51,15 @@
when:
- nova_safety_upgrade | bool
- import_tasks: rolling_upgrade.yml
- import_tasks: check-containers.yml
# TODO(donghm): Flush_handlers to restart nova services
# should be run in serial nodes to decrease downtime if
# the previous task did not run. Update when the
# Ansible strategy module for rolling upgrade is finished.
- name: Flush handlers
meta: flush_handlers
# NOTE(dszumski): The Nova upgrade is not finished here and
# continues in subsequent tasks.

View File

@ -608,13 +608,11 @@ workaround_ansible_issue_8743: yes
# The number of fake driver per compute node
#num_nova_fake_per_node: 5
# The flag "nova_safety_upgrade" need to be consider when
# "nova_enable_rolling_upgrade" is enabled. The "nova_safety_upgrade"
# controls whether the nova services are all stopped before rolling
# upgrade to the new version, for the safety and availability.
# If "nova_safety_upgrade" is "yes", that will stop all nova services (except
# nova-compute) for no failed API operations before upgrade to the
# new version. And opposite.
# The "nova_safety_upgrade" controls whether the nova services
# are all stopped before rolling upgrade to the new version,
# for the safety and availability. If "nova_safety_upgrade" is "yes",
# that will stop all nova services (except nova-compute) for no failed
# API operations before upgrade to the new version. And opposite.
#nova_safety_upgrade: "no"
# Valid options are [ none, novnc, spice ]

View File

@ -0,0 +1,4 @@
---
fixes:
- |
nova_upgrade_checks container uses a newly generated config.json