Skip to content

cephadm: version command hide traceback when login is needed - #39562

Merged
sebastian-philipp merged 1 commit into
ceph:masterfrom
Daniel-Pivonka:cephadmversionauthregerror
Feb 24, 2021
Merged

sebastian-philipp merged 1 commit into
ceph:masterfrom
Daniel-Pivonka:cephadmversionauthregerror

Conversation

@Daniel-Pivonka

@Daniel-Pivonka Daniel-Pivonka commented Feb 18, 2021 •

Copy link
Copy Markdown

if image comes from a authenticated registry and login has not been done yet the traceback should be hidden and only show the error message

traceback shown before
image

after no traceback
image

Fixes: https://tracker.ceph.com/issues/49366
Signed-off-by: Daniel Pivonka [email protected]

@Daniel-Pivonka
Daniel-Pivonka requested a review from a team as a code owner February 18, 2021 21:27
Comment thread src/cephadm/cephadm Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

though, we should not return 0 if that fails.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

podman return code is passed along
image

@Daniel-Pivonka
Daniel-Pivonka force-pushed the cephadmversionauthregerror branch from 9f367a7 to db3e802 Compare February 19, 2021 18:53
@Daniel-Pivonka
Daniel-Pivonka force-pushed the cephadmversionauthregerror branch from db3e802 to bb88caa Compare February 19, 2021 19:04
if image comes from a authenticated registry and login has not been done yet the traceback should be hidden and only show the error message

Signed-off-by: Daniel Pivonka <[email protected]>
@sebastian-philipp

Copy link
Copy Markdown
Contributor

jenkins test api

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