Neutron ugprade play
Since openvswitch is handled in the kernel, it really is as simple as upgrade the container since the container only has userspace tools in it. Partially-Implements: blueprint upgrade-kolla Implements: blueprint upgrade-neutron Change-Id: Iec57c67a1ccba8f48b752fe832cd714bcc658af0
This commit is contained in:
parent
287e4faf99
commit
3cdd445d8b
@ -35,22 +35,5 @@
|
|||||||
run_once: True
|
run_once: True
|
||||||
delegate_to: "{{ groups['neutron-server'][0] }}"
|
delegate_to: "{{ groups['neutron-server'][0] }}"
|
||||||
|
|
||||||
- name: Running Neutron bootstrap container
|
- include: bootstrap_service.yml
|
||||||
kolla_docker:
|
|
||||||
action: "start_container"
|
|
||||||
common_options: "{{ docker_common_options }}"
|
|
||||||
detach: False
|
|
||||||
environment:
|
|
||||||
KOLLA_BOOTSTRAP:
|
|
||||||
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
|
||||||
image: "{{ neutron_server_image_full }}"
|
|
||||||
labels:
|
|
||||||
BOOTSTRAP:
|
|
||||||
name: "bootstrap_neutron"
|
|
||||||
restart_policy: "never"
|
|
||||||
volumes:
|
|
||||||
- "{{ node_config_directory }}/neutron-server/:{{ container_config_directory }}/:ro"
|
|
||||||
- "kolla_logs:/var/log/kolla/"
|
|
||||||
run_once: True
|
|
||||||
delegate_to: "{{ groups['neutron-server'][0] }}"
|
|
||||||
when: database_created
|
when: database_created
|
||||||
|
19
ansible/roles/neutron/tasks/bootstrap_service.yml
Normal file
19
ansible/roles/neutron/tasks/bootstrap_service.yml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
---
|
||||||
|
- name: Running Neutron bootstrap container
|
||||||
|
kolla_docker:
|
||||||
|
action: "start_container"
|
||||||
|
common_options: "{{ docker_common_options }}"
|
||||||
|
detach: False
|
||||||
|
environment:
|
||||||
|
KOLLA_BOOTSTRAP:
|
||||||
|
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
|
||||||
|
image: "{{ neutron_server_image_full }}"
|
||||||
|
labels:
|
||||||
|
BOOTSTRAP:
|
||||||
|
name: "bootstrap_neutron"
|
||||||
|
restart_policy: "never"
|
||||||
|
volumes:
|
||||||
|
- "{{ node_config_directory }}/neutron-server/:{{ container_config_directory }}/:ro"
|
||||||
|
- "kolla_logs:/var/log/kolla/"
|
||||||
|
run_once: True
|
||||||
|
delegate_to: "{{ groups['neutron-server'][0] }}"
|
@ -1 +1,23 @@
|
|||||||
---
|
---
|
||||||
|
- include: config.yml
|
||||||
|
when: inventory_hostname in groups['compute']
|
||||||
|
or inventory_hostname in groups['neutron-dhcp-agent']
|
||||||
|
or inventory_hostname in groups['neutron-l3-agent']
|
||||||
|
or inventory_hostname in groups['neutron-metadata-agent']
|
||||||
|
or inventory_hostname in groups['neutron-server']
|
||||||
|
|
||||||
|
- include: config-neutron-fake.yml
|
||||||
|
when:
|
||||||
|
- inventory_hostname in groups['compute']
|
||||||
|
- enable_nova_fake | bool
|
||||||
|
|
||||||
|
- include: bootstrap_service.yml
|
||||||
|
when: inventory_hostname in groups['neutron-server']
|
||||||
|
|
||||||
|
- include: start.yml
|
||||||
|
serial: "%30"
|
||||||
|
when: inventory_hostname in groups['compute']
|
||||||
|
or inventory_hostname in groups['neutron-dhcp-agent']
|
||||||
|
or inventory_hostname in groups['neutron-l3-agent']
|
||||||
|
or inventory_hostname in groups['neutron-metadata-agent']
|
||||||
|
or inventory_hostname in groups['neutron-server']
|
||||||
|
Loading…
Reference in New Issue
Block a user