Skip to content

Commit 39f7ddb

Browse files
author
Marcus Sorensen
committed
CLOUDSTACK-3565 - fix for new libvirt behavior when defining NFS
pools that are already mounted in KVM hypervisor
1 parent af2646f commit 39f7ddb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ private StoragePool createNfsStoragePool(Connect conn, String uuid,
154154
// if error is that pool is mounted, try to handle it
155155
if (e.toString().contains("already mounted")) {
156156
s_logger.error("Attempting to unmount old mount libvirt is unaware of at "+targetPath);
157-
String result = Script.runSimpleBashScript("umount " + targetPath );
157+
String result = Script.runSimpleBashScript("umount -l " + targetPath );
158158
if (result == null) {
159159
s_logger.error("Succeeded in unmounting " + targetPath);
160160
try {

0 commit comments

Comments
 (0)