Bug #80399
closedUnplanned OSD reconfig and bluestore key update during mon-only staggered upgrade
0%
Description
On older version, deploying an OSD does not write the keyring with caps, so the keyring file looks like the example below. After an upgrade, when the OSD is reconfigured due to a mon map change, we compare the keyring with caps to the stored keyring (which lacks caps). They do not match even when the key content is identical, triggering a keyring rotation.
[root@ceph-node-2 ~]# cat /var/lib/ceph/42cdb5fe-ab79-11f1-ab45-52540068e334/osd.4/keyring
[osd.4]
key = AQAb9J9qhylHBBAAb6cTQ0KqWZMCI/6ray1Umg==
[root@ceph-node-2 ~]# cat /var/lib/ceph/42cdb5fe-ab79-11f1-ab45-52540068e334/osd.5/keyring
[osd.5]
key = AQAf9J9q/JuvFhAAts2n0E559zSx9hu2K8v9Fg==
[root@ceph-node-2 ~]#
2026-09-08 11:40:20,851 7f74c23e4740 DEBUG Loaded deploy configuration: [{'fsid': '42cdb5fe-ab79-11f1-ab45-52540068e334', 'name': 'osd.4', 'image': 'registry.redhat.io/rhceph/rhceph-8-rhel9@sha256:50790d990d6025da7e1a94507db1e782be7be006cc29c81e2748fd7482f0c0ff', 'deploy_arguments': [], 'params': {'osd_fsid': 'cdafaca9-b3d8-4c22-a12d-f4f15e5e0764', 'limit_core_infinity': True}, 'meta': {'service_name': 'osd.all-available-devices', 'ports': [], 'ip': None, 'deployed_by': ['registry.redhat.io/rhceph/rhceph-8-rhel9@sha256:50790d990d6025da7e1a94507db1e782be7be006cc29c81e2748fd7482f0c0ff'], 'rank': None, 'rank_generation': None, 'extra_container_args': None, 'extra_entrypoint_args': None}, 'config_blobs': {'config': '# minimal ceph.conf for 42cdb5fe-ab79-11f1-ab45-52540068e334\n[global]\n\tfsid = 42cdb5fe-ab79-11f1-ab45-52540068e334\n\tmon_host = [v2:192.168.100.100:3300/0,v1:192.168.100.100:6789/0] [v2:192.168.100.101:3300/0,v1:192.168.100.101:6789/0] [v2:192.168.100.102:3300/0,v1:192.168.100.102:6789/0]\n', 'keyring': '[osd.4]\n\tkey = AQAb9J9qhylHBBAAb6cTQ0KqWZMCI/6ray1Umg==\n\tcaps mgr = "allow profile osd"\n\tcaps mon = "allow profile osd"\n\tcaps osd = "allow *"\n'}}]
SB Updated by Shweta Bhosale 3 months ago
- Pull request ID set to 71640
SB Updated by Shweta Bhosale 3 months ago
- Backport set to umbrella
JB Updated by Joshua Blanch 3 months ago
- Related to Bug #80440: cephadm: every reconfig of an OSD stops and restarts it, because the keyring text never matches the one rewritten by ceph-volume (spurious rotate_osd_lv_keyring) added
JB Updated by Joshua Blanch 3 months ago
- Related to Bug #80466: After upgrade to 19.2.6 and 20.2.4, cephadm stops OSDs and rewrites unchanged BlueStore osd_key on daemon reconfig and MGR failover added
JB Updated by Joshua Blanch 3 months ago
- Affected Versions v20.2.4 added
JB Updated by Joshua Blanch 3 months ago
- Affected Versions v19.2.6 added
- Affected Versions deleted (
v20.2.4)
SB Updated by Shweta Bhosale 3 months ago
- Backport changed from umbrella to umbrella, tentacle, squid
RK Updated by Redouane Kachach Elhicou 2 months ago
- Status changed from In Progress to Pending Backport
UB Updated by Upkeep Bot 2 months ago
- Copied to Backport #80685: tentacle: Unplanned OSD reconfig and bluestore key update during mon-only staggered upgrade added
UB Updated by Upkeep Bot 2 months ago
- Copied to Backport #80686: umbrella: Unplanned OSD reconfig and bluestore key update during mon-only staggered upgrade added
UB Updated by Upkeep Bot 2 months ago
- Copied to Backport #80687: squid: Unplanned OSD reconfig and bluestore key update during mon-only staggered upgrade added
UB Updated by Upkeep Bot 2 months ago
- Status changed from Pending Backport to Backporting
- Merge Commit set to 28794f775eb18ca47951f30d392999a2af98e94e
- Fixed In set to v21.3.0-3460-g28794f775e
- Upkeep Timestamp set to 2026-09-21T11:45:34+00:00
UB Updated by Upkeep Bot 8 days ago
- Status changed from Backporting to Resolved
- Upkeep Timestamp changed from 2026-09-21T11:45:34+00:00 to 2026-11-26T01:03:28+00:00