Skip to content

mgr/cephadm: prevent traceback when invalid osd id passed to 'orch osd rm stop'#39924

Merged
sebastian-philipp merged 1 commit intoceph:masterfrom
Daniel-Pivonka:osdrmstoptraceback
Mar 10, 2021
Merged

mgr/cephadm: prevent traceback when invalid osd id passed to 'orch osd rm stop'#39924
sebastian-philipp merged 1 commit intoceph:masterfrom
Daniel-Pivonka:osdrmstoptraceback

Conversation

@Daniel-Pivonka
Copy link

orch osd rm expects a str that can be converted to an int passed to it
if the user passed something that cant be converted it shows a traceback
catching the ValueError prevents this traceback.

Fixes: https://tracker.ceph.com/issues/49659
Signed-off-by: Daniel Pivonka dpivonka@redhat.com

…d rm stop'

orch osd rm exepcts a str that can be converted to an int passed to it
if the user passed something that cant be converted it shows a traceback
catching the ValueError prevents this traceback.

Signed-off-by: Daniel Pivonka <dpivonka@redhat.com>
@Daniel-Pivonka Daniel-Pivonka requested a review from a team as a code owner March 8, 2021 19:10
@sebastian-philipp
Copy link
Contributor

https://pulpito.ceph.com/swagner-2021-03-09_14:01:08-rados:cephadm-wip-swagner3-testing-2021-03-09-1022-distro-basic-smithi/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants