Official comment

Hi Leonar,
Could you please attach your CCP & CPBM Logs?
Regards,
Hi,
We are trying to integrate our CPBM 2.1 & CCP 4.2.1 platforms. We are able to "Enable" the Citrix Cloud Platform IaaS Service, but we are unable to successfully add a service instance.
Configuration we are using when adding the service instance:
Protocol: http
Public Hostname: (Load Balanced VIP of CCP)
Public Port: 8080
JDBC Hostname: (IP Address of the CCP MySQL Database Server)
JDBC Username: Username
JDBC Password: Password
SSO Key: SSO Key obtained from CCP
API Key: API Key obtained from CCP
Secret Key: Secret Key obtained from CCP
Domain UUID: UUID of Sub Domain (CloudDomain) of ROOT
CloudPlatform IP List (admin port): (CCP VIP):8096
CloudPlatform IP List: (CCP VIP):8080
API Proxy Suffix: csapi
After selecting the Products & defining Costs, we then click on the "ADD" button, but we get a red bar in the Service Instance with the following error:
"Unable to connect to the service target. Please check your configuration."
When we investigate the CPBM-SERVER.LOG file, we see the following:
We are at a loss and would appreciate any guidance in this matter.
Regards,
Hi Leonar,
Could you please attach your CCP & CPBM Logs?
Regards,
Hi Timothy,
Can you please check the time difference between CCP and CPBM machine? The time difference between them should be less than 5 mins for api checks to succeed.
Please reset the time and try again.
Note: I am assuming you gave the same IP in Public host and in CloudPlatform IP List.
Regards,
Shakti
Hi Shakti,
1. The time difference between the CPBM & CCP Machines is 2 hours. This is due to when we installed CentOS, we selected the correct timezone, but when we installed CPBM, there was an option to change it to UTC (We selected yes) I have corrected this and will try again,
2. We tried using the CCP VIP in both fields (Public Host and CloudPlatform IP List) as well as the individual server IP in both fields, but still had no luck.
I will revert with my findings after I have tested Change (1).
Regards,
Hi,
I have changed the date & timezone on all CPBM & CCP Servers so that they correspond. They are also all using the same Local NTP Server. The time difference is sub-milliseconds.
I tested the integration after the change as it still failed, with the same message and error.
Any other tips?
Regards,
Hi Timothy,
Looks like one of your ports is not accessible. Can you please verify the same by making direct API calls to CCP on both the ports?
Attached python script (supported by Python 2.x) will enable you to do the same.
Please run the script once for each of the following configurations (to be updated in first 3 lines of the script).
api_url = '(CCP VIP):8080/client/api/'
apiKey = 'API key of admin user obtained from CCP'
secret = 'Secret key of admin user obtained from CCP'
and
api_url = '(CCP VIP):8096/client/api/'
apiKey = 'API key of admin user obtained from CCP'
secret = 'Secret key of admin user obtained from CCP'
For both the above calls, you should be getting valid results.
Regards,
Shashank
Hi,
We managed to resolve this issue today with Remote Support from Citrix.
The following was done to resolve the issue:
1. All CloudPlatform and CloudPortal Servers need to have the correct time zone and NTP settings. As noted by "Shakti", the time difference cannot be more than 5 minutes.
2. The CloudPortal Servers did not have access to the CloudPlatform MySQL Database. We added a user with the correct privileges.
3. We were using the "Domain Admin" account API & Secret Keys in CloudPlatform to add the service. We needed to use the ROOT admin's API & Secret Keys
4. We were trying to deploy CAS without fully understanding the impact if would have had (and if it was really necessary). CAS was disabled.
5. Our Load balancing Rules were 100% correct (including Content Switching in Netscaler)
We have successfully integrated CloudPlatform 4.2.1 & CPBM 2.1 as well as tested the provisioning.
Thank you goes to both Shakti & Shashank for your input.
Regards,
Hi,
I'm having the exact same problem, and can't find a solution, I already checked the time, the ports and the mysql access but can't find the solution.
Even the scripts Shashank posted runs perfectly. Is there any other possible cause of the error?
Ask, Discuss, Answer