-
Notifications
You must be signed in to change notification settings - Fork 123
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
podman-docker incompatibilities in common_cli.py
: KeyError: 'ApiVersion'
#891
Comments
common_cli.py
: `KeyError: 'ApiVersion'common_cli.py
: KeyError: 'ApiVersion'
This is not a bug in this collection since we do not support podman-docker. If something works fine with podman-docker you're lucky, but if it does not it's not a bug for this collection. Your playbook doesn't look like it could ever work anyway:
|
I am, only forgot to include this in the reproducer
actually, |
Then that aspect should be fine, but as long as |
I believe it would be valuable if podman could also be supported by this module. |
Skipping the API version check is pretty easy to implement, but as I wrote above, the big problem will be the capabilities based Compose check, which doesn't work since |
@felixfontein Would executing |
@apollo13 |
We could fall back to the existing code if `docker compose version` doesn't return the expected string. In my limited testing this allows to use the module via podman.
…On Sat, Dec 28, 2024, at 17:00, Felix Fontein wrote:
@apollo13 <https://github.com/apollo13> `docker compose version` does
not provide a good way to determine whether the plugin is installed if
it fails.
—
Reply to this email directly, view it on GitHub
<#891 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAT5C5SAT7ZGD3PLH3YYIL2H3DIBAVCNFSM6AAAAABJX2XFN6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRUGM3DQNBTHE>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
The next release will contain a PR by @apollo13 which should make this work. |
SUMMARY
The plugin fails when using
podman-docker
because it expects a specific format output format indocker version --format '{{ json . }}'
which is not supported by `podman-docker:community.docker/plugins/module_utils/common_cli.py
Line 83 in eddeb91
ISSUE TYPE
COMPONENT NAME
community.docker/plugins/module_utils/common_cli.py
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
macOS M1
target OS: fedora 40 with
podman
andpodman-docker
installedSTEPS TO REPRODUCE
EXPECTED RESULTS
This should go through
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: