Create upgrade script for service-configuration.xml

Description

To avoid startup issues for people with old configs, we need to provide an upgrade script for service-configuration.xml to remove MX4J, Linkd, Xmlrpcd, and AccessPointMonitor beans which were removed in 17.0.0.

git diff origin/release-16.0.4..origin/release-17.0.0 opennms-base-assembly/src/main/filtered/etc/service-configuration.xml

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Markus von Rüden February 4, 2016 at 3:37 AM

Thanks, it works

Benjamin Reed February 3, 2016 at 3:56 PM

this got re-fixed

Markus von Rüden February 3, 2016 at 8:54 AM
Edited

The provided solution causes the deletion of new services.
Example: In 18.0.0 we introduce the BSM Daemon. If I were to run the changed updater the BSM Daemon service definition is removed from the service-configuration.xml file. Even if it was introduced later than 17.0.1.

This affects all new introduced services.

Seth Leger December 7, 2015 at 11:52 PM

There are several reports of this failing on the opennms-discuss list as well. After looking at the Invoker class, I think we do need to remove the entries completely instead of just disabling them because it tries to reflect each class before checking the invocation flags. Reopening.

Seth Leger December 7, 2015 at 11:10 PM

It appears that this script is failing during the Minion integration tests. I believe that the service configuration entries need to be removed instead of just disabled because the classes no longer exist in the classpath and are failing to classload:

Fixed

Details

Assignee

Reporter

Story Points

Components

Sprint

Fix versions

Affects versions

Priority

PagerDuty

Created November 30, 2015 at 12:25 PM
Updated October 12, 2023 at 4:30 PM
Resolved February 3, 2016 at 3:56 PM