confd template doesn't apply connection-pool settings from env
General
HubSpot
General
HubSpot
Description
Setting OPENNMS_DATABASE_CONNECTION_MAXPOOL, OPENNMS_DATABASE_CONNECTION_MAXSIZE, OPENNMS_DATABASE_CONNECTION_MINPOOL environment variables doesn’t work to update the opennms-datasources.xml.
The container’s /etc/confd/templates/opennms-datasources.xml.tpl file’s getv calls in connection-pool are missing the initial '/' - so it never uses the environment variables.
From debug log:
This should fix it:
grep 'getv "[^/]' says that this also affects trapd-configuration.xml.tpl
Setting OPENNMS_DATABASE_CONNECTION_MAXPOOL, OPENNMS_DATABASE_CONNECTION_MAXSIZE, OPENNMS_DATABASE_CONNECTION_MINPOOL environment variables doesn’t work to update the opennms-datasources.xml.
The container’s /etc/confd/templates/opennms-datasources.xml.tpl file’s getv calls in connection-pool are missing the initial '/' - so it never uses the environment variables.
From debug log:
This should fix it:
grep 'getv "[^/]' says that this also affects trapd-configuration.xml.tpl