Description of problem: A change introduced with one of the last rebase of diskimage-builder (between 1.5 and 1.10/1.11) broke support for building RHEL6 images. The new bootloader element, which is used by the rhel element, tries to install grub2, not available in RHEL6. This was caused most likely by the refactoring of the vm and the split of the bootstrap element. See also: https://bugs.launchpad.net/diskimage-builder/+bug/1534387 The execution terminates with: dib-run-parts Fri May 27 14:06:06 EDT 2016 Running /tmp/in_target.d/finalise.d/50-bootloader + set -eu + set -o pipefail + '[' -n /dev/loop0p1 ']' + PART_DEV=/dev/loop0p1 + [[ amd64 =~ ppc ]] ++ echo /dev/loop0p1 ++ sed -e s#p1## ++ sed -e s#mapper/## + BOOT_DEV=/dev/loop0 + DIB_EXTLINUX=0 + '[' 0 '!=' 0 ']' + install_grub2 + '[' -f /tmp/grub/install ']' + [[ amd64 =~ ppc ]] + install-packages -m bootloader grub-pc Error: Nothing to do Workaround: set DIB_EXTLINUX=1. This is a blocker for sahara-image-elements, as the supported plugins HDP 2.0.6 and CDH 5.4 work only on RHEL6. The workaround could be applied there, but it should be probably fixed for all users. Version-Release number of selected component (if applicable): dib-utils-0.0.9-1.el7ost.noarch diskimage-builder-1.11.1-1.el7ost.noarch sahara-image-elements-3.0.0-3.el7ost.noarch
what are the steps to reproduce this issue? what version of diskimage-builder is being used?
It is (In reply to James Slagle from comment #1) > what are the steps to reproduce this issue? what version of > diskimage-builder is being used? (In reply to Luigi Toscano from comment #0) > Version-Release number of selected component (if applicable): > dib-utils-0.0.9-1.el7ost.noarch > diskimage-builder-1.11.1-1.el7ost.noarch > sahara-image-elements-3.0.0-3.el7ost.noarch See also the referenced bug.
RHEL6 is quite old at this point, I'd suggest updating the sahara elements to build on top of a RHEL7 base image
RHEL6 is old, but RH-OSP 8 is still supported. Anyway, for the record, we enabled the workaround in the wrapper script exposed to the users, by setting export DIB_EXTLINUX=1 Same for RH-OSP 9; in RH-OSP 10 we managed to migrate all supported images to RHEL 7 (thanks also to the support of the plugins from the providers).