From 61f6cafed7030a70e76b1836fba2390a22b052dd Mon Sep 17 00:00:00 2001 From: aojeagarcia Date: Mon, 24 Sep 2018 12:34:15 +0200 Subject: [PATCH] Switch to lioadm in openSUSE distros This patch switches the CINDER_ISCSI_HELPER from tgtadm to lioadm in openSUSE distros, as it increase the performance and reduce the flakiness on some tests. Change-Id: Ic3ee9c6baabe20f8f4d14246f6e29808796a5db9 Signed-off-by: aojeagarcia --- lib/cinder | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/cinder b/lib/cinder index 664f423c73..76bf928413 100644 --- a/lib/cinder +++ b/lib/cinder @@ -96,9 +96,9 @@ CINDER_VOLUME_CLEAR=$(echo ${CINDER_VOLUME_CLEAR} | tr '[:upper:]' '[:lower:]') # https://bugs.launchpad.net/cinder/+bug/1180976 CINDER_PERIODIC_INTERVAL=${CINDER_PERIODIC_INTERVAL:-60} -# Centos7 switched to using LIO and that's all that's supported, -# although the tgt bits are in EPEL we don't want that for CI -if is_fedora; then +# Centos7 and OpenSUSE switched to using LIO and that's all that's supported, +# although the tgt bits are in EPEL and OpenSUSE we don't want that for CI +if is_fedora || is_suse; then CINDER_ISCSI_HELPER=${CINDER_ISCSI_HELPER:-lioadm} if [[ ${CINDER_ISCSI_HELPER} != "lioadm" ]]; then die "lioadm is the only valid Cinder target_helper config on this platform"