#362 Ansible setup returns MODULE FAILURE
Closed: Fixed 7 years ago Opened 7 years ago by sayaksarkar.

As per the development guide, I tried to setup the repo using Ansible, as follows:-

$ echo -e "localhost ansible_connection=local" >> /tmp/ansible_inventory
$ ansible-playbook --inventory-file=/tmp/ansible_inventory ansible/vagrant-playbook.yml

And I got:-

TASK [hubs : Install the distribution versions of requirements.txt] 
**************************************
failed: [localhost] (item=[u'python-alembic', u'python-arrow', u'python-bleach', u'python-decorator', u'python-dogpile-cache', u'python-fedmsg-core', u'python-fedmsg-meta-fedora-infrastructure', u'python-flask', u'python-flask-oidc', u'python-fmn-lib', u'python-fmn-rules', u'python-futures', u'python-html5lib', u'python-munch', u'pytz', u'python-sqlalchemy', u'python-markdown', u'python2-pkgwat-api', u'python-six', u'python-pygments', u'python-pygments-markdown-lexer', u'python-retask']) => {"failed": true, "item": ["python-alembic", "python-arrow", "python-bleach", "python-decorator", "python-dogpile-cache", "python-fedmsg-core", "python-fedmsg-meta-fedora-infrastructure", "python-flask", "python-flask-oidc", "python-fmn-lib", "python-fmn-rules", "python-futures", "python-html5lib", "python-munch", "pytz", "python-sqlalchemy", "python-markdown", "python2-pkgwat-api", "python-six", "python-pygments", "python-pygments-markdown-lexer", "python-retask"], "module_stderr": "No handlers could be found for logger \"dnf\"\nTraceback (most recent call last):\n  File \"/tmp/ansible_i0WxzP/ansible_module_dnf.py\", line 493, in <module>\n    main()\n  File \"/tmp/ansible_i0WxzP/ansible_module_dnf.py\", line 489, in main\n    ensure(module, base, params['state'], params['name'])\n  File \"/tmp/ansible_i0WxzP/ansible_module_dnf.py\", line 439, in ensure\n    base.do_transaction()\n  File \"/usr/lib/python2.7/site-packages/dnf/base.py\", line 705, in do_transaction\n    self._trans_error_summary(errstring))\ndnf.exceptions.Error: Transaction check error:\n  file /usr/share/licenses/python-oauth2client/LICENSE from install of python2-oauth2client-4.0.0-2.el7.noarch conflicts with file from package python3-oauth2client-3.0.0-4.fc26.noarch\n  file /usr/share/doc/python-oauth2client/README.md from install of python2-oauth2client-4.0.0-2.el7.noarch conflicts with file from package python3-oauth2client-3.0.0-4.fc26.noarch\n  file /usr/share/doc/python-oauth2client/CHANGELOG.md from install of python2-oauth2client-4.0.0-2.el7.noarch conflicts with file from package python3-oauth2client-3.0.0-4.fc26.noarch\n  file /usr/share/doc/python-oauth2client/CONTRIBUTING.md from install of python2-oauth2client-4.0.0-2.el7.noarch conflicts with file from package python3-oauth2client-3.0.0-4.fc26.noarch\n\nError Summary\n-------------\n\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 0}

@sayaksarkar You can fix the conflict on the host level and then run the Ansible playbook?

Metadata Update from @sayanchowdhury:
- Issue priority set to: High

7 years ago

Metadata Update from @sayanchowdhury:
- Issue close_status updated to: Fixed

7 years ago

Metadata Update from @sayanchowdhury:
- Issue status updated to: Open (was: Closed)

7 years ago

Metadata Update from @sayanchowdhury:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

7 years ago

Log in to comment on this ticket.

Metadata