Repository navigation
Conversation
…o-upgrade `osd ok-to-upgrade` returned -EINVAL both for an unsupported CRUSH bucket type (anything other than rack, chassis, host or osd) and for a malformed ceph_version or negative 'max'. Callers such as cephadm could not tell these apart from the error codes alone. Return -ENOTSUP for the unsupported bucket type case. -EINVAL is now returned only for the bad ceph version or max arguments, and -ENOENT remains for a missing bucket or a bucket with no OSDs. Update TEST_ok_to_upgrade_invalid_args to assert the error and message for the 'root' bucket case instead of only checking that the command fails. Fixes: https://tracker.ceph.com/issues/83338 Signed-off-by: Sridhar Seshasayee <[email protected]>
c7d8b4f to
73d3de5
Compare
|
@NitzanMordhai Mind taking a quick look at this? It's a simple change. Thanks! |
|
This PR has been added to wip-bharath37-testing-20261124.044935-main. |
|
#74240 is related to this PR. May be included in the tests post reviews if possible. @SrinivasaBharath and @sseshasa. Thanks! |
|
@sseshasa i think that cephadm will break with that change #72920 @ashjosh1git are you going to change those checkes for ENOENT? |
ah #74240 sorry, didn't notice that |
@SrinivasaBharath Yes, it would be better to wait for reviews to complete on #74240. We can then include both the PRs in a single QA batch. |
|
#74240 is approved, we are good for the tests, thanks @SrinivasaBharath |
osd ok-to-upgradereturned -EINVAL both for an unsupported CRUSH bucket type (anything other than rack, chassis, host or osd) and for a malformedceph_versionor negative 'max'. Callers such as cephadm could not tell these apart from the error codes alone.Return
-ENOTSUPfor the unsupported bucket type case.-EINVALis now returned only for the bad ceph version or max arguments, and-ENOENTremains for a missing bucket or a bucket with no OSDs.Update
TEST_ok_to_upgrade_invalid_argsto assert the error and message for the 'root' bucket case instead of only checking that the command fails.Fixes: https://tracker.ceph.com/issues/83338
Signed-off-by: Sridhar Seshasayee [email protected]
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.