Enable instant refresh in topology generator based on the recent changes in the topology code

Description

Based on HZN-1393, we should be able to have topology updates generated by the topology generator show up immediately, not waiting for the cache to be emptied.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Patrick Schweizer February 27, 2019 at 10:43 PM

closing this issue: it has been solved already

Markus von Rüden February 18, 2019 at 10:50 AM

The shell bundle tries to access classes from the package org.opennms.features.topology.plugins.topo.linkd.internal which are most likely set to private, therefore are not exported and cannot be imported by any other bundle.

Verify your shell bundle and see if anything from the package org.opennms.features.topology.plugins.topo.linkd.internal is imported. If so, that is an issue.

Also to verify the headers of a bundle, you can do a headers <bundle-id> in the karaf shell.
That will tell you about the imports, exports and private packages of each bundle.

Patrick Schweizer February 17, 2019 at 5:15 PM
Edited

Code is implemented https://github.com/OpenNMS/opennms/pull/2362
but there is a dependency problem in Karaf:

admin@opennms> feature:install opennms-enlinkd-shell
Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=opennms-enlinkd-shell; type=karaf.feature; version="[24.0.0.SNAPSHOT,24.0.0.SNAPSHOT]"; filter:="(&(osgi.identity=opennms-enlinkd-shell)(type=karaf.feature)(version>=24.0.0.SNAPSHOT)(version<=24.0.0.SNAPSHOT))" [caused by: Unable to resolve opennms-enlinkd-shell/24.0.0.SNAPSHOT: missing requirement [opennms-enlinkd-shell/24.0.0.SNAPSHOT] osgi.identity; osgi.identity=org.opennms.features.enlinkd.shell; type=osgi.bundle; version="[24.0.0.SNAPSHOT,24.0.0.SNAPSHOT]"; resolution:=mandatory [caused by: Unable to resolve org.opennms.features.enlinkd.shell/24.0.0.SNAPSHOT: missing requirement [org.opennms.features.enlinkd.shell/24.0.0.SNAPSHOT] osgi.wiring.package; filter:="(osgi.wiring.package=org.opennms.features.topology.plugins.topo.linkd.internal)"]]

Next step: Ask for help...

Fixed

Assignee

Reporter

Components

Fix versions

Priority

Created February 17, 2019 at 5:00 PM
Updated June 3, 2019 at 7:22 AM
Resolved February 27, 2019 at 10:43 PM
Loading...