CCSDK users, OpenDaylight Oxygen SR3 (Service Release 3) was recently released. In order to keep our ONAP Casablanca up to date with the latest OpenDaylight Oxygen patches, the Casablanca version of CCSDK has been updated to this service release.
For most users, this upgrade will just require a recompilation against the updated 1.1.0-SNAPSHOT version of the CCSDK parent poms. When converting CCSDK, I did find one case where I needed to remove a version from one of my pom.xml files (in ccsdk/sli/core/sliapi/provider) to allow it to inherit the version from the parent pom (it was locally setting the version to the SR1 version of an artifact). I wanted to share a bit more detail on that issue and how I found the culprit in case anyone runs into similar errors. Firstly, please note that the issue I’m describing did NOT break my compile. At compile time, maven was perfectly able to find the older version of my dependency, so all seemed well. However, one of the other things that happens at compile time is generation of the karaf features.xml file. This file tells karaf what dependencies your project needs to load, along with what versions. This was the root cause of the problem in the CCSDK case – sliapi/provider was looking for version 2.0.3 of one of the yangtools artifacts. I was able to identify the issue in my case fairly quickly by doing the following: 1. Docker exec into the container and look for exceptions in the karaf.log file. The exception will most likely list one or more artifacts that are not found. 2. Use the ‘find’ command to look for features.xml files that contain the version of the artifact that karaf.log is complaining about. For example, my error was with the triemap artifact, so I did this: find /opt/opendaylight/system/org -name *features.xml -exec grep triemap ‘{}’ -print When I did this, I saw quickly that the problem was in sliapi, and so I was able to quickly find the error in sliapi/provider/pom.xml and fix it. Dan Dan Timoney Principal Technical Staff Member AT&T Email : dtimo...@att.com<mailto:dtimo...@att.com> Office : +1 (732) 420-3226 Mobile : +1 (201) 960-1211 200 S Laurel Ave, Rm E2-2A03 Middletown, NJ 08873 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11890): https://lists.onap.org/g/onap-discuss/message/11890 Mute This Topic: https://lists.onap.org/mt/24537121/21656 Group Owner: onap-discuss+ow...@lists.onap.org Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-