anadimisra / vagrant-toolchains

Reusable Vagrant-based environments for demonstrations.
MIT License
0 stars 0 forks source link

Jenkins AWS: Provisioning fails with code that works for Virtualbox #6

Closed vishagilityroots closed 6 years ago

vishagilityroots commented 6 years ago
    amazon-ebs: Error: /Stage[main]/Docker/Package[linux-image-extra-4.4.0-1041-aws]/ensure: change from purged to latest failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install linux-image-extra-4.4.0-1041-aws' returned 100: Reading package lists...
    amazon-ebs: Building dependency tree...

The main reason is that Puppet code is written as linux-image-extra-$kernelrelease - this resolves to 4.4.0-1041-aws on AWS Ubuntu instances; therefore, a package is tried to be installed that does not exist.

Recent versions of Docker installation do not require this package: https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/#extra-steps-for-aufs

So we can ignore installing the package.