After installed and configured the Spectrum Data Publisher (SDP) it aborts at start with following errors: OIUrl FAILED
Environments details:
a) DX Platform 21.3.1 using secure routes and certificate has been imported to the SDP cacert as per documentation:
b) Alarm Reconciliation has been enabled in the conf/ConnectorConfig.xml
..
<AlarmReconcileConfiguration> <!-- Clears the stale alarms in DOI during service startup. -->
<Enable>true</Enable>
</AlarmReconcileConfiguration>
..
In SpectrumPublisher log a 500 Internal Server Error message is reported as below :
2021-11-25 17:58:43,191 ERROR main: [handler.HttpResponseHandler] [handleResponse] - HTTP response- Url : https://apmservices-gateway.10.109.32.88.nip.io:443/oipublic/aoanalytics/alarms/alarms_all/_search/?size=0&from=0&q=(status:(NOT%20CLOSED)%20AND%20product:Spectrum%20AND%[email protected]_id:055AF7A9-EA49-42A1-BD0E-74D43D4774BC) , error code: 500 , message: Internal Server Error
2021-11-25 17:58:43,191 ERROR main: [client.AbstractHttpClient] [execute] - HTTP error code: 500
2021-11-25 17:58:43,191 ERROR main: [client.ConnectionValidator] [validateDOI] - OI heartbeat request has failed with status code 500
In the apmservices-gateway log the following SSLException exception is reported:
2021-11-25 18:58:53.428 WARN 1 --- [or-http-epoll-5] r.netty.http.client.
javax.net.ssl.SSLException: org.bouncycastle.tls.
at org.bouncycastle.jsse.
Suppressed: reactor.core.publisher.
Error has been observed at the following site(s):
|_ checkpoint ⇢ com.ca.apm.common.
|_ checkpoint ⇢ org.springframework.cloud.
|_ checkpoint ⇢ com.ca.apm.common.io.
|_ checkpoint ⇢ com.ca.apm.gateway.filters.
|_ checkpoint ⇢ com.ca.apm.common.io.
|_ checkpoint ⇢ com.ca.apm.common.io.
|_ checkpoint ⇢ com.ca.apm.common.rest.
|_ checkpoint ⇢ com.ca.apm.common.rest.
|_ checkpoint ⇢ com.ca.apm.common.io.
|_ checkpoint ⇢ com.ca.apm.common.rest.
|_ checkpoint ⇢ org.springframework.boot.
|_ checkpoint ⇢ HTTP GET "/oipublic/aoanalytics/alarms/
Stack trace:
at org.bouncycastle.jsse.
at java.base/javax.net.ssl.
at io.netty.handler.ssl.
at io.netty.handler.ssl.
at io.netty.handler.ssl.
at io.netty.handler.ssl.
at io.netty.handler.codec.
at io.netty.handler.codec.
at io.netty.handler.codec.
at io.netty.channel.
at io.netty.channel.
at io.netty.channel.
at io.netty.channel.
at io.netty.channel.
at io.netty.channel.
at io.netty.channel.
at io.netty.channel.epoll.
at io.netty.channel.epoll.
at io.netty.channel.epoll.
at io.netty.util.concurrent.
at io.netty.util.internal.
at io.netty.util.concurrent.
at java.base/java.lang.Thread.
Caused by: org.bouncycastle.tls.
DX Platform 21.3.1
DX Spectrum 21.2.1
This issue is related to defect DE521769
Solution:
Apply 21.3.1 HOTFIX#1 available from Broadcom Support
Workaround:
1) Login to DX Platform as masteradmin
2) Go to Settings
3) Locate apm.gateway.routes.oipublic property and change uri and version as below:
key: apm.gateway.routes.oipublic
value: { "id": "oipublic", "filters": [ { "name": "RewritePath", "args": { "_genkey_0": "/oipublic/(?<segment>.*)", "_genkey_1": "/oi/v2/oipublic/${segment}" } } ], "predicates": [ { "name": "Path", "args": { "_genkey_0": "/oipublic/**" } } ], "uri": "http://doi-adminui:8080", "order": 0, "metadata": { "version": 2 }}
NOTES:
a) Increase the version from 1 to 2 while making this change (version should be increased on every change).
b) There won't be any impact due to using the http based service name rather than https route as the communication is internal within the DX cluster. In fact we will change the default settings to use the service name in the next on-prem release.
4) Register the connector using : run.bat/sh reset
OIUrl check will succeed as below: