Created attachment 1234817 [details] tee output Description of problem: Trying to build sahara images based on rhel7. Following the instructions found here: https://access.redhat.com/documentation/en/red-hat-openstack-platform/10/paged/%e2%81%a0openstack-data-processing/ Getting error: sahara-image-create -p mapr -x | tee sahara-build-image.log .... dib-run-parts Thu Dec 22 10:10:52 EST 2016 Running /tmp/in_target.d/post-install.d/30-disable-firewalld + set -eu + set -o pipefail + case "${DISTRO_NAME}" in + which systemctl /usr/bin/systemctl + systemctl disable firewalld Operation failed: No such file or directory ++ /usr/share/diskimage-builder/lib/img-functions:run_in_target:66 : check_break after-error run_in_target bash ++ /usr/share/diskimage-builder/lib/common-functions:check_break:108 : echo '' ++ /usr/share/diskimage-builder/lib/common-functions:check_break:108 : egrep -e '(,|^)after-error(,|$)' -q + /usr/share/diskimage-builder/lib/img-functions:run_in_target:1 : trap_cleanup + /usr/share/diskimage-builder/lib/img-functions:trap_cleanup:44 : exitval=1 + /usr/share/diskimage-builder/lib/img-functions:trap_cleanup:45 : cleanup + /usr/share/diskimage-builder/lib/img-functions:cleanup:50 : unmount_image + /usr/share/diskimage-builder/lib/img-functions:unmount_image:22 : sync + /usr/share/diskimage-builder/lib/img-functions:unmount_image:26 : unmount_dir /tmp/dib_build.60WTpWSk/mnt + /usr/share/diskimage-builder/lib/common-functions:unmount_dir:290 : local dir=/tmp/dib_build.60WTpWSk/mnt + /usr/share/diskimage-builder/lib/common-functions:unmount_dir:291 : local real_dir + /usr/share/diskimage-builder/lib/common-functions:unmount_dir:292 : local mnts + /usr/share/diskimage-builder/lib/common-functions:unmount_dir:294 : '[' '!' -d /tmp/dib_build.60WTpWSk/mnt ']' ++ /usr/share/diskimage-builder/lib/common-functions:unmount_dir:301 : readlink -e /tmp/dib_build.60WTpWSk/mnt + /usr/share/diskimage-builder/lib/common-functions:unmount_dir:301 : real_dir=/tmp/dib_build.60WTpWSk/mnt ++ /usr/share/diskimage-builder/lib/common-functions:unmount_dir:303 : grep '^/tmp/dib_build.60WTpWSk/mnt' ++ /usr/share/diskimage-builder/lib/common-functions:unmount_dir:303 : awk '{print $2}' ++ /usr/share/diskimage-builder/lib/common-functions:unmount_dir:303 : sort -r + /usr/share/diskimage-builder/lib/common-functions:unmount_dir:303 : mnts='/tmp/dib_build.60WTpWSk/mnt/tmp/yum /tmp/dib_build.60WTpWSk/mnt/tmp/in_target.d ... Was able to reproduce with other distros Version-Release number of selected component (if applicable): OSP10 How reproducible: Every time Steps to Reproduce: 1. yum install sahara-image-elements -y 2. download rhel7.qcow2 from CDN 3. sahara-image-create -p PLUGIN Actual results: Operation failed: No such file or directory Expected results: sahara image created Additional info: Attaching the full log with -x (Trace) enabled. I have tried building it in undercloud as well as on vanilla rhel7 baremetal host and failed in both. Selecting different hadoop flavor soesn't help.
Does the following patch work for you? I was not able to reproduce the issue consistently: https://review.openstack.org/#/c/381580/
(In reply to Luigi Toscano from comment #1) > Does the following patch work for you? I was not able to reproduce the issue > consistently: > > https://review.openstack.org/#/c/381580/ Yes, this seems to allow me to go past that point of failure. With patch I was able to build Hortonworks and MapR images .. Cloudera still fails with another error described in another BZ1409613
(In reply to Chris Janiszewski from comment #2) > (In reply to Luigi Toscano from comment #1) > > Does the following patch work for you? I was not able to reproduce the issue > > consistently: > > > > https://review.openstack.org/#/c/381580/ > > > Yes, this seems to allow me to go past that point of failure. With patch I > was able to build Hortonworks and MapR images .. Cloudera still fails with > another error described in another BZ1409613 That's unrelated (as described in that bug). About this bug, let's go through the usual chain (upstream and back).
The updated package is able to generate valid images and the error described originally does not show up. Verified on: sahara-image-elements-5.0.0-4.el7ost.noarch diskimage-builder-1.26.1-1.el7ost.noarch dib-utils-0.0.10-1.el7ost.noarch
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2017-0235.html