From 62efe7433db81eaf62e18d4cac96ccafc36e6480 Mon Sep 17 00:00:00 2001 From: Wei Zhou Date: Thu, 18 Jan 2024 13:36:28 +0100 Subject: [PATCH] scripts: mark multipath scripts as executable (#8524) This PR marks the multipath scripts as executable. This fixes the issue that in 4.19.0.0-RC2, vms can not be stopped in ubuntu hosts. 2024-01-17 12:56:26,061 ERROR [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-4:ctx-e3503563 job-38/job-39 ctx-42706275) (logid:81ede4e9) Invocation exception, caused by: com.cloud.utils.exception.CloudRuntimeException: Unable to stop the virtual machine due to java.lang.NullPointerException at com.cloud.utils.script.Script.getExitValue(Script.java:74) at com.cloud.hypervisor.kvm.storage.MultipathSCSIAdapterBase.runScript(MultipathSCSIAdapterBase.java:476) at com.cloud.hypervisor.kvm.storage.MultipathSCSIAdapterBase.disconnectPhysicalDiskByPath(MultipathSCSIAdapterBase.java:226) at com.cloud.hypervisor.kvm.storage.KVMStoragePoolManager.disconnectPhysicalDiskByPath(KVMStoragePoolManager.java:205) at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.cleanupDisk(LibvirtComputingResource.java:3335) at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtStopCommandWrapper.execute(LibvirtStopCommandWrapper.java:101) at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtStopCommandWrapper.execute(LibvirtStopCommandWrapper.java:49) at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtRequestWrapper.execute(LibvirtRequestWrapper.java:78) at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1903) --- scripts/storage/multipath/cleanStaleMaps.sh | 0 scripts/storage/multipath/connectVolume.sh | 0 scripts/storage/multipath/copyVolume.sh | 0 scripts/storage/multipath/disconnectVolume.sh | 0 scripts/storage/multipath/resizeVolume.sh | 0 5 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 scripts/storage/multipath/cleanStaleMaps.sh mode change 100644 => 100755 scripts/storage/multipath/connectVolume.sh mode change 100644 => 100755 scripts/storage/multipath/copyVolume.sh mode change 100644 => 100755 scripts/storage/multipath/disconnectVolume.sh mode change 100644 => 100755 scripts/storage/multipath/resizeVolume.sh diff --git a/scripts/storage/multipath/cleanStaleMaps.sh b/scripts/storage/multipath/cleanStaleMaps.sh old mode 100644 new mode 100755 diff --git a/scripts/storage/multipath/connectVolume.sh b/scripts/storage/multipath/connectVolume.sh old mode 100644 new mode 100755 diff --git a/scripts/storage/multipath/copyVolume.sh b/scripts/storage/multipath/copyVolume.sh old mode 100644 new mode 100755 diff --git a/scripts/storage/multipath/disconnectVolume.sh b/scripts/storage/multipath/disconnectVolume.sh old mode 100644 new mode 100755 diff --git a/scripts/storage/multipath/resizeVolume.sh b/scripts/storage/multipath/resizeVolume.sh old mode 100644 new mode 100755