Browse Source

Merge "[train-only][ffwd] Update InstanceHA script in hybrid mode" into stable/train

changes/94/762994/1
Zuul 2 months ago
committed by Gerrit Code Review
parent
commit
0846de7c16
1 changed files with 18 additions and 1 deletions
  1. +18
    -1
      deployment/nova/nova-compute-container-puppet.yaml

+ 18
- 1
deployment/nova/nova-compute-container-puppet.yaml View File

@@ -1173,7 +1173,24 @@ outputs:
shell: crudini --del database /var/lib/config-data/puppet-generated/nova_libvirt/etc/nova/nova.conf
- name: Remove api_database section from nova_compute config
shell: crudini --del api_database /var/lib/config-data/puppet-generated/nova_libvirt/etc/nova/nova.conf
# This code is partial copy of logic in podman installation
# We have to update check-run-nova-compute as it's distributed via THT and not rpm or image so at this
# moment we have Queens code instead of Train which will not work due to switch from python2 to python3
- name: is Instance HA enabled
set_fact:
instance_ha_enabled: {get_param: EnableInstanceHA}
- name: install Instance HA recovery script
when: instance_ha_enabled|bool
block:
- name: prepare Instance HA script directory
file:
path: /var/lib/nova/instanceha
state: directory
- name: install Instance HA script that runs nova-compute
copy:
content: {get_file: ../../scripts/check-run-nova-compute}
dest: /var/lib/nova/instanceha/check-run-nova-compute
mode: 0755
# In case UC is registry we need to be able to resolve it
- name: Make sure the Undercloud hostname is included in /etc/hosts
when:
- undercloud_hosts_entries is defined


Loading…
Cancel
Save