Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

docker module: incompatible with docker-py 1.2.x #1227

Closed
sivel opened this issue Apr 29, 2015 · 9 comments
Closed

docker module: incompatible with docker-py 1.2.x #1227

sivel opened this issue Apr 29, 2015 · 9 comments

Comments

@sivel
Copy link
Member

sivel commented Apr 29, 2015

docker-py recently moved their constants in a backwards incompatible way in v1.2.x

Previously we accessed docker.client.DEFAULT_DOCKER_API_VERSION

That constant is now available at docker.client.constants.DEFAULT_DOCKER_API_VERSION

See docker/docker-py#570 for the relevant change.

We will need to update reference of this constant.

cc @smashwilson @abadger

@TrustNoOne
Copy link

👍
N.b.: this bug is not related only to the constant change!
even if I manually specify the api version, authentication doesn't work anymore!
just tried: same exact config I had before + docker_api_version: "1.18", if I update the docker host to docker-py 1.2.1 I get this instead of success:

failed: [192.168.33.10] => {"changes": ["{\"status\":\"Pulling repository ***"}\r\n", "{\"errorDetail\":{\"message\":\"Authentication is required.\"},\"error\":\"Authentication is required.\"}\r\n"], "failed": true, "status": ""} msg: Unrecognized status from pull.

I'm using registry v2, and docker-py 1.2 has some changes for registry v2 so it might be related to that

@settinghead
Copy link

+1

1 similar comment
@Evilcry
Copy link

Evilcry commented Apr 30, 2015

+1

@N3mes1s
Copy link

N3mes1s commented Apr 30, 2015

yeah +1

@RamonBeast
Copy link

+1

@daniilyar
Copy link

+1, switching to previous docker-py version (1.1.0) fixed the problem for me

@abadger
Copy link
Contributor

abadger commented Apr 30, 2015

Fixed the change in location for constants.

@TrustNoOne Could you open a separate ticket for your issue (assuming that it's still a problem)? That seems to be a different 1.2.x problem.

Closing This Ticket

Hi!

We believe recent commits (likely detailed above) should resolve this question or problem for you.

This will also be included in the next major release.

If you continue seeing any problems related to this issue, or if you have any further questions, please let us know by stopping by one of the two mailing lists, as appropriate:

Because this project is very active, we're unlikely to see comments made on closed tickets, but the mailing list is a great way to ask questions, or post if you don't think this particular
issue is resolved.

Thank you!

abadger added a commit that referenced this issue Apr 30, 2015
dochang added a commit to dochang/mole that referenced this issue Jun 7, 2015
dochang added a commit to dochang/mole that referenced this issue Jun 7, 2015
joustava added a commit to joustava/ansible-vagrant-examples that referenced this issue Jun 9, 2015
bbaumer pushed a commit to bbaumer/ansible-modules-core that referenced this issue Jun 29, 2015
bbaumer pushed a commit to bbaumer/ansible-modules-core that referenced this issue Jun 29, 2015
@memelet
Copy link

memelet commented Jul 21, 2015

Did this go into 1.9.2, or do we wait for 2.x?

@TrustNoOne
Copy link

It did go into 1.9.2, but now docker-py 1.3 is incompatible with ansible 1.9.2... It looks like docker-py is always ahead :D

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants