confd template doesn't apply connection-pool settings from env

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

Environment

OpenNMS 32.0.2 on k8s

Acceptance / Success Criteria

None

Activity

Show:

Mark Mahacek September 27, 2023 at 7:42 PM

Just wanted to give an update that has been merged and will be part of the October 2023 release cycle for 23.0.4/2023.1.8

Mark Mahacek September 20, 2023 at 2:37 AM

Closing as duplicate of NMS-16141.

Duplicate

Details

Assignee

Reporter

HB Grooming Date

HB Backlog Status

Components

Affects versions

Priority

PagerDuty

Created September 8, 2023 at 2:39 PM
Updated September 27, 2023 at 8:10 PM
Resolved September 20, 2023 at 2:37 AM