Skip to content

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

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

cephadm: version command hide traceback when login is needed#39562
sebastian-philipp merged 1 commit intoceph:masterfrom
Daniel-Pivonka:cephadmversionauthregerror

Conversation

@Daniel-Pivonka
Copy link

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

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 dpivonka@redhat.com

@Daniel-Pivonka Daniel-Pivonka requested a review from a team as a code owner February 18, 2021 21:27
out = CephContainer(ctx, ctx.image, 'ceph', ['--version']).run()
print(out.strip())
except Exception:
pass
Copy link
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
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 <dpivonka@redhat.com>
@sebastian-philipp
Copy link
Contributor

@sebastian-philipp
Copy link
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