[pve-devel] [PATCH v2 container 1/2] provide a better error message for rbd without krbd
Wolfgang Bumiller
w.bumiller at proxmox.com
Mon Jul 11 12:19:14 CEST 2016
---
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.1.4
More information about the pve-devel
mailing list