[pve-devel] [PATCH qemu-server] qm: remote migration: improve error when storage cannot be found

Fiona Ebner f.ebner at proxmox.com
Fri Jun 9 09:37:34 CEST 2023


It can also be a permission issue, so the current error can be
a bit confusing.

Reported in the community forum:
https://forum.proxmox.com/threads/120619/post-562660

Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---
 PVE/CLI/qm.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/CLI/qm.pm b/PVE/CLI/qm.pm
index c3c29824..b17b4fe2 100755
--- a/PVE/CLI/qm.pm
+++ b/PVE/CLI/qm.pm
@@ -251,7 +251,7 @@ __PACKAGE__->register_method({
 	my $check_remote_storage = sub {
 	    my ($storage) = @_;
 	    my $found = [ grep { $_->{storage} eq $storage } @$storages ];
-	    die "remote: storage '$storage' does not exist!\n"
+	    die "remote: storage '$storage' does not exist (or missing permission)!\n"
 		if !@$found;
 
 	    $found = @$found[0];
-- 
2.39.2






More information about the pve-devel mailing list