Permalink
Browse files

Fix Gather

Gather would reuse /tmp/out.yml - we have been seeing where the MD5
differs. This seems to be due to the controllers/computes using the
same /tmp/out.yml path. This patch will append the hostname, so it will
be unique.

Change-Id: I6e060287d02800a913e9baa269d72ea00e3f7913
  • Loading branch information...
jtaleric committed Jun 6, 2018
1 parent 50b3092 commit 2b5205f098494590bf2574e5509d9f18fa4de4a8
@@ -13,9 +13,9 @@
when: ceilometer_config.stat.exists
- name: Fetch output
fetch: src=/tmp/out.yml dest=/tmp/out.yml flat=yes
fetch: src=/tmp/out.yml dest=/tmp/out-{{ inventory_hostname }}.yml flat=yes
when: ceilometer_config.stat.exists
- name: Load configuration variables
include_vars: /tmp/out.yml
include_vars: /tmp/out-{{ inventory_hostname }}.yml
when: ceilometer_config.stat.exists
@@ -13,9 +13,9 @@
when: cinder_config.stat.exists
- name: Fetch output
fetch: src=/tmp/out.yml dest=/tmp/out.yml flat=yes
fetch: src=/tmp/out.yml dest=/tmp/out-{{ inventory_hostname }}.yml flat=yes
when: cinder_config.stat.exists
- name: Load configuration variables
include_vars: /tmp/out.yml
include_vars: /tmp/out-{{ inventory_hostname }}.yml
when: cinder_config.stat.exists
@@ -54,12 +54,12 @@
ignore_errors: true
- name: Fetch output
fetch: src=/tmp/out.yml dest=/tmp/out.yml flat=yes
fetch: src=/tmp/out.yml dest=/tmp/out-{{ inventory_hostname }}.yml flat=yes
when: hostvars[inventory_hostname]['containers'] is not defined
ignore_errors: true
- name: Load configuration variables
include_vars: /tmp/out.yml
include_vars: /tmp/out-{{ inventory_hostname }}.yml
when: hostvars[inventory_hostname]['containers'] is not defined
ignore_errors: true
@@ -8,7 +8,7 @@
shell: "python /tmp/openstack-config-parser.py glance /tmp/out.yml"
- name: Fetch output
fetch: "src=/tmp/out.yml dest=/tmp/out.yml flat=yes"
fetch: "src=/tmp/out.yml dest=/tmp/out-{{ inventory_hostname }}.yml flat=yes"
- name: Load configuration variables
include_vars: "/tmp/out.yml"
include_vars: /tmp/out-{{ inventory_hostname }}.yml
@@ -14,9 +14,9 @@
when: gnocchi_config.stat.exists
- name: Fetch output
fetch: src=/tmp/out.yml dest=/tmp/out.yml flat=yes
fetch: src=/tmp/out.yml dest=/tmp/out-{{ inventory_hostname }}.yml flat=yes
when: gnocchi_config.stat.exists
- name: Load configuration variables
include_vars: /tmp/out.yml
include_vars: /tmp/out-{{ inventory_hostname }}.yml
when: gnocchi_config.stat.exists
@@ -14,9 +14,9 @@
when: heat_config.stat.exists
- name: Fetch output
fetch: src=/tmp/out.yml dest=/tmp/out.yml flat=yes
fetch: src=/tmp/out.yml dest=/tmp/out-{{ inventory_hostname }}.yml flat=yes
when: heat_config.stat.exists
- name: Load configuration variables
include_vars: /tmp/out.yml
include_vars: /tmp/out-{{ inventory_hostname }}.yml
when: heat_config.stat.exists
@@ -14,11 +14,11 @@
when: keystone_config.stat.exists
- name: Fetch output
fetch: src=/tmp/out.yml dest=/tmp/out.yml flat=yes
fetch: src=/tmp/out.yml dest=/tmp/out-{{ inventory_hostname }}.yml flat=yes
when: keystone_config.stat.exists
- name: Load configuration variables
include_vars: /tmp/out.yml
include_vars: /tmp/out-{{ inventory_hostname }}.yml
when: keystone_config.stat.exists
- name: Determine if Keystone is deployed in eventlet
@@ -14,10 +14,10 @@
when: neutron_config.stat.exists
- name: Fetch output
fetch: src=/tmp/out.yml dest=/tmp/out.yml flat=yes
fetch: src=/tmp/out.yml dest=/tmp/out-{{ inventory_hostname }}.yml flat=yes
when: neutron_config.stat.exists
- name: Load configuration variables
include_vars: /tmp/out.yml
include_vars: /tmp/out-{{ inventory_hostname }}.yml
when: neutron_config.stat.exists
@@ -14,10 +14,10 @@
when: nova_config.stat.exists
- name: Fetch output
fetch: src=/tmp/out.yml dest=/tmp/out.yml flat=yes
fetch: src=/tmp/out.yml dest=/tmp/out-{{ inventory_hostname }}.yml flat=yes
when: nova_config.stat.exists
- name: Load configuration variables
include_vars: /tmp/out.yml
include_vars: /tmp/out-{{ inventory_hostname }}.yml
when: nova_config.stat.exists
@@ -15,11 +15,11 @@
when: undercloud_conf.stat.exists
- name: Fetch output
fetch: src=/tmp/out.yml dest=/tmp/out.yml flat=yes
fetch: src=/tmp/out.yml dest=/tmp/out-{{ inventory_hostname }}.yml flat=yes
when: undercloud_conf.stat.exists
- name: Load configuration variables
include_vars: /tmp/out.yml
include_vars: /tmp/out-{{ inventory_hostname }}.yml
when: undercloud_conf.stat.exists
- name: Get max_connections on the database

0 comments on commit 2b5205f

Please sign in to comment.