Owned by Edin S
Get this repository:
git clone https://git.launchpad.net/~exsdev/charm-telegraf
Only Edin S can upload to this repository. If you are Edin S please log in for upload directions.


Name Last Modified Last Commit
lp1841120 2020-04-02 03:10:43 UTC 2020-04-02
Do not wait for Postgresql if principal is not a related Pg unit

Author: Edin S
Author Date: 2020-04-02 03:10:43 UTC

Do not wait for Postgresql if principal is not a related Pg unit

Fixes: LP#1841120

Given a newly available/changed Postgresql unit, this function is
called to (re)configure telegraf to access it.

The function iterates through all available Postgresql units,
searching for this subordinate telegraph's prinicpal Postgresql
connection string.

Prior to this fix, if no Postgresql connection string is found, this
telegraf unit enters a waiting state for Postgresql. This function
never checks if this unit's principal is NOT a Postgresql unit.

This commit checks if this telegraf's prinicpal is in the expected and
related Postgresql units before searching for a Postgresql connection
string ("context") to render to a template -- and only then if the
Postgres connection string isn't found, does it wait on Postgresql.

11 of 1 result
This repository contains Public information 
Everyone can see this information.