molecule: molecule test default role - ERROR! Unexpected Exception, this is probably a bug: 'module' object has no attribute 'SSL_ST_INIT'

Issue Type

  • Bug report

Molecule and Ansible details

> ansible --version
ansible 2.5.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/ash/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]

> molecule --version
molecule, version 2.1.0
  • Molecule installation method: pip
  • Ansible installation method: from sources on devel branch.

Desired Behaviour

I expected the default generator to succeed.

Actual Behaviour (Bug report only)

In order to reproduce, run these bash commands:

molecule init role --role-name foo
cd foo
molecule test

The error I have is:

--> Initializing new role foo...
Initialized role in /home/ash/foo successfully.
--> Test matrix
    
└── default
    ├── destroy
    ├── dependency
    ├── syntax
    ├── create
    ├── converge
    ├── idempotence
    ├── lint
    ├── side_effect
    ├── verify
    └── destroy
--> Scenario: 'default'
--> Action: 'destroy'
ERROR! Unexpected Exception, this is probably a bug: 'module' object has no attribute 'SSL_ST_INIT'
    to see the full traceback, use -vvv
ERROR: 

Maybe this is due to the ansible version?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 21 (9 by maintainers)

Most upvoted comments

Run molecule --debug test to see why.

Should really invest in some virtualenv usage. 😃