Skip to content

mgr/cephadm: OSD upgrades when CRUSH bucket type is specified - #72920

Merged
rkachach merged 2 commits into
ceph:mainfrom
ashjosh1git:ceph-tracker-81961-ok-to-upgrade-iterative
Nov 4, 2026
Merged

rkachach merged 2 commits into
ceph:mainfrom
ashjosh1git:ceph-tracker-81961-ok-to-upgrade-iterative

Conversation

@ashjosh1git

@ashjosh1git ashjosh1git commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

This code iterates thorugh all CRUSH buckets for a specified bucket type, and upgrades OSD daemons bucket wise.

Fixes: https://tracker.ceph.com/issues/81961

Test Logs:

1. Bucket-type wise upgrade with limit=2

[ceph: root@ceph-node-0 /]# ceph orch upgrade start --image=quay.io/ashjoshi/ceph:upgradetesting --crush-bucket-type=rack --daemon-types=osd --limit=2
Initiating upgrade to quay.io/ashjoshi/ceph:upgradetesting
[ceph: root@ceph-node-0 /]# ceph orch upgrade status
{
    "in_progress": true,
    "target_image": "quay.io/ashjoshi/ceph@sha256:72cc374f87fd81e3d7f889d69299d78c57024bd768a10329c6d78078dfb21d2b",
    "services_complete": [],
    "which": "Upgrading daemons of type(s) osd (OSDs in bucket scope). Upgrade limited to 2 daemons (0 remaining).",
    "progress": "2/12 daemons upgraded",
    "message": "Currently upgrading osd daemons in R1 (0 buckets complete, 3 in progress)",
    "is_paused": false
}
[ceph: root@ceph-node-0 /]# 
[ceph: root@ceph-node-0 /]# ceph orch upgrade status
There are no upgrades in progress currently.
[ceph: root@ceph-node-0 /]
2026-10-21T11:07:08.371+0000 7fc6982c96c0  0 log_channel(cephadm) log [DBG] : Upgrade: osd ok-to-upgrade mon response: requested max=16 crush_bucket='R1' ceph_version='21.3.0-3640-g0251cc4b' ok_to_upgrade=True all_osds_upgraded=False osds_ok_to_upgrade=[0, 2, 4, 6] osds_in_crush_bucket=[0, 2, 4, 6] osds_upgraded=[] bad_no_version=[]
2026-10-21T11:07:08.371+0000 7fc6982c96c0  0 [cephadm INFO cephadm.upgrade] Upgrade: osd ok-to-upgrade bucket='R1' max=16 approved ['osd.0', 'osd.2', 'osd.4', 'osd.6']
2026-10-21T11:07:08.372+0000 7fc6982c96c0  0 log_channel(cephadm) log [INF] : Upgrade: osd ok-to-upgrade bucket='R1' max=16 approved ['osd.0', 'osd.2', 'osd.4', 'osd.6']
2026-10-21T11:07:08.372+0000 7fc6982c96c0  0 [cephadm INFO cephadm.upgrade] Upgrade: osd.2 is safe to restart
2026-10-21T11:07:08.372+0000 7fc6982c96c0  0 [cephadm INFO cephadm.upgrade] Upgrade: osd.4 is safe to restart
2026-10-21T11:07:08.372+0000 7fc6982c96c0  0 [cephadm INFO cephadm.upgrade] Upgrade: osd.6 is safe to restart
2026-10-21T11:07:10.905+0000 7fc6982c96c0  0 [cephadm INFO cephadm.upgrade] Upgrade: Updating osd.0 (1/2)
2026-10-21T11:07:34.837+0000 7fc6982c96c0  0 [cephadm INFO cephadm.upgrade] Upgrade: Updating osd.2 (2/1)
2026-10-21T11:07:50.619+0000 7fc6982c96c0  0 [cephadm INFO cephadm] Hit upgrade limit of 2. Stopping upgrade
2026-10-21T11:07:50.619+0000 7fc6982c96c0  0 log_channel(cephadm) log [INF] : Hit upgrade limit of 2. Stopping upgrade
2026-10-21T11:08:03.661+0000 7fc6a83356c0  0 log_channel(audit) log [DBG] : from='client.64130 -' entity='client.admin' cmd=[{"prefix": "orch upgrade status", "target": ["mon-mgr", ""]}]: dispatch

2. Bucket-type wise upgrade with mgr failover (doesn’t start from first bucket all over again)

[ceph: root@ceph-node-0 /]# ceph orch upgrade start --image=quay.io/ashjoshi/ceph:upgradetesting --crush-bucket-type=rack --daemon-types=osd 
Initiating upgrade to quay.io/ashjoshi/ceph:upgradetesting
[ceph: root@ceph-node-0 /]#

[ceph: root@ceph-node-0 /]# ceph orch upgrade status
{
    "in_progress": true,
    "target_image": "quay.io/ashjoshi/ceph@sha256:72cc374f87fd81e3d7f889d69299d78c57024bd768a10329c6d78078dfb21d2b",
    "services_complete": [],
    "which": "Upgrading daemons of type(s) osd (OSDs in bucket scope)",
    "progress": "4/12 daemons upgraded",
    "message": "Currently upgrading osd daemons in R1 (0 buckets complete, 3 in progress)",
    "is_paused": false
}


2026-10-21T11:11:22.505+0000 7fc6982c96c0  0 [cephadm INFO cephadm.upgrade] Upgrade: Finished crush_bucket='R1' (1/3); advancing to 'R2'
2026-10-21T11:11:30.938+0000 7fc6982c96c0  0 log_channel(cephadm) log [DBG] : Filtering daemons to upgrade by daemon types: ['osd']
2026-10-21T11:11:30.963+0000 7fc6a83356c0  0 log_channel(audit) log [DBG] : from='mon.0 -' entity='mon.' cmd=[{"prefix": "osd ok-to-upgrade", "crush_bucket": "R2", "ceph_version": "21.3.0-3640-g0251cc4b", "max": 16}]: dispatch
2026-10-21T11:11:30.966+0000 7fc6982c96c0  0 log_channel(cephadm) log [DBG] : mon_command: 'osd ok-to-upgrade' -> 0 in 0.004s
2026-10-21T11:11:30.966+0000 7fc6982c96c0  0 log_channel(cephadm) log [DBG] : Upgrade: osd ok-to-upgrade mon response: requested max=16 crush_bucket='R2' ceph_version='21.3.0-3640-g0251cc4b' ok_to_upgrade=True all_osds_upgraded=False osds_ok_to_upgrade=[1, 5, 7, 3] osds_in_crush_bucket=[1, 5, 7, 3] osds_upgraded=[] bad_no_version=[]
2026-10-21T11:11:30.966+0000 7fc6982c96c0  0 [cephadm INFO cephadm.upgrade] Upgrade: osd ok-to-upgrade bucket='R2' max=16 approved ['osd.1', 'osd.5', 'osd.7', 'osd.3']
2026-10-21T11:11:30.966+0000 7fc6982c96c0  0 log_channel(cephadm) log [INF] : Upgrade: osd ok-to-upgrade bucket='R2' max=16 approved ['osd.1', 'osd.5', 'osd.7', 'osd.3']
2026-10-21T11:11:30.966+0000 7fc6982c96c0  0 [cephadm INFO cephadm.upgrade] Upgrade: osd.3 is safe to restart
2026-10-21T11:11:30.966+0000 7fc6982c96c0  0 [cephadm INFO cephadm.upgrade] Upgrade: osd.5 is safe to restart
2026-10-21T11:11:30.966+0000 7fc6982c96c0  0 [cephadm INFO cephadm.upgrade] Upgrade: osd.7 is safe to restart
2026-10-21T11:11:33.525+0000 7fc6982c96c0  0 [cephadm INFO cephadm.upgrade] Upgrade: Updating osd.1 (1/4)
2026-10-21T11:11:50.680+0000 7fc6982c96c0  0 [cephadm INFO cephadm.upgrade] Upgrade: Updating osd.3 (2/4)

Mgr failover takes over from the next ones: (R2 OSDs)

[ceph: root@ceph-node-0 /]# ceph orch upgrade status
{
    "in_progress": true,
    "target_image": "quay.io/ashjoshi/ceph@sha256:72cc374f87fd81e3d7f889d69299d78c57024bd768a10329c6d78078dfb21d2b",
    "services_complete": [],
    "which": "Upgrading daemons of type(s) osd (OSDs in bucket scope)",
    "progress": "7/12 daemons upgraded",
    "message": "Currently upgrading osd daemons in R2 (1 bucket complete, 2 in progress)",
    "is_paused": false
}
[ceph: root@ceph-node-0 /]#

4. Starting with regular ok-to-stop upgrades to make sure it works

[ceph: root@ceph-node-0 /]# ceph orch upgrade stop
Stopped upgrade to quay.io/ashjoshi/ceph@sha256:72cc374f87fd81e3d7f889d69299d78c57024bd768a10329c6d78078dfb21d2b
[ceph: root@ceph-node-0 /]# ceph orch ps | grep osd
osd.0                   ceph-node-0          running (6m)      81s ago  39m    51.8M    4096M  21.3.0-3640-g0251cc4b  571f1ee3b0d3  66ae82c1db80  
osd.1                   ceph-node-1          running (2m)      37s ago  39m    47.6M    4096M  21.3.0-3640-g0251cc4b  571f1ee3b0d3  ba1e033c5a57  
osd.2                   ceph-node-0          running (6m)      81s ago  39m    51.5M    4096M  21.3.0-3640-g0251cc4b  571f1ee3b0d3  0d0866a040f3  
osd.3                   ceph-node-1          running (105s)    37s ago  39m    48.0M    4096M  21.3.0-3640-g0251cc4b  571f1ee3b0d3  b846a289a75a  
osd.4                   ceph-node-0          running (3m)      81s ago  38m    47.5M    4096M  21.3.0-3640-g0251cc4b  571f1ee3b0d3  4700a05dc228  
osd.5                   ceph-node-1          running (86s)     37s ago  38m    46.4M    4096M  21.3.0-3640-g0251cc4b  571f1ee3b0d3  988a6ec7dac4  
osd.6                   ceph-node-0          running (2m)      81s ago  38m    49.7M    4096M  21.3.0-3640-g0251cc4b  571f1ee3b0d3  d5ab245ddac3  
osd.7                   ceph-node-1          running (43s)     37s ago  38m    46.5M    4096M  21.3.0-3640-g0251cc4b  571f1ee3b0d3  5d0e0b44280b  
osd.8                   ceph-node-2          running (35m)     78s ago  35m    61.4M    4096M  20.2.4                 6facee348180  38c9e9ce7038  
osd.9                   ceph-node-2          running (35m)     78s ago  35m    61.1M    4096M  20.2.4                 6facee348180  8795f2ca3d4c  
osd.10                  ceph-node-2          running (35m)     78s ago  35m    61.8M    4096M  20.2.4                 6facee348180  d4ff54ab7076  
osd.11                  ceph-node-2          running (35m)     78s ago  35m    59.6M    4096M  20.2.4                 6facee348180  fc1ed48ea7af  
[ceph: root@ceph-node-0 /]# ceph orch upgrade start --image=quay.io/ashjoshi/ceph:upgradetesting

[ceph: root@ceph-node-0 /]# ceph orch upgrade status
{
    "in_progress": true,
    "target_image": "quay.io/ashjoshi/ceph@sha256:72cc374f87fd81e3d7f889d69299d78c57024bd768a10329c6d78078dfb21d2b",
    "services_complete": [
        "mon",
        "crash",
        "mgr"
    ],
    "which": "Upgrading all daemon types on all hosts",
    "progress": "17/20 daemons upgraded",
    "message": "Currently upgrading osd daemons",
    "is_paused": false
}

[ceph: root@ceph-node-0 /]# ceph orch upgrade status
There are no upgrades in progress currently.
[ceph: root@ceph-node-0 /]#

5. Checking bucket type+name working as before:

[ceph: root@ceph-node-0 /]# ceph orch upgrade start --image=quay.io/ashjoshi/ceph:upgradetesting --daemon-types=osd --crush-bucket-type=host --crush-bucket-name=ceph-node-0
Initiating upgrade to quay.io/ashjoshi/ceph:upgradetesting         
[ceph: root@ceph-node-0 /]#


[ceph: root@ceph-node-0 /]# ceph orch ps | grep osd
osd.0                   ceph-node-0          running (82s)     3s ago  38m    47.4M    4096M  21.3.0-3640-g0251cc4b  3429720f0b1c  e7241f1877a3  
osd.1                   ceph-node-1          running (32m)     4m ago  38m    24.1M    4096M  20.2.4                 6facee348180  04898368887d  
osd.2                   ceph-node-0          running (64s)     3s ago  38m    48.7M    4096M  21.3.0-3640-g0251cc4b  3429720f0b1c  68bdb14d314f  
osd.3                   ceph-node-1          running (31m)     4m ago  38m    24.3M    4096M  20.2.4                 6facee348180  a69a657856a6  
osd.4                   ceph-node-0          running (46s)     3s ago  37m    46.6M    4096M  21.3.0-3640-g0251cc4b  3429720f0b1c  ccb509672b5f  
osd.5                   ceph-node-1          running (31m)     4m ago  37m    24.8M    4096M  20.2.4                 6facee348180  14a2c42e2083  
osd.6                   ceph-node-0          running (30s)     3s ago  37m    47.3M    4096M  21.3.0-3640-g0251cc4b  3429720f0b1c  559cf554e6a4  
osd.7                   ceph-node-1          running (31m)     4m ago  37m    26.3M    4096M  20.2.4                 6facee348180  566f981a642d  
osd.8                   ceph-node-2          running (30m)     4m ago  34m    58.1M    4096M  20.2.4                 6facee348180  0b5842ef6bd1  
osd.9                   ceph-node-2          running (30m)     4m ago  34m    56.5M    4096M  20.2.4                 6facee348180  77b3b38fb1ea  
osd.10                  ceph-node-2          running (31m)     4m ago  34m    57.9M    4096M  20.2.4                 6facee348180  627c1855e9e1  
osd.11                  ceph-node-2          running (30m)     4m ago  34m    59.0M    4096M  20.2.4                 6facee348180  5f79f3ee7a31  
[ceph: root@ceph-node-0 /]# ceph orch upgrade status
There are no upgrades in progress currently.
[ceph: root@ceph-node-0 /]# 

6. Checking all buckets in a type in one go:

[ceph: root@ceph-node-0 /]# ceph orch upgrade start --image=quay.io/ashjoshi/ceph:upgradetesting --daemon-types=osd --crush-bucket-type=host 
Initiating upgrade to quay.io/ashjoshi/ceph:upgradetesting
[ceph: root@ceph-node-0 /]# ceph orch upgrade status
{
    "in_progress": true,
    "target_image": "quay.io/ashjoshi/ceph@sha256:7b77a1078551da51cdc9617e275f7950cea137a23a15620ab0106f859b5fb088",
    "services_complete": [
        "osd"
    ],
    "which": "Upgrading daemons of type(s) osd (OSDs in bucket scope)",
    "progress": "12/12 daemons upgraded",
    "message": "Currently upgrading osd daemons in ceph-node-2 (2 buckets complete, 1 in progress)",
    "is_paused": false
}
[ceph: root@ceph-node-0 /]# ceph orch upgrade status
There are no upgrades in progress currently.
[ceph: root@ceph-node-0 /]# 

7. Invalid bucket name caught

[ceph: root@ceph-node-0 /]# ceph orch upgrade start --image=quay.io/ashjoshi/ceph:upgradetesting --crush-bucket-type=host --daemon-types=osd --crush-bucket-name=nohostlikethis
Initiating upgrade to quay.io/ashjoshi/ceph:upgradetesting
[ceph: root@ceph-node-0 /]# ceph orch upgrade status
{
    "in_progress": true,
    "target_image": "quay.io/ashjoshi/ceph@sha256:0f6cca51b8904482673d1d59a076cfc66fcbd7fb1682be1a8a04e43841ce8567",
    "services_complete": [],
    "which": "Upgrading daemons of type(s) osd (OSDs in bucket scope)",
    "progress": "0/0 daemons upgraded",
    "message": "Error: UPGRADE_INVALID_CRUSH_BUCKET: Upgrade: invalid failure domain for OSD upgrade",
    "is_paused": true
}
[ceph: root@ceph-node-0 /]#

8. Duplicate bucket entries don't ping-pong:

[ceph: root@ceph-node-0 /]# ceph osd crush link ceph-node-2 root=extra-root
linked item id -7 name 'ceph-node-2' to location {root=extra-root} in crush map
[ceph: root@ceph-node-0 /]# ceph osd tree
ID  CLASS  WEIGHT   TYPE NAME             STATUS  REWEIGHT  PRI-AFF
-9         0.03918  root extra-root                                
-7         0.03918      host ceph-node-2                           
 8    hdd  0.00980          osd.8             up   1.00000  1.00000
 9    hdd  0.00980          osd.9             up   1.00000  1.00000
10    hdd  0.00980          osd.10            up   1.00000  1.00000
11    hdd  0.00980          osd.11            up   1.00000  1.00000
-1         0.11755  root default                                   
-3         0.03918      host ceph-node-0                           
 1    hdd  0.00980          osd.1             up   1.00000  1.00000
 3    hdd  0.00980          osd.3             up   1.00000  1.00000
 4    hdd  0.00980          osd.4             up   1.00000  1.00000
 6    hdd  0.00980          osd.6             up   1.00000  1.00000
-5         0.03918      host ceph-node-1                           
 0    hdd  0.00980          osd.0             up   1.00000  1.00000
 2    hdd  0.00980          osd.2             up   1.00000  1.00000
 5    hdd  0.00980          osd.5             up   1.00000  1.00000
 7    hdd  0.00980          osd.7             up   1.00000  1.00000
-7         0.03918      host ceph-node-2                           
 8    hdd  0.00980          osd.8             up   1.00000  1.00000
 9    hdd  0.00980          osd.9             up   1.00000  1.00000
10    hdd  0.00980          osd.10            up   1.00000  1.00000
11    hdd  0.00980          osd.11            up   1.00000  1.00000
[ceph: root@ceph-node-0 /]#




[ceph: root@ceph-node-0 /]# ceph orch upgrade status
{
    "in_progress": true,
    "target_image": "quay.io/ashjoshi/ceph@sha256:0f6cca51b8904482673d1d59a076cfc66fcbd7fb1682be1a8a04e43841ce8567",
    "services_complete": [],
    "which": "Upgrading daemons of type(s) osd (OSDs in bucket scope)",
    "progress": "0/4 daemons upgraded",
    "message": "Currently upgrading osd daemons in ceph-node-2 (0 buckets complete, 3 in progress)",
    "is_paused": false
}

2026-10-22T15:09:10.826+0000 7f0bfcfb16c0  0 log_channel(cephadm) log [DBG] : mon_command: 'osd ok-to-upgrade' -> 0 in 0.009s
2026-10-22T15:09:10.826+0000 7f0bfcfb16c0  0 log_channel(cephadm) log [DBG] : Upgrade: osd ok-to-upgrade mon response: requested max=16 crush_bucket='ceph-node-2' ceph_version='21.3.0-3640-g0251cc4b' ok_to_upgrade=True all_osds_upgraded=False osds_ok_to_upgrade=[8, 9, 10, 11] osds_in_crush_bucket=[8, 9, 10, 11] osds_upgraded=[] bad_no_version=[]
2026-10-22T15:09:10.826+0000 7f0bfcfb16c0  0 [cephadm INFO cephadm.upgrade] Upgrade: osd ok-to-upgrade bucket='ceph-node-2' max=16 approved ['osd.8', 'osd.9', 'osd.10', 'osd.11']
2026-10-22T15:09:10.826+0000 7f0bfcfb16c0  0 log_channel(cephadm) log [INF] : Upgrade: osd ok-to-upgrade bucket='ceph-node-2' max=16 approved ['osd.8', 'osd.9', 'osd.10', 'osd.11']
2026-10-22T15:09:10.826+0000 7f0bfcfb16c0  0 [cephadm INFO cephadm.upgrade] Upgrade: osd.11 is safe to restart
2026-10-22T15:09:10.826+0000 7f0bfcfb16c0  0 [cephadm INFO cephadm.upgrade] Upgrade: osd.8 is safe to restart
2026-10-22T15:09:10.826+0000 7f0bfcfb16c0  0 [cephadm INFO cephadm.upgrade] Upgrade: osd.9 is safe to restart
2026-10-22T15:09:13.411+0000 7f0bfcfb16c0  0 [cephadm INFO cephadm.upgrade] Upgrade: Updating osd.10 (1/4)
2026-10-22T15:09:15.882+0000 7f0bfcfb16c0  0 [cephadm INFO cephadm.upgrade] Upgrade: Updating osd.11 (1/4)
2026-10-22T15:09:18.439+0000 7f0bfcfb16c0  0 [cephadm INFO cephadm.upgrade] Upgrade: Updating osd.8 (1/4)
2026-10-22T15:09:20.958+0000 7f0bfcfb16c0  0 [cephadm INFO cephadm.upgrade] Upgrade: Updating osd.9 (1/4)
2026-10-22T15:09:25.889+0000 7f0c0b00d6c0  0 log_channel(audit) log [DBG] : from='client.224157 -' entity='client.admin' cmd=[{"prefix": "orch upgrade status", "target": ["mon-mgr", ""]}]: dispatch

.........

2026-10-22T15:11:18.566+0000 7f0bfcfb16c0  0 [cephadm INFO cephadm.upgrade] Upgrade: Complete!

[ceph: root@ceph-node-0 /]# ceph orch upgrade status
There are no upgrades in progress currently.
[ceph: root@ceph-node-0 /]#

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@anthonyeleven anthonyeleven left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docs lgtm

@ashjosh1git
ashjosh1git force-pushed the ceph-tracker-81961-ok-to-upgrade-iterative branch 2 times, most recently from 81b22ca to 5c23a99 Compare October 22, 2026 09:10
@ashjosh1git

Copy link
Copy Markdown
Contributor Author

jenkins test make check

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved bucket-iteration and cluster-wide finalization defects can stall upgrades or prevent scoped runs from completing.

3 open issues
What changed in this PR

Extends cephadm’s bucket-scoped OSD upgrades to process all CRUSH buckets of a selected type automatically, rather than requiring a separate upgrade command for each bucket.

Changes:

  • Discovers and persists an ordered bucket queue, allowing upgrades to resume after Manager failover.
  • Adds bucket advancement, progress reporting, completion handling, and redeployment-limit enforcement.
  • Adds unit tests and documents type-only upgrades.
File Description
src/​pybind/​mgr/​cephadm/​upgrade.py Implements bucket iteration, persistent progress, and upgrade-limit handling.
src/​pybind/​mgr/​cephadm/​tests/​test_upgrade.py Tests validation, queue persistence, advancement, status, and limits.
doc/​cephadm/​upgrade.rst Documents automatic bucket iteration and topology constraints.

Review effort: Balanced

Comment thread src/pybind/mgr/cephadm/upgrade.py Resolved
Comment thread src/pybind/mgr/cephadm/upgrade.py Resolved
Comment thread src/pybind/mgr/cephadm/upgrade.py Resolved

@adk3798 adk3798 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything seems like it should work here. We should really get a teuthology test for both the auto-iterate and by individual name crush bucket upgrade cases. I think it's really hard to tell from unit tests and the code itself if this is working or not (or if some other change later change breaks it)

@ashjosh1git

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

@ashjosh1git

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@ashjosh1git
ashjosh1git force-pushed the ceph-tracker-81961-ok-to-upgrade-iterative branch from 9de6268 to cfcbe9c Compare October 27, 2026 13:25
@rkachach rkachach added wip-rkachach-testing-2 rkachach testing and removed needs-rebase labels Oct 27, 2026
@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@rkachach

Copy link
Copy Markdown
Contributor

This PR is ready to merge after the UT rebase

This code iterates thorugh all CRUSH buckets for a specified
bucket type, and upgrades OSD daemons bucket wise.

Fixes: https://tracker.ceph.com/issues/81961
Signed-off-by: Ashwin M. Joshi <[email protected]>
Handles comments for:
— Duplicate bucket names break auto-iterate
— Empty CRUSH bucket permanently pauses the upgrade
— Cluster-wide completion check was actually bucket-scoped

    Fixes: https://tracker.ceph.com/issues/81961
    Signed-off-by: Ashwin M. Joshi <[email protected]>

 Conflicts:
	src/pybind/mgr/cephadm/tests/test_upgrade.py
@ashjosh1git
ashjosh1git force-pushed the ceph-tracker-81961-ok-to-upgrade-iterative branch from cfcbe9c to 22bf57b Compare October 30, 2026 05:46
@ashjosh1git

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

1 similar comment
@rkachach

Copy link
Copy Markdown
Contributor

jenkins test make check arm64

@rkachach

rkachach commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

@rkachach
rkachach merged commit 6ffb9dd into ceph:main Nov 4, 2026
15 of 16 checks passed
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown

This is an automated message by src/script/redmine-upkeep.py.

I found one or more Fixes: tags in the commit messages in

git log 6ffb9ddd00123abad9cef2d3029c7faebd151212^..6ffb9ddd00123abad9cef2d3029c7faebd151212

The referenced tickets are:

Those tickets do not reference this merged Pull Request. If this Pull Request merge resolves any of those tickets, please update the "Pull Request ID" field on each ticket. A future run of this script will appropriately update them.

Update Log: https://github.com/ceph/ceph/actions/runs/41812638371

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants