Skip to content
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

Merged
merged 1 commit into from Jun 14, 2021
Merged

ceph_key: handle error in a better way #6572

merged 1 commit into from Jun 14, 2021

Conversation

guits
Copy link
Collaborator

@guits guits commented Jun 7, 2021

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

@guits guits changed the title [skip ci] ceph_key: handle error in a better way ceph_key: handle error in a better way Jun 7, 2021
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>
@guits
Copy link
Collaborator Author

guits commented Jun 7, 2021

jenkins test centos-container-all_in_one

@guits
Copy link
Collaborator Author

guits commented Jun 7, 2021

jenkins test centos-non_container-all_in_one

@guits
Copy link
Collaborator Author

guits commented Jun 7, 2021

jenkins test centos-non_container-collocation

@guits
Copy link
Collaborator Author

guits commented Jun 7, 2021

jenkins test centos-container-all_in_one

@guits
Copy link
Collaborator Author

guits commented Jun 7, 2021

jenkins test centos-non_container-collocation

@guits
Copy link
Collaborator Author

guits commented Jun 7, 2021

jenkins test centos-non_container-switch_to_containers

@guits
Copy link
Collaborator Author

guits commented Jun 8, 2021

jenkins test centos-container-all_in_one

@guits
Copy link
Collaborator Author

guits commented Jun 8, 2021

jenkins test centos-non_container-update

@guits
Copy link
Collaborator Author

guits commented Jun 8, 2021

jenkins test centos-non_container-switch_to_containers

1 similar comment
@guits
Copy link
Collaborator Author

guits commented Jun 11, 2021

jenkins test centos-non_container-switch_to_containers

@guits
Copy link
Collaborator Author

guits commented Jun 11, 2021

jenkins test centos-container-all_in_one

@guits
Copy link
Collaborator Author

guits commented Jun 11, 2021

jenkins test centos-non_container-switch_to_containers

1 similar comment
@guits
Copy link
Collaborator Author

guits commented Jun 11, 2021

jenkins test centos-non_container-switch_to_containers

@guits
Copy link
Collaborator Author

guits commented Jun 14, 2021

jenkins test centos-container-all_in_one

@guits
Copy link
Collaborator Author

guits commented Jun 14, 2021

jenkins test centos-non_container-switch_to_containers

@guits
Copy link
Collaborator Author

guits commented Jun 14, 2021

jenkins test centos-container-all_in_one

@guits
Copy link
Collaborator Author

guits commented Jun 14, 2021

jenkins test centos-non_container-switch_to_containers

@guits
Copy link
Collaborator Author

guits commented Jun 14, 2021

jenkins test centos-container-all_in_one

@guits
Copy link
Collaborator Author

guits commented Jun 14, 2021

jenkins test centos-non_container-switch_to_containers

1 similar comment
@guits
Copy link
Collaborator Author

guits commented Jun 14, 2021

jenkins test centos-non_container-switch_to_containers

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.

None yet

1 participant