Bug 1408251 - Unable to build sahara images with sahara-image-create systemctl disable firewalld Operation failed: No such file or directory
Summary: Unable to build sahara images with sahara-image-create systemctl disable fire...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: sahara-image-elements
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: z1
: 10.0 (Newton)
Assignee: Jon Schlueter
QA Contact: Luigi Toscano
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-22 15:18 UTC by Chris Janiszewski
Modified: 2017-02-06 12:29 UTC (History)
4 users (show)

Fixed In Version: sahara-image-elements-5.0.0-4.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-02-01 14:36:17 UTC
Target Upstream Version:
Embargoed:
jschluet: needinfo-


Attachments (Terms of Use)
tee output (718.91 KB, text/plain)
2016-12-22 15:18 UTC, Chris Janiszewski
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1653535 0 None None None 2017-01-02 17:54:52 UTC
OpenStack gerrit 381580 0 None None None 2017-01-11 13:52:26 UTC
Red Hat Product Errata RHBA-2017:0235 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 10 Storage Bug Fix and Enhancement Advisory 2017-02-01 19:34:42 UTC

Description Chris Janiszewski 2016-12-22 15:18:37 UTC
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.

Comment 1 Luigi Toscano 2017-01-02 09:35:41 UTC
Does the following patch work for you? I was not able to reproduce the issue consistently:

https://review.openstack.org/#/c/381580/

Comment 2 Chris Janiszewski 2017-01-02 15:43:31 UTC
(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

Comment 3 Luigi Toscano 2017-01-02 17:54:53 UTC
(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).

Comment 7 Luigi Toscano 2017-01-30 17:48:01 UTC
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

Comment 9 errata-xmlrpc 2017-02-01 14:36:17 UTC
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


Note You need to log in before you can comment on or make changes to this bug.