integration-slave-docker-1000 fails puppet: E: Version '1.12.3-0~jessie' for 'docker-engine' was not found
Closed, ResolvedPublic

Description

Puppet has exploded over night:

Error: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold --force-yes install docker-engine=1.12.3-0~jessie' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Version '1.12.3-0~jessie' for 'docker-engine' was not found
Wrapped exception:
Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold --force-yes install docker-engine=1.12.3-0~jessie' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Version '1.12.3-0~jessie' for 'docker-engine' was not found
Error: /Stage[main]/Docker/Package[docker-engine]/ensure: change from 1.12.4-0~debian-jessie to 1.12.3-0~jessie failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold --force-yes install docker-engine=1.12.3-0~jessie' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Version '1.12.3-0~jessie' for 'docker-engine' was not found

Looks like we are pinning 1.12.3 and apt.wikimedia.org now has 1.12.4.

docker-engine | 1.12.4-0~debian-jessie | http://apt.wikimedia.org/wikimedia/ jessie-wikimedia/thirdparty amd64 Packages

Seems the version is pinned via a hiera variable profile::docker::engine::version?

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 16 2016, 8:39 AM

The instance in Horizon has:

classes:
- role::ci::slave::labs::docker
docker::version: 1.12.3-0~jessie

The puppet role comes from https://gerrit.wikimedia.org/r/#/c/320942/ and does:

include ::docker

So the docker class is invoked with $docker = 1.12.3-0~jessie that is then passed to ensure => .. Since the package got recently updated that fails.

Maybe we should use either one of present or latest?

Mentioned in SAL (#wikimedia-releng) [2016-12-16T10:13:36Z] <hashar> integration-slave-docker-1000 changed docker::version from no more existent '1.12.3-0~jessie' to simply 'present'. Will have to manually upgrade it from now on. T153419

hashar closed this task as Resolved.Dec 16 2016, 10:14 AM
hashar claimed this task.

Changed the version to present for now. If we want auto upgrade we can either switch the version to latest or configure the unattended-upgrades system.