Fix wrong condition for iscsid container
Iscsid is not only needed by cinder lvm backend, but also by ironic conductor container. Change-Id: I903cda88ca71ba31b30c220761f33808495aba72 Closes-Bug: #1709809
This commit is contained in:
parent
3f6eaefeaf
commit
ee66b6468d
@ -4,8 +4,8 @@
|
||||
path: "{{ node_config_directory }}/{{ item }}"
|
||||
state: "directory"
|
||||
recurse: yes
|
||||
when: inventory_hostname in groups['compute'] or
|
||||
inventory_hostname in groups['storage']
|
||||
when: ( ( inventory_hostname in groups['compute'] or inventory_hostname in groups['cinder-volume'] ) and enable_cinder_backend_lvm | bool )
|
||||
or ( inventory_hostname in groups['ironic-conductor'] and enable_ironic | bool )
|
||||
with_items:
|
||||
- "iscsid"
|
||||
|
||||
@ -13,8 +13,8 @@
|
||||
template:
|
||||
src: "{{ item }}.json.j2"
|
||||
dest: "{{ node_config_directory }}/{{ item }}/config.json"
|
||||
when: inventory_hostname in groups['compute'] or
|
||||
inventory_hostname in groups['storage']
|
||||
when: ( ( inventory_hostname in groups['compute'] or inventory_hostname in groups['cinder-volume'] ) and enable_cinder_backend_lvm | bool )
|
||||
or ( inventory_hostname in groups['ironic-conductor'] and enable_ironic | bool )
|
||||
with_items:
|
||||
- "iscsid"
|
||||
|
||||
|
@ -18,8 +18,8 @@
|
||||
- "/sys/kernel/config:/configfs"
|
||||
- "cinder:/var/lib/cinder"
|
||||
- "iscsi_info:/etc/iscsi"
|
||||
when: inventory_hostname in groups['compute'] or
|
||||
inventory_hostname in groups['storage']
|
||||
when: ( ( inventory_hostname in groups['compute'] or inventory_hostname in groups['cinder-volume'] ) and enable_cinder_backend_lvm | bool )
|
||||
or ( inventory_hostname in groups['ironic-conductor'] and enable_ironic | bool )
|
||||
|
||||
- name: Starting tgtd container
|
||||
kolla_docker:
|
||||
|
Loading…
Reference in New Issue
Block a user