From 7c138f5839b4061dcb3d03ebc7e6935ff6ef65ba Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 11 Jul 2016 12:19:14 +0200 Subject: [PATCH] provide a better error message for rbd without krbd --- src/PVE/LXC.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index caadce1..6cd4c71 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -1175,6 +1175,12 @@ sub mountpoint_mount { if ($storage) { my $scfg = PVE::Storage::storage_config($storage_cfg, $storage); + + # early sanity checks: + # we otherwise call realpath on the rbd url + die "containers on rbd storage without krbd are not supported\n" + if $scfg->{type} eq 'rbd' && !$scfg->{krbd}; + my $path = PVE::Storage::path($storage_cfg, $volid, $snapname); my ($vtype, undef, undef, undef, undef, $isBase, $format) = -- 2.39.2