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
ceph_key: handle error in a better way #6572
Conversation
When calling the `ceph_key` module with `state: info`, if the ceph command called fails, the actual error is hidden by the module which makes it pretty difficult to troubleshoot. The current code always states that if rc is not equal to 0 the keyring doesn't exist. `state: info` should always return the actual rc, stdout and stderr. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1964889 Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
jenkins test centos-container-all_in_one |
jenkins test centos-non_container-all_in_one |
jenkins test centos-non_container-collocation |
jenkins test centos-container-all_in_one |
jenkins test centos-non_container-collocation |
jenkins test centos-non_container-switch_to_containers |
jenkins test centos-container-all_in_one |
jenkins test centos-non_container-update |
jenkins test centos-non_container-switch_to_containers |
1 similar comment
jenkins test centos-non_container-switch_to_containers |
jenkins test centos-container-all_in_one |
jenkins test centos-non_container-switch_to_containers |
1 similar comment
jenkins test centos-non_container-switch_to_containers |
jenkins test centos-container-all_in_one |
jenkins test centos-non_container-switch_to_containers |
jenkins test centos-container-all_in_one |
jenkins test centos-non_container-switch_to_containers |
jenkins test centos-container-all_in_one |
jenkins test centos-non_container-switch_to_containers |
1 similar comment
jenkins test centos-non_container-switch_to_containers |
When calling the
ceph_key
module withstate: info
, if the cephcommand called fails, the actual error is hidden by the module which
makes it pretty difficult to troubleshoot.
The current code always states that if rc is not equal to 0 the keyring
doesn't exist.
state: info
should always return the actual rc, stdout and stderr.Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1964889
Signed-off-by: Guillaume Abrioux gabrioux@redhat.com