Browse code

Merge "Switch to lioadm in openSUSE distros"

Zuul authored on 2018/10/04 02:51:33
Showing 1 changed files
... ...
@@ -96,9 +96,9 @@ CINDER_VOLUME_CLEAR=$(echo ${CINDER_VOLUME_CLEAR} | tr '[:upper:]' '[:lower:]')
96 96
 # https://bugs.launchpad.net/cinder/+bug/1180976
97 97
 CINDER_PERIODIC_INTERVAL=${CINDER_PERIODIC_INTERVAL:-60}
98 98
 
99
-# Centos7 switched to using LIO and that's all that's supported,
100
-# although the tgt bits are in EPEL we don't want that for CI
101
-if is_fedora; then
99
+# Centos7 and OpenSUSE switched to using LIO and that's all that's supported,
100
+# although the tgt bits are in EPEL and OpenSUSE we don't want that for CI
101
+if is_fedora || is_suse; then
102 102
     CINDER_ISCSI_HELPER=${CINDER_ISCSI_HELPER:-lioadm}
103 103
     if [[ ${CINDER_ISCSI_HELPER} != "lioadm" ]]; then
104 104
         die "lioadm is the only valid Cinder target_helper config on this platform"