Bug 1569920

Summary: Allows composition of key values from multiple TripleO services
Product: Red Hat OpenStack Reporter: Giulio Fidente <gfidente>
Component: openstack-tripleo-heat-templatesAssignee: Giulio Fidente <gfidente>
Status: CLOSED ERRATA QA Contact: Gurenko Alex <agurenko>
Severity: medium Docs Contact:
Priority: medium    
Version: 14.0 (Rocky)CC: ahrechan, aschultz, gfidente, markmc, mburns
Target Milestone: Upstream M2Keywords: Triaged
Target Release: 14.0 (Rocky)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-9.0.0-0.20180710202746.d2994ca.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-11 11:49:31 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 Giulio Fidente 2018-04-20 09:26:09 UTC
We should be able to compose the value of a config key from multiple TripleO services.

This would be useful in scenarios like [1], where for example the list of keyrings to be provisioned on the nodes, defined by the single opentack_keys parameter, would be built concatenating values coming from multiple (but only enabled) services instead of being a single list provisioning all keyrings regardless of which service is enabled.

Currently if the same key is defined by multiple services its value is set to the last one parsed/merged. 

1. https://github.com/openstack/tripleo-heat-templates/blob/master/docker/services/ceph-ansible/ceph-base.yaml#L250

Comment 1 Giulio Fidente 2018-04-20 13:56:08 UTC
I am attempting a proper fix for this, in Director, in https://review.openstack.org/#/c/563112/

Comment 7 Artem Hrechanychenko 2019-01-08 14:12:26 UTC
Hi  Giulio,
can you provide some example about how to verify that issue ?

Comment 9 Giulio Fidente 2019-01-11 08:51:09 UTC
(In reply to Artem Hrechanychenko from comment #7)
> Hi  Giulio,
> can you provide some example about how to verify that issue ?

There was a DNM submission in gerrit meant to test this functionality https://review.openstack.org/#/c/572070

In that submission we're setting different values for the same hiera key in two different services. While the CI logs have been deleted, if you look at my comments in that submission you'll see that on the nodes the value set for the keys have been merged to include all values set by each of the service and this was the purpose of the RFE.

This is something we use for a few services but not something that users interact directly with, for example it does not apply to environment files.

One of the potential benefits for the user of this RFE is that for example we don't need to create all the Ceph pools at once anymore (like the Cinder's volume backups pool), but while the RFE has landed the restructuring of the TripleO Ceph services hasn't happened yet.

Comment 10 errata-xmlrpc 2019-01-11 11:49:31 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