]> git.proxmox.com Git - pve-manager.git/commitdiff
pveceph install: exclude 'ceph-volume' from older than quincy releases
authorStefan Sterz <s.sterz@proxmox.com>
Mon, 4 Jul 2022 15:45:17 +0000 (17:45 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 5 Jul 2022 06:19:28 +0000 (08:19 +0200)
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@proxmox.com>
 [ T: reworded commit subject ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/CLI/pveceph.pm

index a85df130ec748472e24441d1ff41d3a91eaf4f37..5c21bf7e85656e411646decaf2e90c866f1ae449 100755 (executable)
@@ -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)