question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The Podman driver crashes

See original GitHub issue

Issue Type

  • Bug report
ansible 2.8.1
  config file = None
  configured module search path = ['/home/<user_name>/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/<user_name>/Python-virtualenv/ansible-2.8.1/lib/python3.7/site-packages/ansible
  executable location = /home/<user_name>/Python-virtualenv/ansible-2.8.1/bin/ansible
  python version = 3.7.3 (default, May 11 2019, 00:38:04) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)]

molecule, version 2.22rc3

Molecule installation method (one of):

  • pip

Ansible installation method (one of):

  • pip

Detail any linters or test runners used:

Desired Behavior

The command molecule test will be executed successfully when the driver is set to podman.

Actual Behaviour

The molecule.yml file content

---
dependency:
  name: galaxy
driver:
  name: podman
lint:
  name: yamllint
  options:
    config-file: molecule/default/yaml-lint.yml
platforms:
  - name: instance
    image: "geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible:latest"
    pull: true
    command: ${MOLECULE_DOCKER_COMMAND:-""}
    volumes:
      - /sys/fs/cgroup:/sys/fs/cgroup:ro
    privileged: true
    pre_build_image: true
provisioner:
  name: ansible
  lint:
    name: ansible-lint
  playbooks:
    converge: ${MOLECULE_PLAYBOOK:-playbook.yml}
scenario:
  name: default
verifier:
  name: testinfra
  lint:
    name: flake8

The executed command

MOLECULE_NO_LOG=no molecule --debug test

The partial output

TASK [Build an Ansible compatible image] ***************************************
    task path: /home/<user_name>/Python-virtualenv/ansible-2.8.1/lib/python3.7/site-packages/molecule/provisioner/ansible/playbooks/podman/create.yml:40
    fatal: [localhost]: FAILED! => {
        "msg": "The conditional check 'platforms.changed or podman_images.results | map(attribute='images') | select('equalto', []) | list | count >= 0' failed. The error was: error while evaluating conditional (platforms.changed or podman_images.results | map(attribute='images') | select('equalto', []) | list | count >= 0): 'dict object' has no attribute 'images'\n\nThe error appears to be in '/home/<user_name>/Python-virtualenv/ansible-2.8.1/lib/python3.7/site-packages/molecule/provisioner/ansible/playbooks/podman/create.yml': line 40, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n    - name: Build an Ansible compatible image\n      ^ here\n"
    }

The full output available as the gist.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
decentral1secommented, Jul 8, 2019

🚀

0reactions
it-praktykcommented, Jul 8, 2019

@sshnaidm, thank you for your answer.

I’ve installed Ansible and Molecule directly from the GitHub repositories.

<user_name>% ansible --version                       
ansible 2.9.0.dev0
  config file = None
  configured module search path = ['/home/<user_name>/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/<user_name>/Python-virtualenv/ansible-2.9.0-dev/src/ansible/lib/ansible
  executable location = /home/<user_name>/Python-virtualenv/ansible-2.9.0-dev/bin/ansible
  python version = 3.7.3 (default, May 11 2019, 00:38:04) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)]

<user_name>% molecule --version
molecule, version 2.22rc4.dev11+gba351aaf

and tests are performed successfully.

With Ansible 2.8.2 tests fail - the gist attached.

The issue can be closed now. Thank you for your work and support!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Podman driver crashes after timeout and volume recreate
It is almost working, but there is an arbitrary 13 second timeout on start (for some reason). Then it tries to delete the...
Read more >
how crash a Podman container
1m30s java -ea -server -Dfile. Now entered into container sudo podman exec -it admin bash and kill -9 1 or 34 do nothing....
Read more >
Podman - Minikube - Kubernetes
The podman driver is an alternative container runtime to the Docker driver. Requirements. Install podman. Experimental. This is an experimental ...
Read more >
podman-build
In certain situations, when the podman build crashes or users kill the podman build process, these external containers can be left in container...
Read more >
Nomad - ArchWiki - Arch Linux
Enable the driver in the client configuration, then reload nomad.service . /etc/nomad.d/podman.hcl plugin "nomad-driver-podman" { config { # ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found