aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Duggan <mark.duggan@oracle.com>2016-10-03 15:46:35 +0100
committerMark Duggan <mark.duggan@oracle.com>2016-10-03 14:57:17 +0000
commit74c85cfe822638ae81d567b76de19f7158d2e399 (patch)
tree5246a1eaaeb932233645d0ff9718abf5dc07fb92
parentb482611a2d50451c096e6a48eb48edd804a2011b (diff)
downloadkolla-74c85cfe822638ae81d567b76de19f7158d2e399.tar.gz
kolla-74c85cfe822638ae81d567b76de19f7158d2e399.zip
Iscsid container fails to start on storage node when cinder is enabled
When the iscsid containers is included in the kolla deployment it starts successfully on a compute node but fails to start on a storage node, if cinder is enabled because the config file is not copied to the container BTW, if cinder is not enabled the iscsid container starts successfully on both the compute and storage nodes. Change-Id: I665535d858affebc9623b29f79c89c18f7cc399f Closes-Bug: #1629381
-rw-r--r--ansible/roles/iscsi/tasks/config.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/ansible/roles/iscsi/tasks/config.yml b/ansible/roles/iscsi/tasks/config.yml
index 897653765..4393db15f 100644
--- a/ansible/roles/iscsi/tasks/config.yml
+++ b/ansible/roles/iscsi/tasks/config.yml
@@ -4,7 +4,8 @@
path: "{{ node_config_directory }}/{{ item }}"
state: "directory"
recurse: yes
- when: inventory_hostname in groups['compute']
+ when: inventory_hostname in groups['compute'] or
+ inventory_hostname in groups['storage']
with_items:
- "iscsid"
@@ -12,7 +13,8 @@
template:
src: "{{ item }}.json.j2"
dest: "{{ node_config_directory }}/{{ item }}/config.json"
- when: inventory_hostname in groups['compute']
+ when: inventory_hostname in groups['compute'] or
+ inventory_hostname in groups['storage']
with_items:
- "iscsid"