Description of problem: After introduction of docker-python into RHEL7 and retiring python-docker-py from EPEL the ansible docker module fails with: [root@mime docker-ansible]# ansible-playbook /etc/docker-ansible/graphite.playbook --extra-vars "state=started" PLAY [localhost] ************************************************************** GATHERING FACTS *************************************************************** ok: [localhost] TASK: [Graphite gunicorn] ***************************************************** failed: [localhost] => {"failed": true, "parsed": false} Traceback (most recent call last): File "/root/.ansible/tmp/ansible-tmp-1438932912.25-255506252707906/docker", line 3132, in <module> main() File "/root/.ansible/tmp/ansible-tmp-1438932912.25-255506252707906/docker", line 1464, in main check_dependencies(module) File "/root/.ansible/tmp/ansible-tmp-1438932912.25-255506252707906/docker", line 482, in check_dependencies versioninfo = get_docker_py_versioninfo() File "/root/.ansible/tmp/ansible-tmp-1438932912.25-255506252707906/docker", line 458, in get_docker_py_versioninfo version.append(int(digit)) ValueError: invalid literal for int() with base 10: '0-de' FATAL: all hosts have already failed -- aborting PLAY RECAP ******************************************************************** to retry, use: --limit @/root/graphite.playbook.retry localhost : ok=1 changed=0 unreachable=0 failed=1 [root@mime docker-ansible]# Version-Release number of selected component (if applicable): How reproducible: Consistent Steps to Reproduce: 1. Replace python-docker-py from EPEL with docker-python 2. Run an ansible playbook that uses the docker module Actual results: Ansible module fails with type mismatch as it expects integer values from get_docker_py_versioninfo but get strings too since the version of docker-python shipped with RHEL7 (from pythons perspective) is 1.4.0-dev Expected results: An ansible docker module that can handle apperance of strings the docker-python Additional info:
I ran into this same situation. I tried modifying /usr/lib/python2.7/site-packages/docker/version.py to take out the "-dev" and got past this error (and on to the next one). Is there a work-around in ansible for this? Seems this is a show-stopper unless there is some easy way to work around it.
You can work around it by replacing docker-python with this in the playbook. tasks: - name: Installed packages yum: name={{item}} state=present with_items: - docker - python-pip - name: Absent packages yum: name={{item}} state=absent with_items: - docker-python - python-docker-py - name: Python modules pip: name=docker-py version=1.2.3 Pinning to version 1.2.3 apparently also avoid some other issues with docker.py in recent versions.
This is (I think) fixed in 1.9.3, which just had a rc1 come out last week. Hopefully the final 1.9.3 will be out tomorrow and I can push that out.
ansible-1.9.3-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-15047
ansible-1.9.3-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-15048
ansible-1.9.3-1.fc21 has been submitted as an update to Fedora 21. https://bodhi.fedoraproject.org/updates/FEDORA-2015-15049
ansible-1.9.3-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-7924
ansible-1.9.3-1.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-7925
ansible-1.9.3-1.fc21 has been pushed to the Fedora 21 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update ansible'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15049
ansible-1.9.3-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update ansible'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15048
ansible-1.9.3-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update ansible'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15047
ansible-1.9.3-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update ansible'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-7924
ansible-1.9.3-1.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update ansible'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-7925
ansible-1.9.3-2.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-7997
ansible-1.9.3-2.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-15368
ansible-1.9.3-2.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-15369
ansible-1.9.3-2.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-7998
ansible-1.9.3-2.fc21 has been submitted as an update to Fedora 21. https://bodhi.fedoraproject.org/updates/FEDORA-2015-15370
ansible-1.9.3-2.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update ansible'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15368
ansible-1.9.3-2.fc21 has been pushed to the Fedora 21 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update ansible'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15370
ansible-1.9.3-2.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update ansible'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15369
ansible-1.9.3-2.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update ansible'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-7998
ansible-1.9.3-2.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update ansible'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-7997
ansible-1.9.3-2.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
ansible-1.9.3-2.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
ansible-1.9.3-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
ansible-1.9.3-3.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-ba9b7739ee
ansible-1.9.3-3.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-fd299a6f9f
ansible-1.9.3-3.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'yum --enablerepo=epel-testing update ansible' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-ba9b7739ee
ansible-1.9.3-3.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'yum --enablerepo=epel-testing update ansible' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-fd299a6f9f
ansible-1.9.4-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-0d49710dc2
ansible-1.9.4-1.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-1ba9b07c1e
ansible-1.9.4-1.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'yum --enablerepo=epel-testing update ansible' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-1ba9b07c1e
ansible-1.9.4-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'yum --enablerepo=epel-testing update ansible' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-0d49710dc2
ansible-1.9.4-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
ansible-1.9.4-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.