From f9629784662abb0283d07145676dc6e7fa7dc5e6 Mon Sep 17 00:00:00 2001 From: Rene Glover Date: Fri, 14 Nov 2025 17:36:43 +0000 Subject: [PATCH] update to multipath scripts and code/error logging --- .../hypervisor/kvm/storage/MultipathSCSIAdapterBase.java | 3 ++- scripts/storage/multipath/connectVolume.sh | 4 ++-- scripts/storage/multipath/finishConnectVolume.sh | 0 scripts/storage/multipath/startConnectVolume.sh | 0 4 files changed, 4 insertions(+), 3 deletions(-) mode change 100644 => 100755 scripts/storage/multipath/finishConnectVolume.sh mode change 100644 => 100755 scripts/storage/multipath/startConnectVolume.sh diff --git a/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/MultipathSCSIAdapterBase.java b/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/MultipathSCSIAdapterBase.java index b09f4661b59..7f5e387d2b1 100644 --- a/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/MultipathSCSIAdapterBase.java +++ b/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/MultipathSCSIAdapterBase.java @@ -178,7 +178,8 @@ public abstract class MultipathSCSIAdapterBase implements StorageAdaptor { // validate we have a connection, if not we need to connect first. if (!isConnected(address.getPath())) { - LOGGER.debug("Physical disk " + address.getPath() + " is not connected, a request to connectPhysicalDisk must be made before it can be used."); + LOGGER.warn("Physical disk " + address.getPath() + " is not connected, a request to connectPhysicalDisk must be made before it can be used."); + return null; } else { LOGGER.debug("Physical disk " + address.getPath() + " is connected, proceeding to get its size."); diff --git a/scripts/storage/multipath/connectVolume.sh b/scripts/storage/multipath/connectVolume.sh index 5cd93a4a45c..b25b1357230 100755 --- a/scripts/storage/multipath/connectVolume.sh +++ b/scripts/storage/multipath/connectVolume.sh @@ -29,7 +29,7 @@ WWID=${2:?"WWID required"} WWID=$(echo $WWID | tr '[:upper:]' '[:lower:]') -START_CONNECT=$(dirname $0)/startConnect.sh +START_CONNECT=$(dirname $0)/startConnectVolume.sh if [ -x "${START_CONNECT}" ]; then echo "$(date): Starting connect process for ${WWID} on lun ${LUN}" ${START_CONNECT} ${LUN} ${WWID} @@ -49,7 +49,7 @@ while [ ! -e /dev/mapper/3${WWID} ]; do sleep 1 done -FINISH_CONNECT=$(dirname $0)/finishConnect.sh +FINISH_CONNECT=$(dirname $0)/finishConnectVolume.sh if [ -x "${FINISH_CONNECT}" ]; then echo "$(date): Starting post-connect validation for ${WWID} on lun ${LUN}" ${FINISH_CONNECT} ${LUN} ${WWID} diff --git a/scripts/storage/multipath/finishConnectVolume.sh b/scripts/storage/multipath/finishConnectVolume.sh old mode 100644 new mode 100755 diff --git a/scripts/storage/multipath/startConnectVolume.sh b/scripts/storage/multipath/startConnectVolume.sh old mode 100644 new mode 100755