RRD persistence with default configs in our Horizon OCI points to wrong libjrrd2.so

Description

When running the OCI image build from our CI/CD pipeline published to DockerHub, it uses the default configuration RRD as time series storage strategy.

The default path for the jrrd2 library is set to /usr/lib64/libjrrd2.so which is the path having JRRD2 installed on a CentOS base image. While switching to an Ubuntu base image the path needs to be /usr/lib/jni/libjrrd2.so. As a workaround the correct path can be set with an environment variable OPENNMS_LIBRARY_JRRD2="/usr/lib/jni/libjrrd2.so".

While testing the container image it seems the functionality is not affected when opennms.library.jrrd2=/usr/lib64/libjrrd2.so points to a wrong path to libjrrd2.so.

The ./install command on setup takes care of resolving the libjrrd2.so path with

It will be persisted in the $OPENNMS_HOME/etc/libraries.properties and the environment variable isn't required.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Morteza December 5, 2022 at 1:54 PM

Created PR

Fixed

Details

Assignee

Reporter

HB Grooming Date

HB Backlog Status

Story Points

Components

Sprint

Priority

PagerDuty

Created September 24, 2022 at 7:47 PM
Updated December 14, 2022 at 5:20 PM
Resolved December 14, 2022 at 5:20 PM