lae / ansible-role-travis-lxc

Ansible role that prepares a Travis CI environment and creates LXC containers for testing roles.
MIT License
4 stars 2 forks source link

Intermittent miss on libapt-pkg-dev install #33

Closed lae closed 5 years ago

lae commented 6 years ago

The commits to fix #28 involved pinning libapt-pkg-dev. For some reason this package is sometimes "not found" in some runs (and is when restarted). Maybe a cache update is needed?

https://github.com/lae/ansible-role-travis-lxc/blob/v0.7.3/tasks/travis_packaging_setup.yml#L8

lae commented 6 years ago
TASK [lae.travis-lxc : Install libapt-pkg-dev as build dependency for python-apt] ***
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["apt-get", "install", "-y", "libapt-pkg-dev=1.2.10"], "delta": "0:00:00.432268", "end": "2018-05-08 10:14:15.863744", "msg": "non-zero return code", "rc": 100, "start": "2018-05-08 10:14:15.431476", "stderr": "E: Version '1.2.10' for 'libapt-pkg-dev' was not found", "stderr_lines": ["E: Version '1.2.10' for 'libapt-pkg-dev' was not found"], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information..."]}
lae commented 5 years ago

fixable by adding retries probably