dib fails when using custom apt-sources
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
diskimage-builder |
Fix Released
|
Undecided
|
Oded Le'Sage |
Bug Description
When trying to use an internal/custom debian package repo by using apt-sources element, DIB fails if a package is installed right after the repo key is added.
disk-image-create --version
2.14.2
========
To reproduce (assumes tripleo-
.
|-- diskimage-builder
`-- tripleo-
========
export DIB_APT_
export DIB_ADD_
export ELEMENTS_
disk-image-create ubuntu vm apt-sources os-collect-config
========
Relevant log entries
========
2018-05-01 20:58:33.347 | dib-run-parts Running /tmp/in_
2018-05-01 20:58:33.442 | OK
2018-05-01 20:58:33.443 | dib-run-parts 02-add-apt-keys completed
2018-05-01 20:58:33.443 | dib-run-parts Running /tmp/in_
2018-05-01 20:58:33.561 | Map install for svc-map: PyYAML
2018-05-01 20:58:33.561 | Map install for epel: wget, yum-utils
2018-05-01 20:58:33.561 | Running command: ['install-
2018-05-01 20:58:33.561 | > Reading package lists...
2018-05-01 20:58:33.561 | > Building dependency tree...
2018-05-01 20:58:33.561 | > Reading state information...
2018-05-01 20:58:33.562 | > E: Unable to locate package python-yaml
2018-05-01 20:58:33.562 | returncode: 100
2018-05-01 20:58:33.562 | install-packages failed with returncode 100
2018-05-01 20:58:33.804 | INFO diskimage_
========
Summary
========
os-collect config tries to install the deb package for PyYAML, but since an apt-get update hasn't been performed after adding the apt key, it cannot locate the package. While I came across this with os-collect-config it could be any package. The dpkg element doesn't apt update until 99-apt-get-update
Changed in diskimage-builder: | |
assignee: | nobody → Oded Le'Sage (ol7435) |
Fix proposed to branch: master /review. openstack. org/565599
Review: https:/