Bug 1489805 - Missing configuration keys prevents sahara from spawning clusters
Summary: Missing configuration keys prevents sahara from spawning clusters
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-sahara
Version: 12.0 (Pike)
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: beta
: 12.0 (Pike)
Assignee: Telles Nobrega
QA Contact: Luigi Toscano
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-08 12:12 UTC by Luigi Toscano
Modified: 2018-02-05 19:12 UTC (History)
6 users (show)

Fixed In Version: openstack-sahara-7.0.1-0.20170912230210.bdc7d83.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-13 22:08:14 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1715681 0 None None None 2017-09-08 12:12:40 UTC
OpenStack gerrit 502101 0 None None None 2017-09-08 16:48:28 UTC
Red Hat Product Errata RHEA-2017:3462 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 12.0 Enhancement Advisory 2018-02-16 01:43:25 UTC

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


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