Bug 1489805

Summary: Missing configuration keys prevents sahara from spawning clusters
Product: Red Hat OpenStack Reporter: Luigi Toscano <ltoscano>
Component: openstack-saharaAssignee: Telles Nobrega <tenobreg>
Status: CLOSED ERRATA QA Contact: Luigi Toscano <ltoscano>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 12.0 (Pike)CC: cschwede, matt, mimccune, pgrist, pkshiras, srevivo
Target Milestone: betaKeywords: Regression, Triaged
Target Release: 12.0 (Pike)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-sahara-7.0.1-0.20170912230210.bdc7d83.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-13 22:08: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:

Description Luigi Toscano 2017-09-08 12:12:41 UTC
Description of problem:
Due to some change forced by the switch to newer keystone version (see https://review.openstack.org/#/c/485521/), the trust mechanism in Sahara uses the configuration values from the section [keystone_authtoken] (this may change in the future).
Two of the values that are needed by Sahara (user_domain_name and project_domain_name) are not filled (even with default values) by default by puppet-sahara. sahara-engine tries to read them when starting to create a cluster (two KeyError exceptions visible in sahara-engine.log).

A simple fix is change the function which retrieves those values to accept a default value (which is easier than changing all systems which writes sahara.conf).

A fix was proposed upstream but it's not yet in stable/pike; this is to ensure that it will be imported.

Version-Release number of selected component (if applicable):
openstack-sahara-common-7.0.0-0.20170821133416.c07f479.el7ost.noarch
python-saharaclient-1.3.0-0.20170821151147.4275d17.el7ost.noarch
python-sahara-7.0.0-0.20170821133416.c07f479.el7ost.noarch
openstack-sahara-engine-7.0.0-0.20170821133416.c07f479.el7ost.noarch


Additional info:

Comment 2 Luigi Toscano 2017-09-08 16:48:29 UTC
Fix merged in master, backport for pike proposed.

Comment 3 Paul Grist 2017-09-13 00:46:47 UTC
Stable Pike merged, moving to POST to move this forward.

Comment 6 Luigi Toscano 2017-10-20 09:03:49 UTC
The patch landed in a format that could be tested (and it's not going away from that branch).

It is now possible to spawn clusters.

Tested with a containerized deployment (Spark and CDH 5.7):
openstack-sahara-api-7.0.1-0.20170912230210.bdc7d83.el7ost.noarch
openstack-sahara-engine-7.0.1-0.20170912230210.bdc7d83.el7ost.noarch
python-saharaclient-1.3.0-0.20170821151147.4275d17.el7ost.noarch
openstack-sahara-common-7.0.1-0.20170912230210.bdc7d83.el7ost.noarch
python-sahara-7.0.1-0.20170912230210.bdc7d83.el7ost.noarch

Comment 10 errata-xmlrpc 2017-12-13 22:08: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/RHEA-2017:3462