mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-3565 - fix for new libvirt behavior when defining NFS
pools that are already mounted in KVM hypervisor
This commit is contained in:
parent
59c6fb7ff2
commit
2b4e994a4d
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user