[ODLPARENT-97] Karaf 4 Dependency Resolution Created: 07/Jun/17  Updated: 24/Jan/18  Resolved: 25/Jul/17

Status: Resolved
Project: odlparent
Component/s: General
Affects Version/s: 2.0.5
Fix Version/s: None

Type: Bug
Reporter: A H Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Blocks
blocks NETVIRT-733 restconf not working when odl-netvirt... Resolved
blocks ODLPARENT-23 Milestone: Upgrade karaf to 4.0.1 or ... Resolved
is blocked by NETCONF-213 Replace use of org.json library with ... Resolved
External issue ID: 8622

 Description   

It seems like there are a few possible ways forward: (1) use the karaf 3 resolver in karaf 4, (2) fix all bundles/features to be reloadable, (3) we could move to using dependency=true, which won't reload them, but it doesn't load them for you, it's possible that adding prerequisite=true as well would fix it, but that seems to expose bugs in Karaf, (4) figure out if we can effectively enable --no-auto-refresh



 Comments   
Comment by Michael Vorburger [ 14/Jun/17 ]

As far as I understood in yesterday's Kernel call, skitt is investigating this..

Comment by Stephen Kitt [ 16/Jun/17 ]

Upstream’s view on this is that we need to sort out our refresh issues before we start investigating any remaining dependency issues. The default dependency handling should be OK for us apparently.

I’m guessing we might still need prerequisite="true" for some dependencies, e.g. the data broker...

Comment by Colin Dixon [ 20/Jun/17 ]

Just so that people can find it. This thread with Stephen Kitt upstream in Karaf:
http://karaf.922171.n3.nabble.com/Understanding-features-and-dependencies-td4050692.html#a4050698

Has Karaf saying that the general issue is our refreshes not dependency resolution being broken. Also, feature:install should not be refreshing bundles as a matter of course. Instead if we're seeing refreshes, that's probably a bug.

This meeting has some notes too around section 2:
https://meetings.opendaylight.org/opendaylight-meeting/2017/nitrogen_release_sync/opendaylight-meeting-nitrogen_release_sync.2017-06-19-15.02.html

  • colindixon asks if there are patterns to what breaks in karaf 4 that we can look for (colindixon, 15:12:33)
  • skitt says that there are some things which are bugs that happened to work in karaf 3, but don't work anymore (colindixon, 15:13:00)
  • https://lists.opendaylight.org/pipermail/netvirt-dev/2017-June/004788.html <== this is, AFAIK, the latest on where netvirt is at (Karaf 4 is NOK; many CSIT still failing for them) (vorburger, 15:13:47)
  • other times are when karaf 4 tracks package dependcies much more closely and refreshses things when they change those, in netconf, this seems to have happened when there are package exports that aren't really needed espcially when there are cycles (colindixon, 15:14:57)
  • also optional dependecies now trigger refreshes if they become available (colindixon, 15:15:32)

If you do feature:install -v it should note if it refreshes any bundles and if so, why. That should help figure things out.

Generated at Wed Feb 07 20:27:37 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.