Now you see if the storage plugin support it, extra information about the error.
---
 PVE/QemuMigrate.pm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm
index 27cf7e3..55a5554 100644
--- a/PVE/QemuMigrate.pm
+++ b/PVE/QemuMigrate.pm
@@ -242,8 +242,9 @@ sub prepare {
        if ($scfg->{shared}) {
            # PVE::Storage::activate_storage checks this for non-shared storages
            my $plugin = PVE::Storage::Plugin->lookup($scfg->{type});
-           warn "Used shared storage '$sid' is not online on source node!\n"
-               if !$plugin->check_connection($sid, $scfg);
+           my $res = eval { $plugin->check_connection($storage, $scfg) };
+           warn "Used shared storage '$sid' is not online on source node! - 
$res\n"
+               if $res ne 1;
        } else {
            # only activate if not shared
            push @$need_activate, $volid;
-- 
2.11.0


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to