[pve-devel] [PATCH manager v2] fix: make 'ceph-volume' conditional on quincy install

Stefan Sterz s.sterz at proxmox.com
Mon Jul 4 17:45:17 CEST 2022


when installing non-quincy versions, 'ceph-volume' is not contained in
the respective repositories and, thus, the install process would fail.

Signed-off-by: Stefan Sterz <s.sterz at proxmox.com>
---
tested this by installing octopus, pacific and quincy. same issues as
before.

 PVE/CLI/pveceph.pm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/PVE/CLI/pveceph.pm b/PVE/CLI/pveceph.pm
index a85df130..5c21bf7e 100755
--- a/PVE/CLI/pveceph.pm
+++ b/PVE/CLI/pveceph.pm
@@ -176,13 +176,17 @@ __PACKAGE__->register_method ({
 	my @ceph_packages = qw(
 	    ceph
 	    ceph-common
-	    ceph-volume
 	    ceph-mds
 	    ceph-fuse
 	    gdisk
 	    nvme-cli
 	);
 
+	# when installing versions older than quincy, 'ceph-volume' does not exists. don't include it
+	if ($cephver ne 'octopus' and $cephver ne 'pacific') {
+	    push @ceph_packages, 'ceph-volume';
+	}
+
 	print "start installation\n";
 
 	# this flag helps to determine when apt is actually done installing (vs. partial extracing)
-- 
2.30.2






More information about the pve-devel mailing list