Error while trying to add Endpoint Type in Universe configuration - java.net.UnknownHostException: ca-prov-srv-primary
search cancel

Error while trying to add Endpoint Type in Universe configuration - java.net.UnknownHostException: ca-prov-srv-primary

book

Article ID: 368253

calendar_today

Updated On:

Products

CA Identity Suite

Issue/Introduction

An error occurs while trying to add an endpoint type in universe configuration --> Connectivity --> CAIAM

The error is as follows:
javax.naming.CommunicationException: ca-prov-srv-primary:20389 [Root exception is java.net.UnknownHostException: ca-prov-srv-primary]

Environment

Release : 14.4.2
Component : CA Identity Suite Virtual Appliance

Cause

 The ca-prov-srv-primary is missing in the /etc/hosts file.

Resolution

To add the missing host, please perform the below steps:

The Virtual Appliance uses the /etc/hosts file to store common host names for internal use.
You must prefer using DNS names instead of adding records to the /etc/hosts file.
In case you have to edit the /etc/hosts file, perform the following steps on each Virtual Appliance host which requires custom host mapping:
  • Log in the Virtual Appliance server using SSH/CLI
  • Create or edit the following file:
    /opt/CA/VirtualAppliance/custom/hosts
     
  • Add the custom host records in a format equivalent to the /etc/hosts format, for example:
    xxx.xx.xxx.x myhost01
    xxx.xx.xxx.x myhost02
     
  • Run the following command:
    configureCustomHostRecords
     
  • View the /etc/hosts file and notice that the following block was added/modified to reflect the custom hosts block:
    # CA VAPP CUSTOM HOSTS - START
    xxx.xx.xxx.x myhost01
    xxx.xx.xxx.x myhost02
    # CA VAPP CUSTOM HOSTS - END