diff options
| author | SamYaple <sam@yaple.net> | 2016-01-28 02:04:02 +0000 |
|---|---|---|
| committer | SamYaple <sam@yaple.net> | 2016-01-28 20:26:41 +0000 |
| commit | 6d8959a962c038269653b00ba7ddb491c597e49a (patch) | |
| tree | df735e3fa012d3cb7aef3f24952a62d45b18f37c | |
| parent | 55c3e0252eee60fe488404bf7409ca93216026aa (diff) | |
| download | kolla-6d8959a962c038269653b00ba7ddb491c597e49a.tar.gz kolla-6d8959a962c038269653b00ba7ddb491c597e49a.zip | |
Update all bootstraps to use Label
Add bootstrap label to all bootstrap containers to ensure that when
the a new container is launched a difference is seen between it and
the bootstrap container since we cannot rely on ENV variables for
this. This only affects mariadb at this stage, but it is needed to
ensure rabbitmq works when we switch to named volumes.
Change-Id: Ia022af26212d2e5445c06149848831037a508407
Closes-Bug: #1538136
| -rw-r--r-- | ansible/roles/ceph/tasks/bootstrap_osds.yml | 4 | ||||
| -rw-r--r-- | ansible/roles/ceph/tasks/generate_cluster.yml | 2 | ||||
| -rw-r--r-- | ansible/roles/cinder/tasks/bootstrap.yml | 4 | ||||
| -rw-r--r-- | ansible/roles/glance/tasks/bootstrap.yml | 2 | ||||
| -rw-r--r-- | ansible/roles/heat/tasks/bootstrap.yml | 2 | ||||
| -rw-r--r-- | ansible/roles/ironic/tasks/bootstrap.yml | 4 | ||||
| -rw-r--r-- | ansible/roles/keystone/tasks/bootstrap_service.yml | 2 | ||||
| -rw-r--r-- | ansible/roles/magnum/tasks/bootstrap.yml | 2 | ||||
| -rw-r--r-- | ansible/roles/mariadb/tasks/bootstrap.yml | 2 | ||||
| -rw-r--r-- | ansible/roles/mistral/tasks/bootstrap.yml | 2 | ||||
| -rw-r--r-- | ansible/roles/murano/tasks/bootstrap.yml | 2 | ||||
| -rw-r--r-- | ansible/roles/neutron/tasks/bootstrap.yml | 2 | ||||
| -rw-r--r-- | ansible/roles/nova/tasks/bootstrap.yml | 8 | ||||
| -rw-r--r-- | ansible/roles/rabbitmq/tasks/bootstrap.yml | 2 |
14 files changed, 37 insertions, 3 deletions
diff --git a/ansible/roles/ceph/tasks/bootstrap_osds.yml b/ansible/roles/ceph/tasks/bootstrap_osds.yml index 20b5bdaac..7cd143a3f 100644 --- a/ansible/roles/ceph/tasks/bootstrap_osds.yml +++ b/ansible/roles/ceph/tasks/bootstrap_osds.yml @@ -34,6 +34,8 @@ OSD_DEV: "{{ item.1.device }}" OSD_INITIAL_WEIGHT: "{{ osd_initial_weight }}" image: "{{ ceph_osd_image_full }}" + labels: + BOOTSTRAP: name: "bootstrap_osd_{{ item.0 }}" privileged: True restart_policy: "never" @@ -54,6 +56,8 @@ OSD_DEV: "{{ item.1.device }}" OSD_INITIAL_WEIGHT: "{{ osd_initial_weight }}" image: "{{ ceph_osd_image_full }}" + labels: + BOOTSTRAP: name: "bootstrap_osd_cache_{{ item.0 }}" privileged: True restart_policy: "never" diff --git a/ansible/roles/ceph/tasks/generate_cluster.yml b/ansible/roles/ceph/tasks/generate_cluster.yml index 06797b40f..1556e08c3 100644 --- a/ansible/roles/ceph/tasks/generate_cluster.yml +++ b/ansible/roles/ceph/tasks/generate_cluster.yml @@ -9,6 +9,8 @@ KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}" MON_IP: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}" image: "{{ ceph_mon_image_full }}" + labels: + BOOTSTRAP: name: "bootstrap_ceph_mon" restart_policy: "never" volumes: diff --git a/ansible/roles/cinder/tasks/bootstrap.yml b/ansible/roles/cinder/tasks/bootstrap.yml index adafe2068..be7966d56 100644 --- a/ansible/roles/cinder/tasks/bootstrap.yml +++ b/ansible/roles/cinder/tasks/bootstrap.yml @@ -43,8 +43,10 @@ environment: KOLLA_BOOTSTRAP: KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}" - name: "bootstrap_cinder" image: "{{ cinder_api_image_full }}" + labels: + BOOTSTRAP: + name: "bootstrap_cinder" restart_policy: "never" volumes: "{{ node_config_directory }}/cinder-api/:{{ container_config_directory }}/:ro" run_once: True diff --git a/ansible/roles/glance/tasks/bootstrap.yml b/ansible/roles/glance/tasks/bootstrap.yml index e06014ba4..2ac9b696f 100644 --- a/ansible/roles/glance/tasks/bootstrap.yml +++ b/ansible/roles/glance/tasks/bootstrap.yml @@ -45,6 +45,8 @@ KOLLA_BOOTSTRAP: KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}" image: "{{ glance_api_image_full }}" + labels: + BOOTSTRAP: name: "bootstrap_glance" restart_policy: "never" volumes: diff --git a/ansible/roles/heat/tasks/bootstrap.yml b/ansible/roles/heat/tasks/bootstrap.yml index fb23a6c36..ccf0cc234 100644 --- a/ansible/roles/heat/tasks/bootstrap.yml +++ b/ansible/roles/heat/tasks/bootstrap.yml @@ -50,6 +50,8 @@ OS_PROJECT_NAME: "{{ openstack_auth.project_name }}" HEAT_DOMAIN_ADMIN_PASSWORD: "{{ heat_domain_admin_password }}" image: "{{ heat_api_image_full }}" + labels: + BOOTSTRAP: name: "bootstrap_heat" volumes: "{{ node_config_directory }}/heat-api/:{{ container_config_directory }}/:ro" run_once: True diff --git a/ansible/roles/ironic/tasks/bootstrap.yml b/ansible/roles/ironic/tasks/bootstrap.yml index 7217c4f29..4a4b9ee4b 100644 --- a/ansible/roles/ironic/tasks/bootstrap.yml +++ b/ansible/roles/ironic/tasks/bootstrap.yml @@ -46,6 +46,8 @@ KOLLA_BOOTSTRAP: KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}" image: "{{ ironic_api_image_full }}" + labels: + BOOTSTRAP: name: "bootstrap_ironic" restart_policy: "never" volumes: "{{ node_config_directory }}/ironic-api/:{{ container_config_directory }}/:ro" @@ -62,6 +64,8 @@ KOLLA_BOOTSTRAP: KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}" image: "{{ ironic_pxe_image_full }}" + labels: + BOOTSTRAP: name: "bootstrap_ironic_pxe" restart_policy: "never" volumes: diff --git a/ansible/roles/keystone/tasks/bootstrap_service.yml b/ansible/roles/keystone/tasks/bootstrap_service.yml index 6b8ad2bfa..b522ea036 100644 --- a/ansible/roles/keystone/tasks/bootstrap_service.yml +++ b/ansible/roles/keystone/tasks/bootstrap_service.yml @@ -8,6 +8,8 @@ KOLLA_BOOTSTRAP: KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}" image: "{{ keystone_image_full }}" + labels: + BOOTSTRAP: name: "bootstrap_keystone" restart_policy: "never" volumes: "{{ node_config_directory }}/keystone/:{{ container_config_directory }}/:ro" diff --git a/ansible/roles/magnum/tasks/bootstrap.yml b/ansible/roles/magnum/tasks/bootstrap.yml index e72df328b..09bc61961 100644 --- a/ansible/roles/magnum/tasks/bootstrap.yml +++ b/ansible/roles/magnum/tasks/bootstrap.yml @@ -44,6 +44,8 @@ KOLLA_BOOTSTRAP: KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}" image: "{{ magnum_api_image_full }}" + labels: + BOOTSTRAP: name: "bootstrap_magnum" restart_policy: "never" volumes: "{{ node_config_directory }}/magnum-api/:{{ container_config_directory }}/:ro" diff --git a/ansible/roles/mariadb/tasks/bootstrap.yml b/ansible/roles/mariadb/tasks/bootstrap.yml index ac8254a35..aef939226 100644 --- a/ansible/roles/mariadb/tasks/bootstrap.yml +++ b/ansible/roles/mariadb/tasks/bootstrap.yml @@ -44,6 +44,8 @@ DB_ROOT_PASSWORD: "{{ database_password }}" DB_MAX_TIMEOUT: "{{ database_max_timeout }}" image: "{{ mariadb_image_full }}" + labels: + BOOTSTRAP: name: "mariadb" restart_policy: "never" volumes: diff --git a/ansible/roles/mistral/tasks/bootstrap.yml b/ansible/roles/mistral/tasks/bootstrap.yml index 0373842a5..ec2f251e2 100644 --- a/ansible/roles/mistral/tasks/bootstrap.yml +++ b/ansible/roles/mistral/tasks/bootstrap.yml @@ -45,6 +45,8 @@ KOLLA_BOOTSTRAP: KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}" image: "{{ mistral_api_image_full }}" + labels: + BOOTSTRAP: name: "bootstrap_mistral" restart_policy: "never" volumes: "{{ node_config_directory }}/mistral-api/:{{ container_config_directory }}/:ro" diff --git a/ansible/roles/murano/tasks/bootstrap.yml b/ansible/roles/murano/tasks/bootstrap.yml index 7c58727bb..0d07a0cec 100644 --- a/ansible/roles/murano/tasks/bootstrap.yml +++ b/ansible/roles/murano/tasks/bootstrap.yml @@ -45,6 +45,8 @@ KOLLA_BOOTSTRAP: KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}" image: "{{ murano_api_image_full }}" + labels: + BOOTSTRAP: name: "bootstrap_murano" restart_policy: "never" volumes: "{{ node_config_directory }}/murano-api/:{{ container_config_directory }}/:ro" diff --git a/ansible/roles/neutron/tasks/bootstrap.yml b/ansible/roles/neutron/tasks/bootstrap.yml index db1654fa2..ba63dc685 100644 --- a/ansible/roles/neutron/tasks/bootstrap.yml +++ b/ansible/roles/neutron/tasks/bootstrap.yml @@ -44,6 +44,8 @@ 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" diff --git a/ansible/roles/nova/tasks/bootstrap.yml b/ansible/roles/nova/tasks/bootstrap.yml index fcdd2a707..9f874efd5 100644 --- a/ansible/roles/nova/tasks/bootstrap.yml +++ b/ansible/roles/nova/tasks/bootstrap.yml @@ -35,7 +35,7 @@ run_once: True delegate_to: "{{ groups['nova-api'][0] }}" -- name: Starting Nova bootstrap container +- name: Running Nova bootstrap container kolla_docker: action: "start_container" common_options: "{{ docker_common_options }}" @@ -44,6 +44,8 @@ KOLLA_BOOTSTRAP: KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}" image: "{{ nova_api_image_full }}" + labels: + BOOTSTRAP: name: "bootstrap_nova" restart_policy: "never" volumes: "{{ node_config_directory }}/nova-api/:{{ container_config_directory }}/:ro" @@ -61,7 +63,7 @@ - inventory_hostname in groups['compute'] - not enable_nova_fake | bool -- name: Starting Nova compute bootstrap container +- name: Running Nova compute bootstrap container kolla_docker: action: "start_container" common_options: "{{ docker_common_options }}" @@ -70,6 +72,8 @@ KOLLA_BOOTSTRAP: KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}" image: "{{ nova_compute_image_full }}" + labels: + BOOTSTRAP: name: "bootstrap_nova_compute" restart_policy: "never" volumes: diff --git a/ansible/roles/rabbitmq/tasks/bootstrap.yml b/ansible/roles/rabbitmq/tasks/bootstrap.yml index 8567ce6aa..c0f834375 100644 --- a/ansible/roles/rabbitmq/tasks/bootstrap.yml +++ b/ansible/roles/rabbitmq/tasks/bootstrap.yml @@ -25,6 +25,8 @@ KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}" RABBITMQ_CLUSTER_COOKIE: "{{ rabbitmq_cluster_cookie }}" image: "{{ rabbitmq_image_full }}" + labels: + BOOTSTRAP: name: "rabbitmq_bootstrap" restart_policy: "never" volumes: "{{ node_config_directory }}/rabbitmq/:{{ container_config_directory }}/:ro" |
