Bug #16709
closedNo output for "ceph mds rmfailed 0 --yes-i-really-mean-it" command
0%
Description
there is no output for the command ceph mds rmfailed 0 --yes-i-really-mean-it. The command is successful how many ever times we run it. There is nothing displayed to actually show if the command is successful or not or whether the mds has actually been failed.
ceph mds rmfailed 0 --yes-i-really-mean-it
ems@rack2-client-3:~$ ceph mds rmfailed 1 --yes-i-really-mean-it
Error EINVAL: Rank '1' not foundinvalid role '1'
ems@rack2-client-3:~$ ceph mds rmfailed 0 --yes-i-really-mean-it
ems@rack2-client-3:~$ ceph mds rmfailed 0 --yes-i-really-mean-it
ems@rack2-client-3:~$ ceph mds rmfailed 0 --yes-i-really-mean-it
Updated by John Spray almost 8 years ago
Without looking at the code, I would imagine that you're seeing EINVAL for rank 1 because there is no such rank (so it doesn't make sense to try and remove it from the failed set).
You're seeing 0 for rank 0 because Ceph CLI commands are idempotent, so whenever we have a removal -type operation we will return success if it is not present.
This isn't a bug as such but probably could be a bit friendlier by printing a message saying that the rank you're asking to remove from the failed set was already removed.
Updated by Rohith Radhakrishnan almost 8 years ago
Yes that would be ideal. as of now we cannot be sure if it has been actually removed or not.
Updated by Greg Farnum almost 8 years ago
- Category set to Administration/Usability
Updated by John Spray about 7 years ago
- Status changed from New to Fix Under Review
- Backport set to jewel, kraken
Updated by John Spray about 7 years ago
- Status changed from Fix Under Review to Pending Backport
Updated by Nathan Cutler about 7 years ago
- Copied to Backport #19482: jewel: No output for "ceph mds rmfailed 0 --yes-i-really-mean-it" command added
Updated by Nathan Cutler about 7 years ago
- Copied to Backport #19483: kraken: No output for "ceph mds rmfailed 0 --yes-i-really-mean-it" command added
Updated by Nathan Cutler over 6 years ago
- Status changed from Pending Backport to Resolved