The linux kernel target layer, LIO, does not support the iscsi target to
mix ACLs that have chap enabled and disabled under the same tpg. This
patch adds a check and fails if this type of setup is detected.
This fixes Red Hat BZ:
https://bugzilla.redhat.com/show_bug.cgi?id=
1615088
Signed-off-by: Mike Christie <mchristi@redhat.com>
--- /dev/null
+---
+- name: fail if unsupported chap configuration
+ fail:
+ msg: "Mixing clients with CHAP enabled and disabled is not supported."
+ with_items: "{{ client_connections | default({}) }}"
+ when:
+ - item.status is defined
+ - item.status == "present"
+ - item.chap != ''
+ - " '' in client_connections | selectattr('status', 'match', 'present') | map(attribute='chap') | list"
- radosgw_interface != "dummy"
- radosgw_address == "0.0.0.0"
- radosgw_address_block == "subnet"
+
+- name: include check_iscsi.yml
+ include: check_iscsi.yml
+ when:
+ - iscsi_gw_group_name in group_names