Bug 1636953

Summary: HDP 2.3 images fails to start with Ambari 2.4 RHEL images without repositories
Product: Red Hat OpenStack Reporter: Luigi Toscano <ltoscano>
Component: openstack-saharaAssignee: Telles Nobrega <tenobreg>
Status: CLOSED ERRATA QA Contact: Luigi Toscano <ltoscano>
Severity: high Docs Contact: Kim Nylander <knylande>
Priority: high    
Version: 14.0 (Rocky)CC: cschwede, matt, mimccune, pgrist, pkshiras, tenobreg
Target Milestone: rcKeywords: Regression, Triaged
Target Release: 14.0 (Rocky)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-sahara-9.0.1-0.20181010221803.eb72c78.el7ost Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-11 11:53:41 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:

Description Luigi Toscano 2018-10-08 10:55:17 UTC
Description of problem:
The creation of an HDP 2.3 cluster (on an Ambari 2.4 RHEL image) fails from rocky with the following error:

Creating cluster failed for the following reason(s): RemoteCommandException: Error during command execution: "yum install -y libtirpc-devel"

This would probably work on CentOS, on Ubuntu or on RHEL images with subscription or anyway with the repositories of the operating system configured.

The root cause seems to be the following snippet from sahara/plugins/ambari/resources/images/image.yaml:

  - argument_case:
       argument_name: ambari_version
       cases:
           2.6.2.0:
               - package: libtirpc-devel

HDP 2.3 requires Ambari 2.4 and there is a special rule in pack_image to change the Ambari version:

    def pack_image(...):
        if hadoop_version == '2.3':
            image_arguments['ambari_version'] = '2.4.3.0'

but pack_image is not used during the deployment, when validate_images is called instead.

So the same rule which changes ambari_version should apply when validate_images is used.


Version-Release number of selected component (if applicable):
openstack-sahara-9.0.1-0.20180921120831.0668acd.el7ost

Comment 6 Luigi Toscano 2018-11-21 20:42:58 UTC
Tested again using RHEL 7.6 for both the image and the deployment (the latter on packstack for resource issues):

openstack-sahara-9.0.1-0.20181010221803.eb72c78.el7ost
openstack-sahara-tests-0.7.0-0.20180925152245.bb23a5b.el7ost

Comment 10 errata-xmlrpc 2019-01-11 11:53:41 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/RHEA-2019:0045