mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-3565 - fix for new libvirt behavior when defining NFS
pools that are already mounted in KVM hypervisor
This commit is contained in:
parent
af2646f9a8
commit
39f7ddbb8f
|
|
@ -154,7 +154,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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue