Skip to content

Commit f962978

Browse files
author
Rene Glover
committed
update to multipath scripts and code/error logging
1 parent 8e9316a commit f962978

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/MultipathSCSIAdapterBase.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ private KVMPhysicalDisk getPhysicalDisk(AddressInfo address, KVMStoragePool pool
178178

179179
// validate we have a connection, if not we need to connect first.
180180
if (!isConnected(address.getPath())) {
181-
LOGGER.debug("Physical disk " + address.getPath() + " is not connected, a request to connectPhysicalDisk must be made before it can be used.");
181+
LOGGER.warn("Physical disk " + address.getPath() + " is not connected, a request to connectPhysicalDisk must be made before it can be used.");
182+
return null;
182183
} else {
183184
LOGGER.debug("Physical disk " + address.getPath() + " is connected, proceeding to get its size.");
184185

scripts/storage/multipath/connectVolume.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ WWID=${2:?"WWID required"}
2929

3030
WWID=$(echo $WWID | tr '[:upper:]' '[:lower:]')
3131

32-
START_CONNECT=$(dirname $0)/startConnect.sh
32+
START_CONNECT=$(dirname $0)/startConnectVolume.sh
3333
if [ -x "${START_CONNECT}" ]; then
3434
echo "$(date): Starting connect process for ${WWID} on lun ${LUN}"
3535
${START_CONNECT} ${LUN} ${WWID}
@@ -49,7 +49,7 @@ while [ ! -e /dev/mapper/3${WWID} ]; do
4949
sleep 1
5050
done
5151

52-
FINISH_CONNECT=$(dirname $0)/finishConnect.sh
52+
FINISH_CONNECT=$(dirname $0)/finishConnectVolume.sh
5353
if [ -x "${FINISH_CONNECT}" ]; then
5454
echo "$(date): Starting post-connect validation for ${WWID} on lun ${LUN}"
5555
${FINISH_CONNECT} ${LUN} ${WWID}

scripts/storage/multipath/finishConnectVolume.sh

100644100755
File mode changed.

scripts/storage/multipath/startConnectVolume.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)