aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-07-19 15:00:13 +0000
committerGerrit Code Review <review@openstack.org>2016-07-19 15:00:14 +0000
commitdd5265db7e0e97561d427d5b9ae54f14dea2a7fa (patch)
treeb23e5cc952e0a995373dd7d6c8655cc27df86b34
parent389488387199523efdc12b9a5f6b94e376d25ff5 (diff)
parente61f13d880efd95de8002854ad9e64526d34ab4b (diff)
downloadkolla-dd5265db7e0e97561d427d5b9ae54f14dea2a7fa.tar.gz
kolla-dd5265db7e0e97561d427d5b9ae54f14dea2a7fa.zip
Merge "Fix 'reconfigure' command of kolla"
-rw-r--r--ansible/roles/ceilometer/tasks/do_reconfigure.yml4
-rw-r--r--ansible/roles/glance/tasks/do_reconfigure.yml4
-rw-r--r--ansible/roles/heat/tasks/do_reconfigure.yml4
-rw-r--r--ansible/roles/ironic/tasks/do_reconfigure.yml4
-rw-r--r--ansible/roles/magnum/tasks/do_reconfigure.yml4
-rw-r--r--ansible/roles/manila/tasks/do_reconfigure.yml4
-rw-r--r--ansible/roles/mistral/tasks/do_reconfigure.yml4
-rw-r--r--ansible/roles/murano/tasks/do_reconfigure.yml4
8 files changed, 16 insertions, 16 deletions
diff --git a/ansible/roles/ceilometer/tasks/do_reconfigure.yml b/ansible/roles/ceilometer/tasks/do_reconfigure.yml
index 886ac1710..137f1663d 100644
--- a/ansible/roles/ceilometer/tasks/do_reconfigure.yml
+++ b/ansible/roles/ceilometer/tasks/do_reconfigure.yml
@@ -50,9 +50,9 @@
action: "remove_container"
register: remove_containers
when:
+ - inventory_hostname in groups[item[0]['group']]
- config_strategy == "COPY_ONCE" or item[1]['KOLLA_CONFIG_STRATEGY'] == 'COPY_ONCE'
- item[2]['rc'] == 1
- - inventory_hostname in groups[item[0]['group']]
with_together:
- [{ name: ceilometer_api, group: ceilometer-api },
{ name: ceilometer_central, group: ceilometer-central },
@@ -70,10 +70,10 @@
name: "{{ item[0]['name'] }}"
action: "restart_container"
when:
+ - inventory_hostname in groups[item[0]['group']]
- config_strategy == 'COPY_ALWAYS'
- item[1]['KOLLA_CONFIG_STRATEGY'] != 'COPY_ONCE'
- item[2]['rc'] == 1
- - inventory_hostname in groups[item[0]['group']]
with_together:
- [{ name: ceilometer_api, group: ceilometer-api },
{ name: ceilometer_central, group: ceilometer-central },
diff --git a/ansible/roles/glance/tasks/do_reconfigure.yml b/ansible/roles/glance/tasks/do_reconfigure.yml
index d9e167867..0e34c60db 100644
--- a/ansible/roles/glance/tasks/do_reconfigure.yml
+++ b/ansible/roles/glance/tasks/do_reconfigure.yml
@@ -35,9 +35,9 @@
action: "remove_container"
register: remove_containers
when:
+ - inventory_hostname in groups[item[0]['group']]
- config_strategy == "COPY_ONCE" or item[1]['KOLLA_CONFIG_STRATEGY'] == 'COPY_ONCE'
- item[2]['rc'] == 1
- - inventory_hostname in groups[item[0]['group']]
with_together:
- "{{ glance_service_groups }}"
- container_envs.results
@@ -53,10 +53,10 @@
name: "{{ item[0]['name'] }}"
action: "restart_container"
when:
+ - inventory_hostname in groups[item[0]['group']]
- config_strategy == 'COPY_ALWAYS'
- item[1]['KOLLA_CONFIG_STRATEGY'] != 'COPY_ONCE'
- item[2]['rc'] == 1
- - inventory_hostname in groups[item[0]['group']]
with_together:
- "{{ glance_service_groups }}"
- container_envs.results
diff --git a/ansible/roles/heat/tasks/do_reconfigure.yml b/ansible/roles/heat/tasks/do_reconfigure.yml
index 40c5671d1..d1d69822f 100644
--- a/ansible/roles/heat/tasks/do_reconfigure.yml
+++ b/ansible/roles/heat/tasks/do_reconfigure.yml
@@ -44,9 +44,9 @@
action: "remove_container"
register: remove_containers
when:
+ - inventory_hostname in groups[item[0]['group']]
- config_strategy == "COPY_ONCE" or item[1]['KOLLA_CONFIG_STRATEGY'] == 'COPY_ONCE'
- item[2]['rc'] == 1
- - inventory_hostname in groups[item[0]['group']]
with_together:
- [{ name: heat_api, group: heat-api },
{ name: heat_api_cfn, group: heat-api-cfn },
@@ -62,10 +62,10 @@
name: "{{ item[0]['name'] }}"
action: "restart_container"
when:
+ - inventory_hostname in groups[item[0]['group']]
- config_strategy == 'COPY_ALWAYS'
- item[1]['KOLLA_CONFIG_STRATEGY'] != 'COPY_ONCE'
- item[2]['rc'] == 1
- - inventory_hostname in groups[item[0]['group']]
with_together:
- [{ name: heat_api, group: heat-api },
{ name: heat_api_cfn, group: heat-api-cfn },
diff --git a/ansible/roles/ironic/tasks/do_reconfigure.yml b/ansible/roles/ironic/tasks/do_reconfigure.yml
index 345f8ed32..ee0b3bd43 100644
--- a/ansible/roles/ironic/tasks/do_reconfigure.yml
+++ b/ansible/roles/ironic/tasks/do_reconfigure.yml
@@ -44,9 +44,9 @@
action: "remove_container"
register: remove_containers
when:
+ - inventory_hostname in groups[item[0]['group']]
- config_strategy == "COPY_ONCE" or item[1]['KOLLA_CONFIG_STRATEGY'] == 'COPY_ONCE'
- item[2]['rc'] == 1
- - inventory_hostname in groups[item[0]['group']]
with_together:
- [{ name: ironic_pxe, group: ironic-pxe },
{ name: ironic_api, group: ironic-api },
@@ -63,10 +63,10 @@
name: "{{ item[0]['name'] }}"
action: "restart_container"
when:
+ - inventory_hostname in groups[item[0]['group']]
- config_strategy == 'COPY_ALWAYS'
- item[1]['KOLLA_CONFIG_STRATEGY'] != 'COPY_ONCE'
- item[2]['rc'] == 1
- - inventory_hostname in groups[item[0]['group']]
with_together:
- [{ name: ironic_pxe, group: ironic-pxe },
{ name: ironic_api, group: ironic-api },
diff --git a/ansible/roles/magnum/tasks/do_reconfigure.yml b/ansible/roles/magnum/tasks/do_reconfigure.yml
index 01bf2c058..34f884169 100644
--- a/ansible/roles/magnum/tasks/do_reconfigure.yml
+++ b/ansible/roles/magnum/tasks/do_reconfigure.yml
@@ -41,9 +41,9 @@
action: "remove_container"
register: remove_containers
when:
+ - inventory_hostname in groups[item[0]['group']]
- config_strategy == "COPY_ONCE" or item[1]['KOLLA_CONFIG_STRATEGY'] == 'COPY_ONCE'
- item[2]['rc'] == 1
- - inventory_hostname in groups[item[0]['group']]
with_together:
- [{ name: magnum_api, group: magnum-api },
{ name: magnum_conductor, group: magnum-conductor }]
@@ -58,10 +58,10 @@
name: "{{ item[0]['name'] }}"
action: "restart_container"
when:
+ - inventory_hostname in groups[item[0]['group']]
- config_strategy == 'COPY_ALWAYS'
- item[1]['KOLLA_CONFIG_STRATEGY'] != 'COPY_ONCE'
- item[2]['rc'] == 1
- - inventory_hostname in groups[item[0]['group']]
with_together:
- [{ name: magnum_api, group: magnum-api },
{ name: magnum_conductor, group: magnum-conductor }]
diff --git a/ansible/roles/manila/tasks/do_reconfigure.yml b/ansible/roles/manila/tasks/do_reconfigure.yml
index 0c4d4cce9..9ac6b99eb 100644
--- a/ansible/roles/manila/tasks/do_reconfigure.yml
+++ b/ansible/roles/manila/tasks/do_reconfigure.yml
@@ -44,9 +44,9 @@
action: "remove_container"
register: remove_containers
when:
+ - inventory_hostname in groups[item[0]['group']]
- config_strategy == "COPY_ONCE" or item[1]['KOLLA_CONFIG_STRATEGY'] == 'COPY_ONCE'
- item[2]['rc'] == 1
- - inventory_hostname in groups[item[0]['group']]
with_together:
- [{ name: manila_api, group: manila-api },
{ name: manila_scheduler, group: manila-scheduler },
@@ -62,10 +62,10 @@
name: "{{ item[0]['name'] }}"
action: "restart_container"
when:
+ - inventory_hostname in groups[item[0]['group']]
- config_strategy == 'COPY_ALWAYS'
- item[1]['KOLLA_CONFIG_STRATEGY'] != 'COPY_ONCE'
- item[2]['rc'] == 1
- - inventory_hostname in groups[item[0]['group']]
with_together:
- [{ name: manila_api, group: manila-api },
{ name: manila_scheduler, group: manila-scheduler },
diff --git a/ansible/roles/mistral/tasks/do_reconfigure.yml b/ansible/roles/mistral/tasks/do_reconfigure.yml
index a3e3526da..2b7f3324e 100644
--- a/ansible/roles/mistral/tasks/do_reconfigure.yml
+++ b/ansible/roles/mistral/tasks/do_reconfigure.yml
@@ -41,9 +41,9 @@
action: "remove_container"
register: remove_containers
when:
+ - inventory_hostname in groups[item[0]['group']]
- config_strategy == "COPY_ONCE" or item[1]['KOLLA_CONFIG_STRATEGY'] == 'COPY_ONCE'
- item[2]['rc'] == 1
- - inventory_hostname in groups[item[0]['group']]
with_together:
- [{ name: mistral_api, group: mistral-api },
{ name: mistral_engine, group: mistral-engine },
@@ -59,10 +59,10 @@
name: "{{ item[0]['name'] }}"
action: "restart_container"
when:
+ - inventory_hostname in groups[item[0]['group']]
- config_strategy == 'COPY_ALWAYS'
- item[1]['KOLLA_CONFIG_STRATEGY'] != 'COPY_ONCE'
- item[2]['rc'] == 1
- - inventory_hostname in groups[item[0]['group']]
with_together:
- [{ name: mistral_api, group: mistral-api },
{ name: mistral_engine, group: mistral-engine },
diff --git a/ansible/roles/murano/tasks/do_reconfigure.yml b/ansible/roles/murano/tasks/do_reconfigure.yml
index bc9e9b4f8..6d777be6d 100644
--- a/ansible/roles/murano/tasks/do_reconfigure.yml
+++ b/ansible/roles/murano/tasks/do_reconfigure.yml
@@ -38,9 +38,9 @@
action: "remove_container"
register: remove_containers
when:
+ - inventory_hostname in groups[item[0]['group']]
- config_strategy == "COPY_ONCE" or item[1]['KOLLA_CONFIG_STRATEGY'] == 'COPY_ONCE'
- item[2]['rc'] == 1
- - inventory_hostname in groups[item[0]['group']]
with_together:
- [{ name: murano_api, group: murano-api },
{ name: murano_engine, group: murano-engine }]
@@ -55,10 +55,10 @@
name: "{{ item[0]['name'] }}"
action: "restart_container"
when:
+ - inventory_hostname in groups[item[0]['group']]
- config_strategy == 'COPY_ALWAYS'
- item[1]['KOLLA_CONFIG_STRATEGY'] != 'COPY_ONCE'
- item[2]['rc'] == 1
- - inventory_hostname in groups[item[0]['group']]
with_together:
- [{ name: murano_api, group: murano-api },
{ name: murano_engine, group: murano-engine }]