Project

General

Profile

Actions

Bug #80399

closed
SB SB

Unplanned OSD reconfig and bluestore key update during mon-only staggered upgrade

Bug #80399: Unplanned OSD reconfig and bluestore key update during mon-only staggered upgrade

Added by Shweta Bhosale 3 months ago. Updated 8 days ago.

Status:
Resolved
Priority:
Normal
Category:
cephadm
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
umbrella, tentacle, squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-3460-g28794f775e
Released In:
Upkeep Timestamp:
2026-11-26T01:03:28+00:00

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'}}]


Related issues 5 (1 open — 4 closed)

Related to Orchestrator - 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)ResolvedShweta Bhosale

Actions
Related to Orchestrator - 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 failoverNew

Actions
Copied to Orchestrator - Backport #80685: tentacle: Unplanned OSD reconfig and bluestore key update during mon-only staggered upgradeResolvedShweta Bhosale

Actions
Copied to Orchestrator - Backport #80686: umbrella: Unplanned OSD reconfig and bluestore key update during mon-only staggered upgradeResolvedShweta Bhosale

Actions
Copied to Orchestrator - Backport #80687: squid: Unplanned OSD reconfig and bluestore key update during mon-only staggered upgradeResolvedShweta Bhosale

Actions

SB Updated by Shweta Bhosale 3 months ago Actions #1

  • Pull request ID set to 71640

SB Updated by Shweta Bhosale 3 months ago Actions #2

  • Backport set to umbrella

JB Updated by Joshua Blanch 3 months ago Actions #3

  • 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 Actions #4

  • 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 Actions #5

  • Affected Versions v20.2.4 added

JB Updated by Joshua Blanch 3 months ago Actions #6

  • Affected Versions v19.2.6 added
  • Affected Versions deleted (v20.2.4)

SB Updated by Shweta Bhosale 3 months ago Actions #7

  • Backport changed from umbrella to umbrella, tentacle, squid

RK Updated by Redouane Kachach Elhicou 2 months ago Actions #8

  • Status changed from In Progress to Pending Backport

UB Updated by Upkeep Bot 2 months ago Actions #9

  • 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 Actions #10

  • 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 Actions #11

  • 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 Actions #12

  • 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 Actions #13

  • 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
Actions

Also available in: PDF Atom