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

fix: ignore pod not found errors when removing kube specs #186

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

richm
Copy link
Contributor

@richm richm commented Oct 25, 2024

Cause: The module uses the podman kube play --done command to remove
the pod specified by the kube spec, but does not check if the pod has
already been removed. That is, it is not idempotent. The command
gives an error if the pod is not found. This only happens with
podman 4.4.1 on EL8.8 and EL9.2.

Consequence: The podman role gives an error that the pod specified
by the kube spec cannot be found when removing.

Fix: The role ignores the 'pod not found' error when removing
a kube spec.

Result: The role does not give an error when removing a kube
spec.

NOTE: This has been fixed in the containers.podman.podman_play
module upstream but has not yet been released.
https://github.com/containers/ansible-podman-collections/pull/863/files#diff-6672fb7f52e2bec3450c2dd7ed9a4385accd9bab8429ea6eecf4d56447f5a1b8R304

Signed-off-by: Rich Megginson [email protected]

Cause: The module uses the `podman kube play --done` command to remove
the pod specified by the kube spec, but does not check if the pod has
already been removed.  That is, it is not idempotent.  The command
gives an error if the pod is not found.  This only happens with
podman 4.4.1 on EL8.8 and EL9.2.

Consequence: The podman role gives an error that the pod specified
by the kube spec cannot be found when removing.

Fix: The role ignores the 'pod not found' error when removing
a kube spec.

Result: The role does not give an error when removing a kube
spec.

NOTE: This has been fixed in the containers.podman.podman_play
module upstream but has not yet been released.
https://github.com/containers/ansible-podman-collections/pull/863/files#diff-6672fb7f52e2bec3450c2dd7ed9a4385accd9bab8429ea6eecf4d56447f5a1b8R304

Signed-off-by: Rich Megginson <[email protected]>
@richm
Copy link
Contributor Author

richm commented Oct 25, 2024

[citest]

@richm richm merged commit 3edc125 into linux-system-roles:main Oct 25, 2024
15 checks passed
@richm richm deleted the debug-z-stream-failures branch October 25, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants