Bug 1286770

Summary: Disk space-related error when generating CDH 5.3 images
Product: Red Hat OpenStack Reporter: Luigi Toscano <ltoscano>
Component: sahara-image-elementsAssignee: Elise Gafford <egafford>
Status: CLOSED ERRATA QA Contact: Luigi Toscano <ltoscano>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 7.0 (Kilo)CC: egafford, kbasil, matt, rbiba
Target Milestone: z3Keywords: Regression, ZStream
Target Release: 7.0 (Kilo)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sahara-image-elements-2015.1.0-5.el7ost Doc Type: Bug Fix
Doc Text:
RHEL 7.2 dependency installation has grown since 7.1. This resulted in sporadic image generation failures for CDH and HDP images. With this update, the image size and the TMPFS thresholds have been increased for supported images. As a result, image generation now succeeds.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-21 17:09:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Log from failed generation none

Description Luigi Toscano 2015-11-30 16:58:23 UTC
Created attachment 1100554 [details]
Log from failed generation

Description of problem:
Running the image generation of CDH 5.3 image on a RHEL 7.2 host, namely:
# sahara-disk-image-create -p cloudera

leads to an error during the installation of some packages:


--------------------

Transaction Check Error:
  installing package solr-4.4.0+cdh5.3.0+314-1.cdh5.3.0.p0.25.el6.noarch needs 68MB on the / filesystem
  installing package impala-2.1.0+cdh5.3.0+0-1.cdh5.3.0.p0.32.el6.x86_64 needs 367MB on the / filesystem
  installing package flume-ng-1.5.0+cdh5.3.0+79-1.cdh5.3.0.p0.18.el6.noarch needs 421MB on the / filesystem

Error Summary
-------------
Disk Requirements:
  At least 421MB more space needed on the / filesystem.

++ check_break after-error run_in_target bash
++ echo ''
------------------------------

The version of the script part of the currently released RHEL-OSP 7.x on RHEL 7.1 used to work, and there are no significant changes either in sahara-image-elements or in diskimage-builder.


* Please note that setting DIB_MIN_TMPFS=7 fixes the issue (as it seems to be set in the new script in RHEL-OSP8). Most likely setting DIB_NO_TMPFS=1 would work as well.


Version-Release number of selected component (if applicable):
diskimage-builder-0.1.46-4.el7ost.noarch
sahara-image-elements-2015.1.0-4.el7ost.noarch



See the complete log attached.

Comment 1 Elise Gafford 2015-11-30 21:50:53 UTC
Reproduced against RHEL 7.2; RHEL 7.1 still functional without change. Will update with generous DIB_MIN_TMPFS; for now, I'll wait to do so until you're in to speak about (currently unreproducible for me) https://bugzilla.redhat.com/show_bug.cgi?id=1286719.

Comment 5 Luigi Toscano 2015-12-07 12:34:07 UTC
The value of DIB_MIN_TMPFS has been set in sahara-disk-image-create to match DIB_IMAGE_SIZE and both increased (even if differently) for the two plugins.

The image can be generated on RHEL 7.2:

sahara-image-elements-2015.1.0-5.el7ost.noarch
diskimage-builder-0.1.46-4.el7ost.noarch
dib-utils-0.0.9-1.el7ost.noarch

Comment 7 errata-xmlrpc 2015-12-21 17:09:14 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://access.redhat.com/errata/RHBA-2015:2674