Community
 
 
 

CloudPortal Business Manager 2.x

324 followers
 
Avatar
Pankaj Paliwal

CloudPlatform Integration

Avatar

CloudPlatform Integration

Hi have installed a test setup of CP 3.0.6 and CPBM 2.0.1.

When trying to add the CP CloudService we have encountered an issue where we get an error of "Service Instance could not be created."

I suspect the issue is with 2 values which are a little unclear to me and don't seem to be explained very thoroughly in the setup documentation - "Cloud Platform domain Uuid" and "API Proxy Suffix".

If anyone can shed any light on what these two values represent and where to derive the right settings, that would be very much appreciated.

Thank you all in advance!
Eric


Eric Neumann MEMBERS
19 comments
0

Please sign in to leave a comment.

 
 

Previous 19 comments

Avatar
Pankaj Paliwal
Avatar

CloudPlatform Integration

Hi Eric,

"Cloud Platform domain Uuid": is the UUID of a domain in CloudPlatform under which all channels and account in CPBM will be created, when CloudPlatform services are enabled.
"API Proxy Suffix": It is a suffix which need to be appended to the endpoint to which API calls can be made via CPBM.
For example, if you want to make API calls to any CCP instance, then you have to make call to an endpoint like this, "http://<CPBM>/portal/client/apis/<myAPIProxySuffixValue>/", where "myAPIProxySuffixValue" will be the API Proxy suffix for the CCP instance you want to use.

Thanks,
Manish


Manish Agarwal CITRIX EMPLOYEES
Comment actions Permalink
Avatar
Pankaj Paliwal
Avatar

Firstly, thanks for the response and info - very much appreciated!

With regards to the UUID, i've just attached a screenshot from CCP to confirm if this is the UUID in question or if it is found elsewhere.

In terms of the API Proxy suffix, cloud you confirm if my understanding listed below is accurate?

The API proxy suffix is used by CPBM to separate API calls between instances of services. As such that suffix is unique within CPBM and not something that's configured within CCP or anywhere else outside CPBM. That also means the API proxy suffix can be any value as long as it's unique within that CPBM installation.

Thank you again for your help!
Eric

Attached Files

  • Attached File  ccp.PNG   17.51K   0 downloads

Eric Neumann MEMBERS
Comment actions Permalink
Avatar
Pankaj Paliwal
Avatar

Hi Eric,

Thats correct. Your screenshot shows the correct field.

And your understanding of "API Proxy Suffix" is also correct.

Thanks,
Manish


Manish Agarwal CITRIX EMPLOYEES
Comment actions Permalink
Avatar
Pankaj Paliwal
Avatar

Hi Manish,

Once again, thank you very much!

In that case, where would be the best place to troubleshoot the "Service Instance could not be created." error I have been getting when trying to add a CCP instance? Are these service provisioning actions tracked in a particular log, etc?

Cheers,
Eric


Eric Neumann MEMBERS
Comment actions Permalink
Avatar
Thura Minn minn

Hi Eric,

By your post I issume that you can enable CloudPlatform first without error.

In my case, i got following error even when enabling CloudPlatform.
Unable to inject com/citrix/cpbm/platform/admin/service/utils/BootstrapServiceXmlBean$JaxbAccessorF_bootstrap java.lang.reflect.InvocationTargetException: null

And if I add the CloudPlatform, I got the error 'Error creating bean with name 'cloudService'' which I think is same as yours.

Would the first error be the cause of second error?

Regards,
Thura Minn Minn


Comment actions Permalink
Avatar
Pankaj Paliwal
Avatar

Hi Minn,
acknowledging your update, we are working on it.
Thanks,
Vaibhav


vaibhav gupta MEMBERS
Comment actions Permalink
Avatar
Pankaj Paliwal
Avatar

Hi Minn,
Would you please provide us the output of following query -

select * from cloud_portal.service_instance_configuration;

Thanks,
Vaibhav


vaibhav gupta MEMBERS
Comment actions Permalink
Avatar
Thura Minn minn

Hi Vaibhav,

Unfortunately there is no data.

mysql> select * from cloud_portal.service_instance_configuration;
Empty set (0.00 sec)

Could you advice where i am wrong.

Thanks,
Thura Minn Minn


Comment actions Permalink
Avatar
Pankaj Paliwal
Avatar

Hi ThuraMM,
Can you please let me know the values used for following fields
1.CloudPlatform IP List (admin port)
2.CloudPlatform IP List

Regards
Amit Saluja


Amit Pal Saluja CITRIX EMPLOYEES
Comment actions Permalink
Avatar
Thura Minn minn

Hi Saluja

1.CloudPlatform IP List (admin port)
?10.148.121.3
2.CloudPlatform IP List
?10.148.121.3

There is only one CCP server and I use CloudPlatform IP for both field.

But I not very clear about the difference between these two fields.

Thanks
Thura Minn Minn


Comment actions Permalink
Avatar
Thura Minn minn

Hi Saluja,

*ip:port* solved the issue!!!

The instance is added now without error.

Many thanks,
Thura Minn Minn


Comment actions Permalink
Avatar
Pankaj Paliwal
Avatar

Hi Minn,

1. CloudPlatform IP List (admin port), is used for making admin api calls from CPBM to CCP.
2. CloudPlatform IP List, is used for normal call from CPBM to CCP.

Expected format of values in these fields is <ip>:<port>
a. Admin port is :8096
b.normal access port is 8080.

Please try with the following values
1.CloudPlatform IP List (admin port)
?10.148.121.3:8096
2.CloudPlatform IP List
?10.148.121.3:8080

Regards
Amit Saluja


Amit Pal Saluja CITRIX EMPLOYEES
Comment actions Permalink
Avatar
Thura Minn minn

Hi Saluja,

The addition of cloud instance worked well.

But should I ignore the following error log I got when enabling(not adding) CloudPlatform?
(The CloudPlatform got enabled though.)
Unable to inject com/citrix/cpbm/platform/admin/service/utils/BootstrapServiceXmlBean$JaxbAccessorF_bootstrap java.lang.reflect.InvocationTargetException: null

Thanks,
Thura Minn Minn


Comment actions Permalink
Avatar
Pankaj Paliwal
Avatar

Hi Minn,
Kindly provide detailed logs(complete exception) and out put of following query
1. select * from cloud_portal.service_instance;
2. select * from cloud_portal.service_instance_configuration;

Regards
Amit Saluja


Amit Pal Saluja CITRIX EMPLOYEES
Comment actions Permalink
Avatar
Thura Minn minn

Hi Saluja,

Thanks for your reply.

I have checked the very first log file in which I found other errors.
Would you also kindly advice on what I should do with these following errors.
1) ERROR system-artifacts org.apache.catalina.mbeans.GlobalResourcesLifecycleListener No global naming context defined for server

2) ERROR pool-1-thread-1 org.apache.catalina.startup.HostConfig Application base [/usr/share/vts3/webapps] for host [localhost] does not exist or is not a directory.

3) ERROR fs-watcher

4) Failure Details: Binary logging not possible. Message: Transaction level 'READ-UNCOMMITTED' in InnoDB is not safe for binlog mode 'STATEMENT' java.sql.SQLException:

Here are server log file and sql output file.

Thanks,
Thura Minn Minn

Attached Files


Comment actions Permalink
Avatar
Pankaj Paliwal
Avatar

Hi Minn,
It seems,The instance is Enabled successfully. As of now you can over look the xml error in the log.
With regards to the points 1-4 in previous reply from you , will analyze and get back to you ASAP.

Regards
Amit Saluja


Amit Pal Saluja CITRIX EMPLOYEES
Comment actions Permalink
Avatar
Pankaj Paliwal
Avatar

Hi Minn,
You can safely ignore points 1,2 and 3. From your previous reply. For point 4

4) Failure Details: Binary logging not possible. Message: Transaction level 'READ-UNCOMMITTED' in InnoDB is not safe for binlog mode 'STATEMENT' java.sql.SQLException:

Please refer the step 4 of Installing MySQL section of installation doc.
Link: [ http://support.citrix.com/proddocs/topic/ccpb-20-map/ccpb-install.html]

Regards
Amit Saluja


Amit Pal Saluja CITRIX EMPLOYEES
Comment actions Permalink
Avatar
Pankaj Paliwal
Avatar

Hi Minn,
For point 4 (Binary logging not possible. Message: Transaction level) the fix is to
1. Check if your my.cnf have log-bin config,
# grep log-bin /etc/my.cnf
log-bin=mysql-bin
2.Comment it
#log-bin=mysql-bin

Regards
Amit Saluja


Amit Pal Saluja CITRIX EMPLOYEES
Comment actions Permalink
Avatar
Pankaj Paliwal
Avatar

Hi,
I am also getting the same exception as in point 4) Failure Details: Binary logging not possible. Message: Transaction level 'READ-UNCOMMITTED' in InnoDB is not safe for binlog mode 'STATEMENT' java.sql.SQLException.

MySQL was installed by the CPBM installation and the default my.cnf file contains two "log-bin=mysql-bin" entries - one commented and one uncommented(commenting this seems to remove the above exception).

When adding the CloudPlatform service, what and source for populating the following fields:

1. SSO key - what is this key refering to and where is the value obtained from?
2. API key, Secret key, CloudPlatform domain Uuid - are these values obtained from an existing CCP user eg. the admin user or another user?

Also what are all the above fields used for?

Thanks


TARIQ IQBAL MEMBERS
Comment actions Permalink

Top Contributors