[train-only][ffwd] Dont reuse tripleo_step4 for hybrid state
Due to changes in paunch in Queens we had to separate out the config of hybrid state containers. We run them up separately but we were reusing the tripleo_step4 config id. By creating separate config id for each hybrid container. But this requires us to remove the running container in different config. Change-Id: I31581f176bb4f056309f127608451caec0202a68
This commit is contained in:
parent
290059ebb0
commit
af90cef667
|
@ -290,9 +290,14 @@ outputs:
|
||||||
service:
|
service:
|
||||||
name: docker
|
name: docker
|
||||||
state: restarted
|
state: restarted
|
||||||
|
- name: Remove neutron_sriov_agent container before applying new paunch config
|
||||||
|
docker_container:
|
||||||
|
name: neutron_sriov_agent
|
||||||
|
state: absent
|
||||||
# Finally apply the paunch config to start the new nova_compute
|
# Finally apply the paunch config to start the new nova_compute
|
||||||
- name: Apply paunch config
|
- name: Apply paunch config for neutron_sriov
|
||||||
shell: paunch apply --file /var/lib/tripleo-config/docker-container-hybrid_neutron_sriov.json --config-id tripleo_step4
|
shell: |
|
||||||
|
paunch apply --file /var/lib/tripleo-config/docker-container-hybrid_neutron_sriov.json --config-id hybrid_neutron_sriov
|
||||||
|
|
||||||
- name: upgrade prepare for leapp to remove extra sriov vfs
|
- name: upgrade prepare for leapp to remove extra sriov vfs
|
||||||
tags:
|
tags:
|
||||||
|
|
|
@ -1213,9 +1213,14 @@ outputs:
|
||||||
service:
|
service:
|
||||||
name: docker
|
name: docker
|
||||||
state: restarted
|
state: restarted
|
||||||
|
- name: Remove nova_compute container before applying new paunch config
|
||||||
|
docker_container:
|
||||||
|
name: nova_compute
|
||||||
|
state: absent
|
||||||
# Finally apply the paunch config to start the new nova_compute
|
# Finally apply the paunch config to start the new nova_compute
|
||||||
- name: Apply paunch config
|
- name: Apply paunch config for nova_compute
|
||||||
shell: paunch apply --file /var/lib/tripleo-config/docker-container-hybrid_nova_compute.json --config-id tripleo_step4
|
shell: |
|
||||||
|
paunch apply --file /var/lib/tripleo-config/docker-container-hybrid_nova_compute.json --config-id hybrid_nova_compute
|
||||||
- name: Remove openstack-nova-compute and python-nova package during upgrade
|
- name: Remove openstack-nova-compute and python-nova package during upgrade
|
||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
|
|
|
@ -333,8 +333,8 @@ outputs:
|
||||||
- name: Update the ovn_controller paunch image in config
|
- name: Update the ovn_controller paunch image in config
|
||||||
shell: |
|
shell: |
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
jq '.ovn_controller.image = "{{ ovn_controller_image }}" |\
|
jq '.ovn_controller.image = "{{ ovn_controller_image }}" |
|
||||||
.ovn_controller.volumes += ["/var/lib/openvswitch/ovn:/run/ovn:shared", "/var/log/containers/openvswitch:/var/log/ovn"] |\
|
.ovn_controller.volumes += ["/var/lib/openvswitch/ovn:/run/ovn:shared", "/var/log/containers/openvswitch:/var/log/ovn"] |
|
||||||
{"ovn_controller": .ovn_controller }' \
|
{"ovn_controller": .ovn_controller }' \
|
||||||
/var/lib/tripleo-config/docker-container-startup-config-step_4.json >\
|
/var/lib/tripleo-config/docker-container-startup-config-step_4.json >\
|
||||||
/var/lib/tripleo-config/docker-container-hybrid_ovn_controller.json
|
/var/lib/tripleo-config/docker-container-hybrid_ovn_controller.json
|
||||||
|
@ -363,8 +363,6 @@ outputs:
|
||||||
RUNNING="$( docker ps --format '{{ '{{' }}.Names{{ '}}' }}' )"
|
RUNNING="$( docker ps --format '{{ '{{' }}.Names{{ '}}' }}' )"
|
||||||
# Restart docker
|
# Restart docker
|
||||||
systemctl restart docker
|
systemctl restart docker
|
||||||
# Apply the paunch so if we start even more stuff we start it before shutting down
|
|
||||||
paunch apply --file /var/lib/tripleo-config/docker-container-hybrid_ovn_controller.json --config-id tripleo_step4
|
|
||||||
# Compare running containers now vs before
|
# Compare running containers now vs before
|
||||||
TO_STOP="$(grep -v -f <(echo "${RUNNING}") <(docker ps --format '{{ '{{' }}.Names{{ '}}' }}'))"
|
TO_STOP="$(grep -v -f <(echo "${RUNNING}") <(docker ps --format '{{ '{{' }}.Names{{ '}}' }}'))"
|
||||||
# Check if we need to stop anything and stop it
|
# Check if we need to stop anything and stop it
|
||||||
|
@ -373,6 +371,13 @@ outputs:
|
||||||
fi
|
fi
|
||||||
args:
|
args:
|
||||||
executable: /usr/bin/bash
|
executable: /usr/bin/bash
|
||||||
|
- name: Remove ovn_controller container before applying new paunch config
|
||||||
|
docker_container:
|
||||||
|
name: ovn_controller
|
||||||
|
state: absent
|
||||||
|
- name: Apply paunch config if insecure registries are empty
|
||||||
|
shell: |
|
||||||
|
paunch apply --file /var/lib/tripleo-config/docker-container-hybrid_ovn_controller.json --config-id hybrid_ovn_controller
|
||||||
- name: Get ovn remote setting
|
- name: Get ovn remote setting
|
||||||
shell: |
|
shell: |
|
||||||
ovs-vsctl get open . external_ids:ovn-remote
|
ovs-vsctl get open . external_ids:ovn-remote
|
||||||
|
|
Loading…
Reference in New Issue