Data source Spectrum sync fail

Document ID : KB000108873
Last Modified Date : 31/07/2018
Show Technical Document Details
Issue:
Getting a failure when trying to enable Spectrum as data source.
Environment:
CAPM 3.5
Spectrum 10.2.3
Cause:
there are 2 causes here:

spectrum was previously added as a data source and then improperly removed.

also, we see this error in the DM wrapper.log:
INFO | jvm 1 | 2018/07/31 05:11:09 | | Received WebServiceException from version check for data source Spectrum Infrastructure Manager@spetrumhostname. CAUSE=java.net.UnknownHostException: UnknownHostException invoking http://*****:8888/axis2/services/DataSourceWS: <hostname>. MESSAGE=Could not send Message.. Returning DS_COMM_FAILURE result. 
INFO | jvm 1 | 2018/07/31 05:11:09 | ERROR | qtp680829177-168120 | 2018-07-31 05:11:09,000 | com.ca.im.portal.api.services.datasource.DataSourcePoll 
INFO | jvm 1 | 2018/07/31 05:11:09 | | javax.xml.ws.WebServiceException: Could not send Message. 

this is caused by communication failure.
Resolution:
added a host file entry on the capc host for the spectrum host.

removed the spectrum data source, did a synch all, waited until the data source was gone from the ds view.

added spectrum in as a new data source.