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.
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:
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