[ODLPARENT-76] [Karaf 4] SFT IOException target/pax/.../test-dependencies.xml (No such file or directory) Created: 08/Mar/17  Updated: 06/Sep/21  Resolved: 06/Sep/21

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

Type: Bug
Reporter: Michael Vorburger 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


Attachments: File org.opendaylight.odlparent.featuretest.SingleFeatureTest-output.txt.gz    
External issue ID: 7923

 Description   

when running SingleFeatureTest (SFT) on a Karaf 4 feature, e.g. by "mvn -o -Dsft.diag.skip=true clean install" in genius/features/features4-genius from https://git.opendaylight.org/gerrit/#/c/51966/ (not sure if this also happens in production Karaf or is SFT specific), then I'm seeing this:

2017-03-08 00:10:01,823 | WARN | r - ConfigPusher | FeaturesServiceImpl | 8 - org.apache.karaf.features.core - 4.0.7 | Can't load features repository file:/home/vorburger/dev/ODL/git/genius/features/features4-genius/target/pax/c265af55-7cb4-43a9-9fca-074df8c3f661/te
st-dependencies.xml
java.io.IOException: /home/vorburger/dev/ODL/git/genius/features/features4-genius/target/pax/c265af55-7cb4-43a9-9fca-074df8c3f661/test-dependencies.xml (No such file or directory) : file:/home/vorburger/dev/ODL/git/genius/features/features4-genius/target/pax/c265af55-7cb4-43a9-9f
ca-074df8c3f661/test-dependencies.xml
at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:96)[8:org.apache.karaf.features.core:4.0.7]
at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:85)[8:org.apache.karaf.features.core:4.0.7]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.getFeatures(FeaturesServiceImpl.java:709)[8:org.apache.karaf.features.core:4.0.7]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.listInstalledFeatures(FeaturesServiceImpl.java:754)[8:org.apache.karaf.features.core:4.0.7]
at org.opendaylight.controller.configpusherfeature.internal.FeatureConfigPusher.isInstalled(FeatureConfigPusher.java:114)[96:config-persister-feature4-adapter:0.6.0.SNAPSHOT]
at org.opendaylight.controller.configpusherfeature.internal.FeatureConfigPusher.pushConfig(FeatureConfigPusher.java:91)[96:config-persister-feature4-adapter:0.6.0.SNAPSHOT]
at org.opendaylight.controller.configpusherfeature.internal.FeatureConfigPusher.pushConfigs(FeatureConfigPusher.java:71)[96:config-persister-feature4-adapter:0.6.0.SNAPSHOT]
at org.opendaylight.controller.configpusherfeature.internal.ConfigPushingRunnable.processFeatureEvent(ConfigPushingRunnable.java:65)[96:config-persister-feature4-adapter:0.6.0.SNAPSHOT]
at org.opendaylight.controller.configpusherfeature.internal.ConfigPushingRunnable.run(ConfigPushingRunnable.java:47)[96:config-persister-feature4-adapter:0.6.0.SNAPSHOT]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
Caused by: java.io.FileNotFoundException: /home/vorburger/dev/ODL/git/genius/features/features4-genius/target/pax/c265af55-7cb4-43a9-9fca-074df8c3f661/test-dependencies.xml (No such file or directory)
at java.io.FileInputStream.open0(Native Method)[:1.8.0_121]
at java.io.FileInputStream.open(FileInputStream.java:195)[:1.8.0_121]
at java.io.FileInputStream.<init>(FileInputStream.java:138)[:1.8.0_121]
at java.io.FileInputStream.<init>(FileInputStream.java:93)[:1.8.0_121]
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)[:1.8.0_121]
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)[:1.8.0_121]
at java.net.URL.openStream(URL.java:1045)[:1.8.0_121]
at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:91)[8:org.apache.karaf.features.core:4.0.7]
... 9 more
2017-03-08 00:10:01,999 | IN

The directory target/pax/c265af55-7cb4-43a9-9fca-074df8c3f661/ directory does exist, but what's test-dependencies.xml, and why is controller / Karaf trying to open that?



 Comments   
Comment by Michael Vorburger [ 08/Mar/17 ]

Attachment org.opendaylight.odlparent.featuretest.SingleFeatureTest-output.txt.gz has been added with description: Karaf 4 (genius) SingleFeatureTest-output.txt (gzip'ed)

Comment by Stephen Kitt [ 08/Mar/17 ]

test-dependencies.xml is the feature repository containing the feature(s) to be tested by Pax Exam.

Comment by Robert Varga [ 12/Mar/19 ]

vorburger skitt  is this still relevant?

Comment by Robert Varga [ 06/Sep/21 ]

No feedback, closing.

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