New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cephadm: remove redundant ERROR
during check-host
#38995
cephadm: remove redundant ERROR
during check-host
#38995
Conversation
get_hostname(), args.expect_hostname)) | ||
logger.info('Hostname "%s" matches what is expected.', | ||
args.expect_hostname) | ||
|
||
if errors: | ||
raise Error('\n'.join(errors)) | ||
raise Error('\nERROR: '.join(errors)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see ok the output produced ( I do not see the effect pointed by @sebastian-philipp )
Just improve little bit using plural or singular if it is needed:
If errors:
error_message_header = "Errors:\n" if len(errors)> 1 else "Error:\n"
raise Error(f'{error_message_header.join(errors)})
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that will still cause issues for the mgr/cephadm logic @sebastian-philipp referenced:
ceph/src/pybind/mgr/cephadm/module.py
Line 1192 in beb00bd
errors = [_i.replace("ERROR: ", "") for _i in err if _i.startswith('ERROR')] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mmm.. I see.. with this change in place.. What if we remove that line?
this is a follow-up to #38667 |
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
7f75a74
to
4fcc91d
Compare
4fcc91d
to
7419aeb
Compare
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
lgtm. |
``` ERROR: ERROR: No time synchronization is active ``` Signed-off-by: Michael Fritch <mfritch@suse.com>
7419aeb
to
ace5d41
Compare
ping @jmolmo ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Michael Fritch mfritch@suse.com
Checklist
Show available Jenkins commands
jenkins retest this please
jenkins test classic perf
jenkins test crimson perf
jenkins test signed
jenkins test make check
jenkins test make check arm64
jenkins test submodules
jenkins test dashboard
jenkins test api
jenkins test docs
jenkins render docs
jenkins test ceph-volume all
jenkins test ceph-volume tox