]> git.proxmox.com Git - pve-manager.git/commitdiff
ceph: mark global pg bits setting as deprecated
authorMaximiliano Sandoval <m.sandoval@proxmox.com>
Fri, 22 Sep 2023 09:25:25 +0000 (11:25 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 12 Nov 2023 17:17:04 +0000 (18:17 +0100)
This setting was removed in [1] as part of the v13.0.2 tag. Running

    ceph config set global osd_pg_bits 42

results in

    Error EINVAL: unrecognized config option 'osd_pg_bits'

So we mark this api as deprecated and make it a no-op operation.

[1] https://github.com/ceph/ceph/commit/e6acf2d1d528a2395947d446a57bec04a3a002dc

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
PVE/API2/Ceph.pm

index 7e0763cf560ee5c6415f5abacf14c99903939214..fab4637cc4e3ae8000bd9bd3d94a13aa72742d7e 100644 (file)
@@ -158,10 +158,11 @@ __PACKAGE__->register_method ({
                minimum => 1,
                maximum => 7,
            },
+           # TODO: deprecrated, remove with PVE 9
            pg_bits => {
                description => "Placement group bits, used to specify the " .
-                   "default number of placement groups.\n\nNOTE: 'osd pool " .
-                   "default pg num' does not work for default pools.",
+                   "default number of placement groups.\n\nDepreacted. This " .
+                   "setting was deprecated in recent Ceph versions.",
                type => 'integer',
                default => 6,
                optional => 1,
@@ -224,11 +225,6 @@ __PACKAGE__->register_method ({
                $cfg->{client}->{keyring} = '/etc/pve/priv/$cluster.$name.keyring';
            }
 
-           if ($param->{pg_bits}) {
-               $cfg->{global}->{'osd pg bits'} = $param->{pg_bits};
-               $cfg->{global}->{'osd pgp bits'} = $param->{pg_bits};
-           }
-
            if ($param->{network}) {
                $cfg->{global}->{'public network'} = $param->{network};
                $cfg->{global}->{'cluster network'} = $param->{network};