mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +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 error is that pool is mounted, try to handle it
|
||||||
if (e.toString().contains("already mounted")) {
|
if (e.toString().contains("already mounted")) {
|
||||||
s_logger.error("Attempting to unmount old mount libvirt is unaware of at "+targetPath);
|
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) {
|
if (result == null) {
|
||||||
s_logger.error("Succeeded in unmounting " + targetPath);
|
s_logger.error("Succeeded in unmounting " + targetPath);
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user