The rolling upgrade has been the default since Stein. The legacy upgrade has been removed because it doesn't follow the upgrade guide [1]. [1] https://docs.openstack.org/nova/latest/user/upgrade.html Change-Id: I2aa879699cb4e9955bf5c38053eada5a53fb6211
26 lines
809 B
YAML
26 lines
809 B
YAML
---
|
|
- name: Check nova upgrade status
|
|
become: true
|
|
command: docker exec -t nova_api nova-status upgrade check
|
|
register: nova_upgrade_check_stdout
|
|
when: inventory_hostname == groups['nova-api'][0]
|
|
failed_when: false
|
|
|
|
- name: Upgrade status check result
|
|
fail:
|
|
msg:
|
|
- "There was an upgrade status check failure!"
|
|
- "See the detail at https://docs.openstack.org/nova/latest/cli/nova-status.html#nova-status-checks"
|
|
vars:
|
|
first_nova_api_host: "{{ groups['nova-api'][0] }}"
|
|
when: hostvars[first_nova_api_host]['nova_upgrade_check_stdout']['rc'] not in [0, 1]
|
|
|
|
- include_tasks: rolling_upgrade.yml
|
|
|
|
# NOTE(jeffrey4l): Remove this task in U cycle.
|
|
- name: Remove nova-consoleauth container
|
|
become: true
|
|
kolla_docker:
|
|
action: "remove_container"
|
|
name: "nova_consoleauth"
|