Community
 
 
 

CloudPortal Business Manager 2.x

324 followers
 
Avatar
Timothy Lothering

CPBM 2.1 & CCP 4.2.1 Integration Failing

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:

 

[2013-12-03 13:59:59.370] ERROR catalina-exec-18             com.citrix.cloudstack.client.impl.DefaultCloudServiceImpl         error while checking publicHost, publicPort and protocol 
[2013-12-03 13:59:59.401] ERROR catalina-exec-18             c.c.c.platform.admin.service.impl.ConnectorManagementServiceImpl  Exception in fetching the service Ref.. com.vmops.service.exceptions.CloudServiceException: Unable to connect to the service target. Please check your configuration.

 

We are at a loss and would appreciate any guidance in this matter.

 

Regards,


7 comments
0
 
 

Official comment

Avatar
Timothy Lothering

Hi Leonar,

 

Could you please attach your CCP & CPBM Logs?

 

Regards,


Comment actions Permalink

Please sign in to leave a comment.

 
 

Previous 7 comments

Avatar
Pankaj Paliwal
Avatar

CPBM 2.1 & CCP 4.2.1 Integration Failing

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


Shakti Senapati CITRIX EMPLOYEES
Comment actions Permalink
Avatar
Timothy Lothering

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,


Comment actions Permalink
Avatar
Timothy Lothering

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,

 

 


Comment actions Permalink
Avatar
Pankaj Paliwal
Avatar

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

Attached Files


Shashank Singhal CITRIX EMPLOYEES
Comment actions Permalink
Avatar
Timothy Lothering

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,


Comment actions Permalink
Avatar
Pankaj Paliwal
Avatar

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?


Leonar Castañeda MEMBERS
Comment actions Permalink

Top Contributors