Wire in hieradata_override in undercloud.conf for containerized undercloud heat installer

Bug #1766579 reported by Bogdan Dobrelya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Bogdan Dobrelya

Bug Description

Looking onto that 'hieradata_override' thing http://codesearch.openstack.org/?q=hieradata_override&i=nope&files=&repos=, it seems we need to rework it in quickstart and implement instack parity for the client's heat installer as well. See http://git.openstack.org/cgit/openstack/tripleo-quickstart-extras/tree/roles/undercloud-deploy/templates/undercloud.conf.j2#n158

When undercloud_hieradata_override is defined in quickstart,
it should only set hieradata_override in undercloud.conf and omit generating hieradata-overrides-classic-undercloud.yaml.j2 / hieradata-overrides-t-h-t-undercloud.yaml.j2. Otherwise, the *single* generated file hieradata-overrides.yaml should be set in undercloud.conf's hieradata_override instead. This part to be addressed in https://bugs.launchpad.net/tripleo/+bug/1766848.

From the client side, hieradata_override needs to be wired in and processed as the following:

  * When it is a heat env file, which is containing {parameter_defaults: {UndercloudExtraConfig
    ...}, just pass it in for t-h-t (undercloud deploy/upgrade), via -e arg.

  * When it is an old-style instack hieradata formatted file, convert it into the t-h-t format,
  which is containing {parameter_defaults: {UndercloudExtraConfig: <raw_data_as_is>} and do the
  former as well.

This improves upgrades UX when there had been custom hiera data used for the original instack deployment, which needs to be upgraded into containerized undercloud. Though some revision will need to be done, like translating puppet hiera values into new data-schemes required for tht puppet configuration steps.

Tags: upgrade ux
Changed in tripleo:
importance: Undecided → Medium
milestone: none → rocky-3
status: New → In Progress
assignee: nobody → Bogdan Dobrelya (bogdando)
tags: added: upgrade ux
Changed in tripleo:
milestone: rocky-3 → rocky-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/563986

description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (master)

Reviewed: https://review.openstack.org/563986
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=e5b351cec41b8208caa3ab977d14de621e9bf17d
Submitter: Zuul
Branch: master

commit e5b351cec41b8208caa3ab977d14de621e9bf17d
Author: Bogdan Dobrelya <email address hidden>
Date: Mon Apr 23 14:39:47 2018 +0200

    Wire-in hieradata_override for UC heat-install

    Maintain undercloud.conf feature parity with instack.

    Allow to override hiera data for UndercloudExtraConfig in tht.
    Ensure higher data precedence over anything that comes from
    custom_env_files.

    Partial-bug: #1766579
    Change-Id: Idf595498e46eeb88acfd4c3a21094d22197a6d7b
    Signed-off-by: Bogdan Dobrelya <email address hidden>

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-quickstart-extras (master)

Fix proposed to branch: master
Review: https://review.openstack.org/564835

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-quickstart-extras (master)

Reviewed: https://review.openstack.org/564835
Committed: https://git.openstack.org/cgit/openstack/tripleo-quickstart-extras/commit/?id=355859beafaaf7c87dcb405e8543f3ba0895c8c8
Submitter: Zuul
Branch: master

commit 355859beafaaf7c87dcb405e8543f3ba0895c8c8
Author: Bogdan Dobrelya <email address hidden>
Date: Fri Apr 27 17:57:27 2018 +0200

    Fix hieradata overrides for UC instack/heat install

    Complement Idf595498e46eeb88acfd4c3a21094d22197a6d7b
    and make sure heat installer takes a valid hieradata
    override file depending on config vars setup.

    Update README as well to explain the cases better.

    Closes-bug: #1766579
    Closes-bug: #1766848

    Change-Id: Id821f613fe72e2f768f80acaa5657a8be86879b7
    Signed-off-by: Bogdan Dobrelya <email address hidden>

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-quickstart-extras 2.1.1

This issue was fixed in the openstack/tripleo-quickstart-extras 2.1.1 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.