CLOUDSTACK-3565 - fix for new libvirt behavior when defining NFS

pools that are already mounted in KVM hypervisor
This commit is contained in:
Marcus Sorensen 2013-09-17 10:52:04 -06:00
parent 59c6fb7ff2
commit 2b4e994a4d

View File

@ -148,7 +148,7 @@ public class LibvirtStorageAdaptor implements StorageAdaptor {
// if error is that pool is mounted, try to handle it
if (e.toString().contains("already mounted")) {
s_logger.error("Attempting to unmount old mount libvirt is unaware of at "+targetPath);
String result = Script.runSimpleBashScript("umount " + targetPath );
String result = Script.runSimpleBashScript("umount -l " + targetPath );
if (result == null) {
s_logger.error("Succeeded in unmounting " + targetPath);
try {