Merge "Configure Cinder to use lioadm on CentOS/RHEL 8"
This commit is contained in:
commit
82ee3e473c
ansible
releasenotes/notes
tests
tools
@ -852,7 +852,7 @@ gnocchi_metric_datadir_volume: "gnocchi"
|
|||||||
cinder_backend_ceph: "{{ enable_ceph }}"
|
cinder_backend_ceph: "{{ enable_ceph }}"
|
||||||
cinder_backend_vmwarevc_vmdk: "no"
|
cinder_backend_vmwarevc_vmdk: "no"
|
||||||
cinder_volume_group: "cinder-volumes"
|
cinder_volume_group: "cinder-volumes"
|
||||||
cinder_target_helper: "tgtadm"
|
cinder_target_helper: "{{ 'lioadm' if ansible_os_family == 'RedHat' and ansible_distribution_major_version is version_compare('8', '>=') else 'tgtadm' }}"
|
||||||
# Valid options are [ '', redis, etcd ]
|
# Valid options are [ '', redis, etcd ]
|
||||||
cinder_coordination_backend: "{{ 'redis' if enable_redis|bool else 'etcd' if enable_etcd|bool else '' }}"
|
cinder_coordination_backend: "{{ 'redis' if enable_redis|bool else 'etcd' if enable_etcd|bool else '' }}"
|
||||||
|
|
||||||
|
@ -17,3 +17,12 @@
|
|||||||
- container_facts['iscsid'] is not defined
|
- container_facts['iscsid'] is not defined
|
||||||
- inventory_hostname in groups[iscsi_services.iscsid.group]
|
- inventory_hostname in groups[iscsi_services.iscsid.group]
|
||||||
- iscsi_services.iscsid.enabled | bool
|
- 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
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
upgrade:
|
||||||
|
- |
|
||||||
|
Support for the SCSI target daemon (``tgtd``) has been removed for
|
||||||
|
CentOS/RHEL 8. The default value of ``cinder_target_helper`` is now
|
||||||
|
``lioadm`` on CentOS/RHEL 8, but remains as ``tgtadm`` on other platforms.
|
@ -234,6 +234,7 @@
|
|||||||
chdir: "{{ kolla_ansible_src_dir }}"
|
chdir: "{{ kolla_ansible_src_dir }}"
|
||||||
environment:
|
environment:
|
||||||
BASE_DISTRO: "{{ base_distro }}"
|
BASE_DISTRO: "{{ base_distro }}"
|
||||||
|
BASE_DISTRO_MAJOR_VERSION: "{{ ansible_distribution_major_version }}"
|
||||||
INSTALL_TYPE: "{{ install_type }}"
|
INSTALL_TYPE: "{{ install_type }}"
|
||||||
BUILD_IMAGE: "{{ need_build_image }}"
|
BUILD_IMAGE: "{{ need_build_image }}"
|
||||||
TAG: "{{ build_image_tag }}"
|
TAG: "{{ build_image_tag }}"
|
||||||
|
@ -40,11 +40,17 @@ function setup_config {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $SCENARIO == "cinder-lvm" ]]; then
|
if [[ $SCENARIO == "cinder-lvm" ]]; then
|
||||||
GATE_IMAGES+=",cinder,iscsid,tgtd"
|
GATE_IMAGES+=",cinder,iscsid"
|
||||||
|
if [[ $BASE_DISTRO != "centos" ]] || [[ $BASE_DISTRO_MAJOR_VERSION -eq 7 ]]; then
|
||||||
|
GATE_IMAGES+=",tgtd"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $SCENARIO == "zun" ]]; then
|
if [[ $SCENARIO == "zun" ]]; then
|
||||||
GATE_IMAGES+=",zun,kuryr,etcd,cinder,iscsid,tgtd"
|
GATE_IMAGES+=",zun,kuryr,etcd,cinder,iscsid"
|
||||||
|
if [[ $BASE_DISTRO != "centos" ]] || [[ $BASE_DISTRO_MAJOR_VERSION -eq 7 ]]; then
|
||||||
|
GATE_IMAGES+=",tgtd"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $SCENARIO == "scenario_nfv" ]]; then
|
if [[ $SCENARIO == "scenario_nfv" ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user