mon, osd: add command to remove invalid pg-upmap-primary entries#62190
mon, osd: add command to remove invalid pg-upmap-primary entries#62190
Conversation
rzarzynski
left a comment
There was a problem hiding this comment.
Basically LGTM apart of some nits.
The idea of osd rm-pg-upmap-primary-all looks sane. It satisfies the need an emergency purge in a simple way likely alleviating the demand for --force in the per-PG remove command.
99c5b4c to
ba6cfbc
Compare
ba6cfbc to
80c5a66
Compare
|
jenkins test docs |
src/mon/OSDMonitor.cc
Outdated
| return true; | ||
| } | ||
| break; | ||
| case OP_RM_PG_UPMAP_PRIMARY_ALL: // no pgid to check |
There was a problem hiding this comment.
very nit ;) - I would put this case as the first one - else it is hard to find it.
I also like to add default: case with an error message or assert just in case someone adds a value in the future and forgets to update all the places
There was a problem hiding this comment.
ACK, added. This has already gone into teuthology testing, although the change is so trivial that I will confirm locally that the fix works, then IMO it is okay to merge pending QA approval.
The current rm-pg-upmap-primary command checks that the pgid exists in the pgmap before continuing to remove it. Due to https://tracker.ceph.com/issues/66867, some invalid pg-upmap-primary entires may exist for pools that have been removed. Currently, these mappings are impossible to remove since the pgids no longer exist in the pgmap. This new command, rm-pg-upmap-primary-all, allows users the ability to remove any and all pg-upmap-primary mappings in the osdmap at once, which includes valid and invalid entries. This command may also be helpful when upgrading from versions where users are plagued by https://tracker.ceph.com/issues/61948. Users may use an upgraded mon to remove all pg-upmap-primray entries (valid and invalid) so they continue to upgrade to a safe version. See manual testing for this patch here: https://tracker.ceph.com/issues/67179#note-12 Fixes: https://tracker.ceph.com/issues/67179 Fixes: https://tracker.ceph.com/issues/69760 Signed-off-by: Laura Flores <lflores@ibm.com>
80c5a66 to
6e9e203
Compare
…ary-{all}" commands
Added a release note for `ceph osd rm-pg-upmap-primary` and documentation to
complement ceph#62190.
Signed-off-by: Laura Flores <lflores@ibm.com>
…ary-{all}" commands
Added a release note for `ceph osd rm-pg-upmap-primary` and documentation to
complement ceph#62190.
Signed-off-by: Laura Flores <lflores@ibm.com>
…ary-{all}" commands
Added a release note for `ceph osd rm-pg-upmap-primary` and documentation to
complement ceph#62190.
Signed-off-by: Laura Flores <lflores@ibm.com>
…ary-{all}" commands
Added a release note for `ceph osd rm-pg-upmap-primary` and documentation to
complement ceph#62190.
Signed-off-by: Laura Flores <lflores@ibm.com>
…ary-{all}" commands
Added a release note for `ceph osd rm-pg-upmap-primary` and documentation to
complement ceph#62190.
Signed-off-by: Laura Flores <lflores@ibm.com>
(cherry picked from commit 4dee791)
*Note: PendingReleaseNotes was modified to have the release note under
the v19.2.2 section.
…ary-{all}" commands
Added a release note for `ceph osd rm-pg-upmap-primary` and documentation to
complement ceph#62190.
Signed-off-by: Laura Flores <lflores@ibm.com>
(cherry picked from commit 4dee791)
…ary-{all}" commands
Added a release note for `ceph osd rm-pg-upmap-primary` and documentation to
complement ceph#62190.
Signed-off-by: Laura Flores <lflores@ibm.com>
(cherry picked from commit 4dee791)
*Note: PendingReleaseNotes was modified to have the release note under the v19.2.2 section.
…ary-{all}" commands
Added a release note for `ceph osd rm-pg-upmap-primary` and documentation to
complement ceph#62190.
Signed-off-by: Laura Flores <lflores@ibm.com>
(cherry picked from commit 4dee791)
*Note: PendingReleaseNotes changed to put the release note under v18.2.5.
The current rm-pg-upmap-primary command checks that the pgid exists in the pgmap before continuing to remove it. Due to https://tracker.ceph.com/issues/66867, some invalid pg-upmap-primary entires may exist for pools that have been removed. Currently, these mappings are impossible to remove since the pgids no longer exist in the pgmap.
This new command, rm-pg-upmap-primary-all, allows users the ability to remove any and all pg-upmap-primary mappings in the osdmap at once, which includes valid and invalid entries.
This command may also be helpful when upgrading from versions where users are plagued by https://tracker.ceph.com/issues/61948. Users may use an upgraded mon to remove all pg-upmap-primray entries (valid and invalid) so they continue to upgrade to a safe version.
See manual testing for this patch here: https://tracker.ceph.com/issues/67179#note-12
Fixes: https://tracker.ceph.com/issues/67179
Fixes: https://tracker.ceph.com/issues/69760
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 Definition