deployed-server: deletes packaged os-collect-config.conf template

Bug #1679705 reported by James Slagle on 2017-04-04
This bug affects 1 person
Affects Status Importance Assigned to Milestone
James Slagle

Bug Description

In order to prevent /etc/os-collect-config.conf from getting overidden by os-apply-config after it's been configured by the heat-agents configuration script for deployed servers (, we have to delete the configuration file template at /usr/libexec/os-apply-config/templates/etc/os-collect-config.conf

The issue with that approach is that the template file is now a packaged file, so on package update, it could get recreated, then os-apply-config would overwrite the agent configuration breaking the communication between deployed-server's and the undercloud Heat.

Instead of directly configuring the file with and having to delete the template, we should just inject the configuration data as a data source for the local connector. That way when the file is rendered from the template it will have the correct configuration.

James Slagle (james-slagle) wrote :

There was an initial patch from sbaker to do this:

but it needs to be updated to use the request collector instead of the heat collector.

Changed in tripleo:
status: New → In Progress
importance: Undecided → High
assignee: nobody → James Slagle (james-slagle)
milestone: none → pike-1
James Slagle (james-slagle) wrote :

I just updated to address this issue

Submitter: Jenkins
Branch: master

commit 5e934cd9b8b17c62a2f8729a1e6f50b9b9001ff8
Author: Steve Baker <email address hidden>
Date: Thu Dec 1 01:02:54 2016 +0000

    Use the local collector to bootstrap deployed servers

    os-collect-config is already configured to use json files in
    /var/lib/os-collect-config/local-data/ as a data source, so this can
    be used in the deployed-server to copy in the
    required json to generate the required os-collect-config.conf.

    Co-Authored-By: James Slagle <email address hidden>
    Closes-Bug: #1679705
    Change-Id: Ibde9e6bf360277d4ff64f66d637a5c7f0360e754

Changed in tripleo:
status: In Progress → Fix Released

This issue was fixed in the openstack/tripleo-heat-templates development milestone.

Change abandoned by James Slagle (<email address hidden>) on branch: stable/ocata
Reason: i don't anticipate fixing this for ocata at this point

Change abandoned by Alex Schultz (<email address hidden>) on branch: stable/ocata
Reason: Rather than tackle the local collector, I've split off a change just for the service enable

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

Other bug subscribers