I am facing "An error occurred during the test sequence action: 'verify'. Cleaning up" error when i hit "molecule test"

192 views
Skip to first unread message

murari_kumar

unread,
Apr 6, 2020, 8:12:30 AM4/6/20
to Ansible Project
Hi,

When i run a molecule test on my ansible roles i am facing the following error on all of them.

DEBUG: COMMAND
/bin/py.test --debug -p no:cacheprovider --connection=ansible --ansible-inventory=/tmp/molecule/devp/default/inventory/ansible_inventory.yml /var/roles/devp/molecule/default/tests/test_default.py -vvv

writing pytestdebug information to /var/roles/devp/molecule/default/pytestdebug.log
    ============================= test session starts ==============================
    platform linux2 -- Python 2.7.5, pytest-4.6.0, py-1.8.1, pluggy-0.13.1 -- /usr/bin/python2
    using: pytest-4.6.0 pylib-1.8.1
    setuptools registered plugins:
      testinfra-1.19.0 at /usr/lib/python2.7/site-packages/testinfra/plugin.py
    rootdir: /var/roles/devp/molecule/default
    plugins: testinfra-1.19.0
collected 0 items / 1 errors                                                  
   
    ==================================== ERRORS ====================================
    ____________________ ERROR collecting tests/test_default.py ____________________
    tests/test_default.py:6: in <module>
        os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
    /usr/lib/python2.7/site-packages/testinfra/utils/ansible_runner.py:152: in __init__
        self.cli = ansible.cli.playbook.PlaybookCLI(None)
    /usr/lib/python2.7/site-packages/ansible/cli/__init__.py:67: in __init__
        raise ValueError('A non-empty list for args is required')
    E   ValueError: A non-empty list for args is required
    !!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!
    =========================== 1 error in 0.50 seconds ============================
wrote pytestdebug information to /var/roles/devp/molecule/default/pytestdebug.log
An error occurred during the test sequence action: 'verify'. Cleaning up.


Can anyone give some inputs on this.

murari_kumar

unread,
Apr 7, 2020, 1:44:38 AM4/7/20
to Ansible Project
After upgrading to testinfra-3.0.4 from testinfra 1.19.0 issue got resolved.

Found existing installation: testinfra 1.19.0
    Uninstalling testinfra-1.19.0:
      Successfully uninstalled testinfra-1.19.0
Successfully installed testinfra-3.0.4

Reply all
Reply to author
Forward
0 new messages