The "big bump" of odlparent & yangtools with https://git.opendaylight.org/gerrit/#/c/66509/ breaks Neutron:
[INFO] --- maven-failsafe-plugin:2.20.1:integration-test (default) @ integration-test --- [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running org.opendaylight.neutron.e2etest.ITNeutronE2E (...) Karaf started in 1s. Bundle stats: 12 active, 12 total [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 221.886 s <<< FAILURE! - in org.opendaylight.neutron.e2etest.ITNeutronE2E [ERROR] test(org.opendaylight.neutron.e2etest.ITNeutronE2E) Time elapsed: 195.033 s <<< FAILURE! java.lang.AssertionError: Network Collection GET to URL http://127.0.0.1:8181/controller/nb/v2/neutron/networks with wait failed at org.opendaylight.neutron.e2etest.ITNeutronE2E.test(ITNeutronE2E.java:90)
The cause is this which can be seen in integration/test/target/exam/.../data/log/karaf.log:
2018-01-15T14:42:51,103 | ERROR | qtp881932043-138 | ContainerResponse | 35 - com.sun.jersey.jersey-server - 1.17.0 | The registered message body writers compatible with the MIME media type are: */* -> com.sun.jersey.core.impl.provider.entity.FormProvider com.sun.jersey.core.impl.provider.entity.MimeMultipartProvider com.sun.jersey.core.impl.provider.entity.StringProvider com.sun.jersey.core.impl.provider.entity.ByteArrayProvider com.sun.jersey.core.impl.provider.entity.FileProvider com.sun.jersey.core.impl.provider.entity.InputStreamProvider com.sun.jersey.core.impl.provider.entity.DataSourceProvider com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$General com.sun.jersey.core.impl.provider.entity.ReaderProvider com.sun.jersey.core.impl.provider.entity.DocumentProvider com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider com.sun.jersey.core.impl.provider.entity.SourceProvider$SourceWriter com.sun.jersey.server.impl.template.ViewableMessageBodyWriter com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$General com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$General 2018-01-15T14:42:51,103 | ERROR | qtp881932043-138 | ContainerResponse | 35 - com.sun.jersey.jersey-server - 1.17.0 | Mapped exception to response: 500 (Internal Server Error) javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException: A message body writer for Java class org.opendaylight.neutron.northbound.api.NeutronNetworkRequest, and Java type class org.opendaylight.neutron.northbound.api.NeutronNetworkRequest, and MIME media type application/json was not found at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:285) [35:com.sun.jersey.jersey-server:1.17.0]
There are other exceptions in the log, but those are not causing this problem; notably the problem below is unrelated, even though it seem to sometimes cause the ITNeutronE2E to at first fail with org.ops4j.pax.swissbox.tracker.ServiceLookupException: gave up waiting for service org.ops4j.pax.exam.ProbeInvoker, but on retrying a build it will get it and hit above, this problem is something else which skitt says he has a solution coming up for in controller:
2018-01-15T14:39:56,109 | ERROR | ConfigFeatureListener - ConfigPusher | FeatureConfigPusher | 47 - config-persister-feature-adapter - 0.8.0.SNAPSHOT | Giving up (after 100 retries) on Karaf featuresService.listInstalledFeatures() which has not yet finished installing feature jaas-boot 0.0.0 2018-01-15T14:39:56,154 | INFO | ConfigFeatureListener - ConfigPusher | FeatureConfigPusher | 47 - config-persister-feature-adapter - 0.8.0.SNAPSHOT | Karaf Feature Service has not yet finished installing feature jaas-boot/0.0.0 (retry 0)
It is trivial to reproduce this issue, by starting neutron/karaf/target/assembly/bin/karaf and hitting HTTP GET http://127.0.0.1:8181/controller/nb/v2/neutron/networks, even just with your web browser, and HTTP BASIC admin/admin, will produce above in the Karaf log.
- relates to
-
NEUTRON-124 Upgrade Jersey from 1.X to 2.X
- Resolved
-
NETCONF-502 API docs does not work after upstream version bump
- Resolved