RFE: Remove etc/puppet/hieradata/service_names.json

Bug #1835551 reported by Emilien Macchi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Emilien Macchi

Bug Description

Extract service_names from THT/puppet/role.role.j2.yaml and use tripleo-hieradata ansible role to configure that file.

Tags: tech-debt
Changed in tripleo:
milestone: none → train-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to puppet-tripleo (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/669414

Revision history for this message
Emilien Macchi (emilienm) wrote :

in fact we can remove that file, it's not useful anyway.

summary: - RFE: use ansible to configure etc/puppet/hieradata/service_names.json
+ RFE: Remove etc/puppet/hieradata/service_names.json
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)

Fix proposed to branch: master
Review: https://review.opendev.org/669424

Changed in tripleo:
status: Triaged → In Progress
tags: added: tech-debt
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to puppet-tripleo (master)

Reviewed: https://review.opendev.org/669414
Committed: https://git.openstack.org/cgit/openstack/puppet-tripleo/commit/?id=7970733cf1483fab466f205e57c9ea224f051c94
Submitter: Zuul
Branch: master

commit 7970733cf1483fab466f205e57c9ea224f051c94
Author: Emilien Macchi <email address hidden>
Date: Fri Jul 5 13:25:34 2019 -0400

    Replace hiera('service_names') by hiera('enabled_services')

    In the effort of reducing the number of Hieradata files, the
    service_names parameter previously consummed in puppet-tripleo can be
    replaced by enabled_services which contains the same list.

    It will allow us later to remove the service_names hieradata file.

    Change-Id: I457f2c81a2cf6cc2f42dc4585b41b0d91dacc059
    Related-Bug: #1835551

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.opendev.org/669424
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=55ad2258449bbdcb62edb2f849ab9ab0244c6dac
Submitter: Zuul
Branch: master

commit 55ad2258449bbdcb62edb2f849ab9ab0244c6dac
Author: Emilien Macchi <email address hidden>
Date: Fri Jul 5 13:38:56 2019 -0400

    Remove service_names hieradata file

    The service_names isn't useful anymore:

    - hiera('service_names') has been replaced by hiera('enabled_services')
    - sensu::subscriptions moved under the {{role.name.lower()}}_extraconfig
      hieradata file.

    This is part of the effort which aims to reduce the number of hieradata
    files.

    Depends-On: I457f2c81a2cf6cc2f42dc4585b41b0d91dacc059
    Change-Id: I22081888541e059cd9f258d15990f58df78c38d2
    Closes-Bug: #1835551

Revision history for this message
Cédric Jeanneret (cjeanner) wrote :

Apparently puppet-tripleo package as shipped using "master" isn't up-to-date and still points to the old "service_names" hiera key, while it's not set anymore.

See this LP: https://bugs.launchpad.net/tripleo/+bug/1836696

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 11.1.0

This issue was fixed in the openstack/tripleo-heat-templates 11.1.0 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.