public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH manager] ceph: init: drop deprecated pg_bits parameter
@ 2026-03-25  4:31 Kefu Chai
  2026-03-26 11:45 ` Maximiliano Sandoval
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Kefu Chai @ 2026-03-25  4:31 UTC (permalink / raw)
  To: pve-devel

The pg_bits parameter was deprecated in commit 9b15baf (PVE 8) after the
underlying Ceph config options (osd_pg_bits / osd_pgp_bits) were removed
from Ceph in v13.0.2.  The implementation was made a no-op at that point,
with a TODO to remove the parameter declaration in PVE 9.

We are now at pve-manager 9.1.6.  The minimum Ceph version supported by
pveceph init is Nautilus (v14), which is already past the point where
these options existed, so the parameter has been a guaranteed no-op on
every cluster PVE 9 can manage.  Remove it along with the adjacent
dead-code comments.

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
---
 PVE/API2/Ceph.pm | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/PVE/API2/Ceph.pm b/PVE/API2/Ceph.pm
index 231b751c..f59caf16 100644
--- a/PVE/API2/Ceph.pm
+++ b/PVE/API2/Ceph.pm
@@ -161,17 +161,6 @@ __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\nDepreacted. This "
-                    . "setting was deprecated in recent Ceph versions.",
-                type => 'integer',
-                default => 6,
-                optional => 1,
-                minimum => 6,
-                maximum => 14,
-            },
             disable_cephx => {
                 description => "Disable cephx authentication.\n\n"
                     . "WARNING: cephx is a security feature protecting against "
@@ -238,9 +227,6 @@ __PACKAGE__->register_method({
                         'mon_allow_pool_delete' => 'true',
                     };
 
-                    # this does not work for default pools
-                    #'osd pool default pg num' => $pg_num,
-                    #'osd pool default pgp num' => $pg_num,
                 }
 
                 if ($auth eq 'cephx') {
-- 
2.47.3





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-03-28 11:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-25  4:31 [PATCH manager] ceph: init: drop deprecated pg_bits parameter Kefu Chai
2026-03-26 11:45 ` Maximiliano Sandoval
2026-03-26 12:55 ` Thomas Lamprecht
2026-03-28 11:31   ` [PATCH manager] ceph: init: clean up " Kefu Chai
2026-03-28 11:24 ` superseded: " Kefu Chai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal