ansible-coreos-bootstrap icon indicating copy to clipboard operation
ansible-coreos-bootstrap copied to clipboard

Problem with install docker-py missing libssl, libcrypto

Open abtris opened this issue 9 years ago • 12 comments

core@ip-local ~ $ ./bin/pip install docker-py
/home/core/pypy/bin/pypy: /lib64/libssl.so.1.0.0: no version information available (required by /home/core/pypy/bin/pypy)
/home/core/pypy/bin/pypy: /lib64/libcrypto.so.1.0.0: no version information available (required by /home/core/pypy/bin/pypy)
Collecting docker-py
  Could not find any downloads that satisfy the requirement docker-py
  No distributions at all found for docker-py

but

ls /lib64/libssl.so* -l
lrwxrwxrwx 1 root root     15 Feb  5 02:53 /lib64/libssl.so -> libssl.so.1.0.0
-r-xr-xr-x 1 root root 454304 Feb  5 01:31 /lib64/libssl.so.1.0.0

Any idea how solve this problem?

abtris avatar Mar 04 '15 09:03 abtris

I can install adding --trusted-host pypi.python.org but it's only hotfix.

abtris avatar Mar 04 '15 09:03 abtris

I'm seeing pretty much the same thing. This is on CoreOS 607. On older versions it works fine.

vidarh avatar Apr 01 '15 12:04 vidarh

Same :disappointed:

brandonweiss avatar May 19 '15 17:05 brandonweiss

Actually, mine might be different. It looks like docker-py is installing alright, but the next task is to run a docker container and I get:

failed: [192.241.211.202] => {"failed": true, "parsed": false}
/home/core/pypy/bin/pypy: /lib64/libssl.so.1.0.0: no version information available (required by /home/core/pypy/bin/pypy)
/home/core/pypy/bin/pypy: /lib64/libcrypto.so.1.0.0: no version information available (required by /home/core/pypy/bin/pypy)
Traceback (most recent call last):
  File "app_main.py", line 75, in run_toplevel
  File "/home/core/.ansible/tmp/ansible-tmp-1432055966.4-128553307475551/docker", line 3110, in <module>
    main()
  File "/home/core/.ansible/tmp/ansible-tmp-1432055966.4-128553307475551/docker", line 1449, in main
    manager = DockerManager(module)
  File "/home/core/.ansible/tmp/ansible-tmp-1432055966.4-128553307475551/docker", line 558, in __init__
    docker_api_version=docker.client.DEFAULT_DOCKER_API_VERSION
AttributeError: 'module' object has no attribute 'DEFAULT_DOCKER_API_VERSION'
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /Users/brandon/.ssh/config
debug1: /Users/brandon/.ssh/config line 11: Applying options for *
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: /etc/ssh_config line 102: Applying options for *
debug1: auto-mux: Trying existing master
debug1: mux_client_request_session: master session id: 2
Shared connection to 192.241.211.202 closed.

Sorry, I'm totally new to Ansible and Docker. Is this also an issue with libssl and libcrypto?

brandonweiss avatar May 19 '15 17:05 brandonweiss

Nevermind, I just figured out I'd installed a newer, incompatible version of docker-py. Sorry!

brandonweiss avatar May 19 '15 17:05 brandonweiss

I have the same issue on CoreOS 681.2.0. What version worked for you @brandonweiss ?

vse avatar Jun 24 '15 18:06 vse

@vse I used 1.1.0.

brandonweiss avatar Jun 24 '15 19:06 brandonweiss

I'm still getting this issue... @brandonweiss, can you tell me what kind of tasks I have to run to get it to work? I'm running

- name: Install docker-py
  pip: name=docker-py version=1.1.0 executable=/home/core/pypy/bin/pip

- name: Start stack
  docker:
    image="nginx"
    name="example-nginx"
    ports="8080:80"
    state=running

and that's where it breaks with the error messages desribed above...

cloudlena avatar Jun 13 '16 20:06 cloudlena

Sorry, I stopped using Ansible completely—maybe the core of Ansible is really good, but every single module I tried to use was an absolute shit-show of bugs and non-existent documentation. I switched to using CoreOS's Fleet.

brandonweiss avatar Jun 13 '16 20:06 brandonweiss

ok, thanks for the update

cloudlena avatar Jun 13 '16 20:06 cloudlena

I've got it working now with the docker (https://docs.ansible.com/ansible/docker_module.html) module of Ansible. Unfortunately, the docker_service (https://docs.ansible.com/ansible/docker_service_module.html) one still throws the above error... @defunctzombie, do you have any advice?

cloudlena avatar Jun 13 '16 21:06 cloudlena

Nevermind, I got it to work by simply installing Docker Compose using Pip:

- name: Start etcd
  service: name=etcd.service state=started

- name: Install docker-py
  pip: name=docker-py executable=/home/core/pypy/bin/pip

- name: Install docker-compose
  pip: name=docker-compose executable=/home/core/pypy/bin/pip

cloudlena avatar Jun 13 '16 21:06 cloudlena