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

Problem installing docker version "17.03.2~ce-0~ubuntu-xenial" #255

Closed
rauschbit opened this issue Jun 26, 2018 · 0 comments
Closed

Problem installing docker version "17.03.2~ce-0~ubuntu-xenial" #255

rauschbit opened this issue Jun 26, 2018 · 0 comments
Assignees
Milestone

Comments

@rauschbit
Copy link

rauschbit commented Jun 26, 2018

What you expected to happen?

We wanted the following docker-ce version to get installed on the defined nodes for our kubernetes environment.
-> 17.03.2~ce-0~ubuntu-xenial

The recommended Docker version for Kubernetes v1.10 is 17.03.x
-> https://kubernetes.io/docs/imported/release/notes/#external-dependencies

What happened?

After applying the module to the corresponding node we got an error shown in the log messages below.

How to reproduce it?

You can reproduce it any time using the docker-ce version as written above.

Anything else we need to know?

The problem is the regex in the init.pp of the docker module
-> https://github.com/puppetlabs/puppetlabs-docker/blob/master/manifests/init.pp

if ( $version == undef ) or ( $version !~ /^(17[.]0[0-5][.]\d(~|-|\.)ce|1.\d+)/ ) {

This regex matches the version we want to install and takes the else to the "docker-engine" installation.
So the wrong apt-repository (apt.dockerproject.org) gets configured + the wrong package (docker-engine) will be tried to get installed with a version which doesn't exist for this package.

Versions:

$ puppet --version
4.10.12

$ docker version
-> we wanted to install this version -> 17.03.2~ce-0~ubuntu-xenial

$ facter os
{
  architecture => "amd64",
  distro => {
    codename => "xenial",
    description => "Ubuntu 16.04.4 LTS",
    id => "Ubuntu",
    release => {
      full => "16.04",
      major => "16.04"
    }
  },
  family => "Debian",
  hardware => "x86_64",
  name => "Ubuntu",
  release => {
    full => "16.04",
    major => "16.04"
  },
  selinux => {
    enabled => false
  }
}

$ puppetlabs-docker version
1.1.0

Logs:

Jun 26 09:04:59 test123 puppet-agent[11071]: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold --force-yes install docker-engine=17.03.2~ce-0~ubuntu-xenial' returned 100: Reading package lists...
Jun 26 09:04:59 test123 puppet-agent[11071]: Building dependency tree...
Jun 26 09:04:59 test123 puppet-agent[11071]: Reading state information...
Jun 26 09:04:59 test123 puppet-agent[11071]: E: Version '17.03.2~ce-0~ubuntu-xenial' for 'docker-engine' was not found
Jun 26 09:04:59 test123 puppet-agent[11071]: (/Stage[main]/Docker::Install/Package[docker]/ensure) change from purged to 17.03.2~ce-0~ubuntu-xenial failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold --force-yes install docker-engine=17.03.2~ce-0~ubuntu-xenial' returned 100: Reading package lists...
Jun 26 09:04:59 test123 puppet-agent[11071]: (/Stage[main]/Docker::Install/Package[docker]/ensure) Building dependency tree...
Jun 26 09:04:59 test123 puppet-agent[11071]: (/Stage[main]/Docker::Install/Package[docker]/ensure) Reading state information...
Jun 26 09:04:59 test123 puppet-agent[11071]: (/Stage[main]/Docker::Install/Package[docker]/ensure) E: Version '17.03.2~ce-0~ubuntu-xenial' for 'docker-engine' was not found
@davejrt davejrt self-assigned this Jun 28, 2018
@davejrt davejrt added the bug label Jun 28, 2018
@MWilsonPuppet MWilsonPuppet added this to the V2.0.0 milestone Jul 17, 2018
davejrt pushed a commit that referenced this issue Jul 22, 2018
@davejrt davejrt mentioned this issue Jul 22, 2018
MWilsonPuppet pushed a commit that referenced this issue Jul 24, 2018
* fixes issue #255

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

No branches or pull requests

3 participants