Project

General

Profile

Actions

Bug #78425

closed
SS SS

[ok-to-upgrade] The minimum PGs being reported as "would be offlne" is inaccurate.

Bug #78425: [ok-to-upgrade] The minimum PGs being reported as "would be offlne" is inaccurate.

Added by Sridhar Seshasayee 5 months ago. Updated 3 months ago.

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

0%

Source:
Backport:
umbrella, tentacle
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-1232-gb74a7f9db7
Released In:
Upkeep Timestamp:
2026-08-28T01:42:12+00:00

Description

When no OSDs within a CRUSH bucket can be found to upgrade, the current error
message indicates the minimum number of PGs affected if any OSD was removed
from the set. For e.g.,

"Error EBUSY: unsafe to upgrade osd(s) at this time (at least X PG will
become offline if any OSD out of the Y in CRUSH bucket 'foo' is stopped)"

This is inaccurate in some cases as shown below:

For example , In rack2-chassis2-node3 OSDs are 0,6,12,18,24 and 29.

-16         0.35156      rack rack2
-19         0.35156          chassis chassis2
 -3         0.17578              host ci-rd1h2j-node3
  0    hdd  0.02930                  osd.0                 up   1.00000  1.00000
  6    hdd  0.02930                  osd.6                 up   1.00000  1.00000
 12    hdd  0.02930                  osd.12                up   1.00000  1.00000
 18    hdd  0.02930                  osd.18                up   1.00000  1.00000
 24    hdd  0.02930                  osd.24                up   1.00000  1.00000
 29    hdd  0.02930                  osd.29                up   1.00000  1.00000
 -7         0.17578              host ci-rd1h2j-node4
  1    hdd  0.02930                  osd.1               down   1.00000  1.00000
  9    hdd  0.02930                  osd.9               down   1.00000  1.00000
 15    hdd  0.02930                  osd.15              down   1.00000  1.00000
 21    hdd  0.02930                  osd.21              down   1.00000  1.00000
 27    hdd  0.02930                  osd.27              down   1.00000  1.00000
 33    hdd  0.02930                  osd.33              down   1.00000  1.00000

The minimum number of OSDs that would be offline is 30 PGs,

[root@ci-rd1h2j-node7 ~]# ceph orch daemon stop osd.0
Error EINVAL: Unable to stop daemon osd.0: unsafe to stop osd(s) at this time (34 PGs are or would become offline)
Note: Warnings can be bypassed with the --force flag
[root@ci-rd1h2j-node7 ~]# ceph orch daemon stop osd.6
Error EINVAL: Unable to stop daemon osd.6: unsafe to stop osd(s) at this time (42 PGs are or would become offline)
Note: Warnings can be bypassed with the --force flag
[root@ci-rd1h2j-node7 ~]# ceph orch daemon stop osd.12
Error EINVAL: Unable to stop daemon osd.12: unsafe to stop osd(s) at this time (42 PGs are or would become offline)
Note: Warnings can be bypassed with the --force flag
[root@ci-rd1h2j-node7 ~]# ceph orch daemon stop osd.18
Error EINVAL: Unable to stop daemon osd.18: unsafe to stop osd(s) at this time (44 PGs are or would become offline)
Note: Warnings can be bypassed with the --force flag
[root@ci-rd1h2j-node7 ~]# ceph orch daemon stop osd.24
Error EINVAL: Unable to stop daemon osd.24: unsafe to stop osd(s) at this time (34 PGs are or would become offline)
Note: Warnings can be bypassed with the --force flag
[root@ci-rd1h2j-node7 ~]# ceph orch daemon stop osd.29
Error EINVAL: Unable to stop daemon osd.29: unsafe to stop osd(s) at this time (30 PGs are or would become offline)
Note: Warnings can be bypassed with the --force flag

But the error message mentions “atleast 34 PGs will become offline”
It should have displayed “atleast 30 PGs will become offline”, Since stopping node3 - osd.29 would
cause 30 PGs to become offline. The number of PGs for displaying error message was taken from osd.24

[root@ci-rd1h2j-node7 ~]# ceph osd ok-to-upgrade ci-rd1h2j-node3 20.1.0-144.el9cp
{"ok_to_upgrade":false,"all_osds_upgraded":false,"osds_in_crush_bucket":[24,12,18,29,0,6],"osds_ok_to_upgrade":[],"osds_upgraded":[],"bad_no_version":[]}
Error EBUSY: unsafe to upgrade OSD(s) at this time (at least 34 PG(s) will become offline if any OSD out of the 6 in CRUSH bucket 'ci-rd1h2j-node3' is stopped)

Related issues 2 (0 open — 2 closed)

Copied to RADOS - Backport #78486: umbrella: [ok-to-upgrade] The minimum PGs being reported as "would be offlne" is inaccurate.ResolvedSridhar Seshasayee

Actions
Copied to RADOS - Backport #78487: tentacle: [ok-to-upgrade] The minimum PGs being reported as "would be offlne" is inaccurate.ResolvedSridhar Seshasayee

Actions

SS Updated by Sridhar Seshasayee 5 months ago Actions #1

  • Status changed from New to Fix Under Review
  • Pull request ID set to 70357

SS Updated by Sridhar Seshasayee 5 months ago Actions #2

  • Status changed from Fix Under Review to Pending Backport
  • Backport set to umbrella, tentacle

UB Updated by Upkeep Bot 5 months ago Actions #3

  • Merge Commit set to b74a7f9db7e33fb0c1b526bce83967af802b3543
  • Fixed In set to v21.3.0-1232-gb74a7f9db7
  • Upkeep Timestamp set to 2026-07-21T14:09:53+00:00

UB Updated by Upkeep Bot 5 months ago Actions #4

  • Copied to Backport #78486: umbrella: [ok-to-upgrade] The minimum PGs being reported as "would be offlne" is inaccurate. added

UB Updated by Upkeep Bot 5 months ago Actions #5

  • Copied to Backport #78487: tentacle: [ok-to-upgrade] The minimum PGs being reported as "would be offlne" is inaccurate. added

UB Updated by Upkeep Bot 5 months ago Actions #6

  • Tags (freeform) set to backport_processed

SS Updated by Sridhar Seshasayee 4 months ago Actions #7

  • Status changed from Pending Backport to Resolved

UB Updated by Upkeep Bot 3 months ago Actions #8

  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2026-07-21T14:09:53+00:00 to 2026-08-28T01:42:12+00:00
Actions

Also available in: PDF Atom