ansible-community / ansible-community/molecule-plugins

Podman driver doesn't honor "podman_extra_args" at creation/destruction

Open
#305 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
164
Forks
113
Avg merge
4d 20h
Merged PRs (30d)
1

Description

When using the podman driver with `podman-remote` as executable (variable MOLECULE_PODMAN_EXECUTABLE=podman-remote) with many connections registered, I'd like to choose which connection to use and not necessarily the default one.

I looked into the podman driver documentation and it's specified that the create/destroy playbooks follow the podman ansible connector specification, so I decided to set the connection with the `podman_extra_args` parameter in the molecule.yaml :

```
provisioner:
name: ansible
config_options:
defaults:
podman_extra_args: --connection fake_connection
```

The problem is that the parameter is not honored during the creation but starts to be honored during the prepare phase and probably is not honored during the destruction phase either.
One quick way to test the problem is to set a connection that doesn't exist.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the Podman driver's create and destroy playbooks and compare how they handle podman_extra_args with the prepare phase. Reproduce the issue with a nonexistent connection in molecule.yaml; done means the configured connection is honored during creation and destruction as it is during preparation.

Written by the indexing model from the issue text.

Assessment

Tech stack
ansible, python
Domain
devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.