cephadm: validate fsid during cephadm shell command#40015
Merged
liewegas merged 1 commit intoceph:masterfrom Mar 26, 2021
Merged
cephadm: validate fsid during cephadm shell command#40015liewegas merged 1 commit intoceph:masterfrom
liewegas merged 1 commit intoceph:masterfrom
Conversation
c5e097b to
e0b7148
Compare
Contributor
|
This was referenced Mar 17, 2021
liewegas
reviewed
Mar 18, 2021
liewegas
reviewed
Mar 18, 2021
liewegas
reviewed
Mar 18, 2021
e0b7148 to
8b18344
Compare
Author
|
changed the logic around per sages suggestions. also added a few checks to make sure files exist before trying to open them to avoid trackbacks that are possible in rare situations. test should pass now |
Author
|
jenkins test make check |
ktdreyer
reviewed
Mar 19, 2021
c87d0ad to
c5f816f
Compare
ktdreyer
reviewed
Mar 24, 2021
liewegas
reviewed
Mar 24, 2021
Signed-off-by: Daniel Pivonka <[email protected]>
c5f816f to
9118b08
Compare
liewegas
approved these changes
Mar 25, 2021
jmolmo
reviewed
Mar 25, 2021
| def command_shell(ctx): | ||
| # type: (CephadmContext) -> int | ||
| if fsid_conf_mismatch(ctx): | ||
| raise Error('fsid does not match ceph conf') |
Member
There was a problem hiding this comment.
The message is completely clear for us .. but maybe a little bit cryptic for an user..
What about: "fsid provided does not match with fsid found in ceph conf"
jmolmo
approved these changes
Mar 25, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
--fsid would take any string and still drop you into a ceph shell that fully worked
verifying the fsid matches the one in the ceph conf
Fixes: https://tracker.ceph.com/issues/49724
Signed-off-by: Daniel Pivonka [email protected]