Repository navigation
tools/contrib: add upmap-remapped.py utility - #67886
Conversation
|
I’m trying to understand the value of adding a copy of this script to ceph/ceph. A few high-level questions come to mind:
Without clear plans on maintenance, and documentation, I’m not yet sure what the long-term value is of carrying this in-tree. on a side note - i think it would be fantastic to get this as an option within core code itself (and not something out of band) |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
It was requested by the RADOS team.
That's being tracked here: https://tracker.ceph.com/issues/67418 |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
This script generates upmap entries for currently remapped PGs, allowing operators to execute large cluster changes (like massive PG splitting or adding capacity) without triggering immediate, disruptive I/O storms. It pins PGs to their current physical locations, deferring data migration to the background balancer. Note: This tool is actively maintained over at https://github.com/cernceph/ceph-scripts. We should strive to keep this in-tree copy in sync with that repository. Fixes: https://tracker.ceph.com/issues/78996 Signed-off-by: Dan van der Ster <[email protected]>
23f6da3 to
a0abd36
Compare
|
I added the relevant tracker to the commit. We'd like to include the script in Umbrella GA (tracked in https://tracker.ceph.com/issues/78996). Upstream tests and documentation to follow (tracked in https://tracker.ceph.com/issues/78997). |
| import rados | ||
| cluster = rados.Rados(conffile='/etc/ceph/ceph.conf') | ||
| cluster.connect() | ||
| except: |
| if 'pool' in line: | ||
| x = line.split(' ') | ||
| pool_type[x[1]] = x[3] | ||
| except: |
| if pool_type[pool] == 'replicated': | ||
| try: | ||
| pairs = gen_upmap(up, acting, replicated=True) | ||
| except: |
| elif pool_type[pool] == 'erasure': | ||
| try: | ||
| pairs = gen_upmap(up, acting) | ||
| except: |
| rm_upmap_pg_items(pgid) | ||
| num += 1 | ||
| continue | ||
| except KeyError: |
|
Copiliot reviews are irrelevant since we are copying over the script exactly as it is in https://github.com/cernceph/ceph-scripts. |
|
jenkins test make check |
This script generates upmap entries for currently remapped PGs, allowing operators to execute large cluster changes (like massive PG splitting or adding capacity) without triggering immediate, disruptive I/O storms. It pins PGs to their current physical locations, deferring data migration to the background balancer.
Note: This tool is actively maintained over at
https://github.com/cernceph/ceph-scripts. We should strive to keep this in-tree copy in sync with that repository.
Fixes: https://tracker.ceph.com/issues/78996
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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.