Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin docker-ce-cli version in https://releases.rancher.com/install-docker/<x.y.z>.sh #27161

Closed
axeal opened this issue May 20, 2020 · 6 comments
Closed
Assignees
Labels
internal kind/bug Issues that are defects reported by users or that we know have reached a real release
Milestone

Comments

@axeal
Copy link
Contributor

axeal commented May 20, 2020

What kind of request is this (question/bug/enhancement/feature request):

Bug

Steps to reproduce (least amount of steps as possible):

With the release of Docker CLI v19.03.9 (on 2020-05-19), attempts to use https://releases.rancher.com/install-docker/<x.y.z>.sh to install Docker < 19.03, either manually or as part of node provisioning with a Rancher Node Provider, will result in failure to run docker CLI commands with an error of the format Error response from daemon: client version 1.40 is too new. Maximum supported API version is 1.39. The workaround is to install v19.03, but where this is not an immediate option for a user (due to internal testing requirements), they are prevented from adding new nodes to existing clusters. Pinning a matching version of the docker-ce-cli package to the docker-ce package within the script install-docker script would appear like a possible mitigation of this.

Environment information

@axeal axeal added internal kind/bug Issues that are defects reported by users or that we know have reached a real release labels May 20, 2020
@Kamaradeivanov
Copy link

Kamaradeivanov commented May 20, 2020

Same for me for two of my client ....
I got a shity night to find and fix the issue ....

bashofmann added a commit to bashofmann/install-docker that referenced this issue May 22, 2020
docker-ce-cli was introduced as an additional package and a dependency of docker-ce with 18.09.

Without pinning the newest docker-ce-cli will be installed. Starting with 19.03.9 the docker-ce-cli version does not work anymore with older docer-ce 18.09 versions.

Error message: Error response from daemon: client version 1.40 is too new. Maximum supported API version is 1.39

rancher/rancher#27161
@bashofmann
Copy link
Contributor

The same problem also exists on centos 7 with docker 18.09.

bashofmann added a commit to bashofmann/install-docker that referenced this issue May 22, 2020
… docker-ce version

docker-ce-cli was introduced as an additional package and a dependency of docker-ce with 18.09.

Without pinning the newest docker-ce-cli will be installed. Starting with 19.03.9 the docker-ce-cli version does not work anymore with older docer-ce 18.09 versions.

Error message: Error response from daemon: client version 1.40 is too new. Maximum supported API version is 1.39

rancher/rancher#27161
@superseb
Copy link
Contributor

superseb commented May 22, 2020

This is an upstream issue, see docker/cli#2533. We probably need to pin the versions to work around this issue.

@izaac
Copy link
Contributor

izaac commented May 22, 2020

Reproduced in v2.4-head commit 899dce2 using https://releases.rancher.com/install-docker/18.09.sh

2020/05/22 19:44:12 [INFO] [node-controller-rancher-machine] Error response from daemon: client version 1.40 is too new. Maximum supported API version is 1.39
2020/05/22 19:44:12 [DEBUG] stdout:
2020/05/22 19:44:12 [INFO] [node-controller-rancher-machine]
2020/05/22 19:44:16 [DEBUG] stdout: Error getting SSH command to check if the daemon is up: ssh command error: command: sudo docker version err: exit status 1 output: Client: Docker Engine - Community
2020/05/22 19:44:16 [INFO] [node-controller-rancher-machine] Error getting SSH command to check if the daemon is up: ssh command error: command: sudo docker version err: exit status 1 output: Client: Docker Engine - Community
2020/05/22 19:44:16 [DEBUG] stdout:  Version:           19.03.9
2020/05/22 19:44:16 [INFO] [node-controller-rancher-machine]  Version:           19.03.9
2020/05/22 19:44:16 [DEBUG] stdout:  API version:       1.40
2020/05/22 19:44:16 [INFO] [node-controller-rancher-machine]  API version:       1.40

vincent99 pushed a commit to rancher/install-docker that referenced this issue May 22, 2020
…47)

docker-ce-cli was introduced as an additional package and a dependency of docker-ce with 18.09.

Without pinning the newest docker-ce-cli will be installed. Starting with 19.03.9 the docker-ce-cli version does not work anymore with older docer-ce 18.09 versions.

Error message: Error response from daemon: client version 1.40 is too new. Maximum supported API version is 1.39

rancher/rancher#27161
vincent99 pushed a commit to rancher/install-docker that referenced this issue May 22, 2020
… docker-ce version (#48)

docker-ce-cli was introduced as an additional package and a dependency of docker-ce with 18.09.

Without pinning the newest docker-ce-cli will be installed. Starting with 19.03.9 the docker-ce-cli version does not work anymore with older docer-ce 18.09 versions.

Error message: Error response from daemon: client version 1.40 is too new. Maximum supported API version is 1.39

rancher/rancher#27161
@superseb
Copy link
Contributor

Scripts with pinned versions are now live

@izaac
Copy link
Contributor

izaac commented May 22, 2020

Installations validated:

Docker install URLs used in node templates:

  • 17.03: https://releases.rancher.com/install-docker/17.03.sh
  • 18.06: https://releases.rancher.com/install-docker/18.06.sh
  • 18.09: https://releases.rancher.com/install-docker/18.09.sh
  • 19.03: https://releases.rancher.com/install-docker/19.03.sh

Operating systems I used Ubuntu to check apt installs and CentOS for yum package manager.

  • Docker 17.03 with Ubuntu 16.04
  • Docker 18.06 with Ubuntu 18.04
  • Docker 18.09 with Ubuntu 18.04
  • Docker 19.03 with Ubuntu 18.04
  • Docker 18.06 with CentOS 7
  • Docker 18.09 with CentOS 7
  • Docker 19.03 with CentOS 7

Clusters were provisioned and active in Rancher v2.4-head (05/22/2020) commit 899dce2
Spot checked 18.06 and 18.09 using Ubuntu 18.04 in Rancher v2.3.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal kind/bug Issues that are defects reported by users or that we know have reached a real release
Projects
None yet
Development

No branches or pull requests

8 participants