350bb171ef
In CentOS/RHEL 8 there is no scsi-target-utils package, nor is it available in EPEL. It is removed from kolla in [1]. In RHEL 7 and beyond the LIO kernel subsystem can be used instead of the tgtd daemon. This change removes support for the SCSI target daemon on CentOS/RHEL 8. The 'tgtd' image is no longer available for CentOS/RHEL 8. [1] https://review.openstack.org/#/c/613815/5 Change-Id: I718fc16cde2dd177b2a1c2f79b932426034897fe Related: blueprint centos-rhel-8
29 lines
742 B
YAML
29 lines
742 B
YAML
---
|
|
- name: Get container facts
|
|
become: true
|
|
kolla_container_facts:
|
|
name:
|
|
- iscsid
|
|
register: container_facts
|
|
|
|
- name: Checking free port for iscsi
|
|
wait_for:
|
|
host: "{{ api_interface_address }}"
|
|
port: "{{ iscsi_port }}"
|
|
connect_timeout: 1
|
|
timeout: 1
|
|
state: stopped
|
|
when:
|
|
- container_facts['iscsid'] is not defined
|
|
- inventory_hostname in groups[iscsi_services.iscsid.group]
|
|
- iscsi_services.iscsid.enabled | bool
|
|
|
|
- name: Check supported platforms for tgtd
|
|
fail:
|
|
msg:
|
|
The SCSI target daemon tgtd is not supported on CentOS/RHEL 8 and later
|
|
when:
|
|
- ansible_os_family == 'RedHat'
|
|
- ansible_distribution_major_version is version_compare('8', '>=')
|
|
- enable_tgtd | bool
|