debian DIB_EXTLINUX=1 builds fail: Missing package name for distro/element: debian/base

Bug #1534387 reported by Adam Gandelman
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
diskimage-builder
Fix Released
Undecided
Unassigned

Bug Description

Started hitting at http://logs.openstack.org/49/267849/1/check/gate-functional-dsvm-astara-appliance-src/397ee42/logs/devstacklog.txt.gz

Build fails in bootloader phase /w DIB_EXTLINUX=1 /w debian element:

2016-01-14 23:51:57.919 | tune2fs 1.42.9 (4-Feb-2014)
2016-01-14 23:52:03.974 | dib-run-parts Thu Jan 14 23:52:03 UTC 2016 Running /tmp/in_target.d/finalise.d/50-bootloader
2016-01-14 23:52:03.979 | + set -eu
2016-01-14 23:52:03.979 | + set -o pipefail
2016-01-14 23:52:03.979 | + '[' -n /dev/loop4p1 ']'
2016-01-14 23:52:03.979 | + PART_DEV=/dev/loop4p1
2016-01-14 23:52:03.979 | + [[ amd64 =~ ppc ]]
2016-01-14 23:52:03.980 | ++ echo /dev/loop4p1
2016-01-14 23:52:03.984 | ++ sed -e s#mapper/##
2016-01-14 23:52:03.985 | ++ sed -e s#p1##
2016-01-14 23:52:03.989 | + BOOT_DEV=/dev/loop4
2016-01-14 23:52:03.990 | + DIB_EXTLINUX=1
2016-01-14 23:52:03.990 | + '[' 1 '!=' 0 ']'
2016-01-14 23:52:03.990 | + install_extlinux
2016-01-14 23:52:03.990 | + install-packages -m base extlinux
2016-01-14 23:52:04.042 | Missing package name for distro/element: debian/base
2016-01-14 23:52:04.045 | bin/pkg-map error.
2016-01-14 23:52:04.441 | /tmp/image.xxvGNPQ0/mnt
2016-01-14 23:52:04.441 | /tmp/image.xxvGNPQ0/mnt/proc

Looks like https://review.openstack.org/#/c/263349/14/elements/bootloader/finalise.d/50-bootloader might have forgotten to account for defaults in the package map, and was released with 1.7.0

Revision history for this message
Adam Gandelman (gandelman-a) wrote :

addressed by https://review.openstack.org/#/c/267271/ just needs a release

Revision history for this message
Adam Gandelman (gandelman-a) wrote :

This was fixed in 1.7.1

Changed in diskimage-builder:
status: New → Fix Released
Revision history for this message
Abel Lopez (al592b) wrote :

This is also affecting RHEL

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to diskimage-builder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/268318

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to diskimage-builder (master)

Reviewed: https://review.openstack.org/268318
Committed: https://git.openstack.org/cgit/openstack/diskimage-builder/commit/?id=fe6e78147be481e2fc622b243c8e4386df8bd1a0
Submitter: Jenkins
Branch: master

commit fe6e78147be481e2fc622b243c8e4386df8bd1a0
Author: Abel Lopez <email address hidden>
Date: Fri Jan 15 12:06:16 2016 -0800

    Add pkg-map for redhat

    The bootloader element lacks the mapping for grub-pc and extlinux
    This adds it.

    Change-Id: Ic7b82903f02faaab143d2bd682876bf4853fd90d
    Closes-Bug: 1534387

Revision history for this message
Marcin Lewandowski (mlewandowski) wrote :

Not sure if this specific change is the root cause, but grub2 and grub2-tools are not available on RHEL 6. Trying to build RHEL 6 images with diskimage-builder fails because of those packages missing. I'm not much into diskimage-builder development yet, so do you know if there is a way to customize the package list based on the release version? (DIB_RELEASE?)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.