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

The molecule with docker driver doesn't work with requests lib => 32.x.x #4189

Closed
7 tasks done
arpanrec opened this issue May 29, 2024 · 1 comment
Closed
7 tasks done
Labels

Comments

@arpanrec
Copy link

arpanrec commented May 29, 2024

Prerequisites

  • This was not already reported in the past (duplicate check)
  • It does reproduce it with code from main branch (latest unreleased version)
  • I include a minimal example for reproducing the bug
  • The bug is not trivial, as for those a direct pull-request is preferred
  • Running pip check does not report any conflicts
  • I was able to reproduce the issue on a different machine
  • The issue is not specific to any driver other than 'default' one

Environment

molecule 24.2.2.dev15 using python 3.12
ansible:2.16.7
azure:23.5.3 from molecule_plugins
containers:23.5.3 from molecule_plugins requiring collections: ansible.posix>=1.3.0 community.docker>=1.9.1 containers.podman>=1.8.1
default:24.2.2.dev15 from molecule
docker:23.5.3 from molecule_plugins requiring collections: community.docker>=3.4.11 ansible.posix>=1.4.0
ec2:23.5.3 from molecule_plugins
gce:23.5.3 from molecule_plugins requiring collections: google.cloud>=1.0.2 community.crypto>=1.8.0
openstack:23.5.3 from molecule_plugins requiring collections: openstack.cloud>=2.1.0
podman:23.5.3 from molecule_plugins requiring collections: containers.podman>=1.7.0 ansible.posix>=1.3.0
vagrant:23.5.3 from molecule_plugins

What happened

The molecule with docker driver doesn't work with requests lib => 32.x.x

make sure requests lib is requests = "2.31.0" molecule = "24.2.1" molecule-plugins = "23.5.3" docker = "7.0.0"

molecule -v test -s role.dotfiles.default
DEBUG    Validating schema /home/arpan/workspace/arpanrec.nebula/molecule/role.dotfiles.default/molecule.yml.
WARNING  Driver docker does not provide a schema.
INFO     role.dotfiles.default scenario test matrix: syntax, destroy, dependency, create, converge, idempotence, destroy
INFO     Performing prerun with role_name_check=0...
INFO     Running role.dotfiles.default > syntax
INFO     Sanity checks: 'docker'
CRITICAL Unable to contact the Docker daemon. Please refer to https://docs.docker.com/config/daemon/ for managing the daemon
WARNING  An error occurred during the test sequence action: 'syntax'. Cleaning up.
INFO     Running role.dotfiles.default > cleanup
WARNING  Skipping, cleanup playbook not configured.
INFO     Running role.dotfiles.default > destroy
INFO     Sanity checks: 'docker'
CRITICAL Unable to contact the Docker daemon. Please refer to https://docs.docker.com/config/daemon/ for managing the daemon

Reproducing example

make sure requests lib is `requests = "2.31.0"` `molecule = "24.2.1"` `molecule-plugins = "23.5.3"` `docker = "7.0.0"`

Please make sure that the user is in the docker group and Molecule drive is set to docker.

Tested with 
pip install git+https://github.com/ansible-community/molecule-plugins.git
pip install git+https://github.com/ansible/molecule.git

Reproducible with molecule 24.2.1
@arpanrec arpanrec added the new label May 29, 2024
@arpanrec arpanrec changed the title Molecule docker driver error with: Unable to contact the Docker daemon. The molecule with docker driver doesn't work with requests lib => 32.x.x May 29, 2024
@arpanrec
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

1 participant