CP1.4 & CS3.0.3 Integration Issues
HI Everyone,
I have been working on Integrating the New Cloud Portal Business Manager 1.4 with my CloudPlatform 3.0.3 (formerly CloudStack) in my test lab for a POC. I am using XenServer 6.0.2 as my Hypervisor. I have 2 dedicated machines that I have installed CPBM and CS on respectively all running CentOS 6.2 X64.
Individually the install was quite simple and I have both machines up and running. The CS machine is happily integrated into XenServer and I have my Zones, Pods and clusters all set to go. I then ran the CPBM install.sh script to execute the "Integrate Into CloudStack" script and I manually added an IPTABLES rule for the API port 8096.
I can CURL to the 8096 port with no issues and even browse via chrome from my laptop in my test lab. So far everything seems to be in order. The issues come when I try and actually make the two communicate with each other.
On my CPBM server I edited the cloud.properties file section:
################################################################################
# CloudStack Usage Database configuration
################################################################################
usage.jdbc.url=jdbc:mysql://172.17.7.206/cloud_usage?useUnicode=true&characterEncoding=utf8
usage.jdbc.username=[username]
usage.jdbc.password=[username]
usage.jdbc.database.schemaname=cloud_usage
# Cloud Stack core Database Configuration
cloud.jdbc.url=jdbc:mysql://172.17.7.206/cloud?useUnicode=true&characterEncoding=utf8
cloud.jdbc.username=[username]
cloud.jdbc.password=[password]
cloud.jdbc.database.schemaname=cloud
################################################################################
# CloudStack Server information
################################################################################
vmops.mgmt.server.publicHost=172.17.7.206
vmops.mgmt.server.publicPort=8080
vmops.mgmt.server.publicProtocol=http
# Semicolon separated list of host:port pairs of management server instances
vmops.mgmt.server.serverList=172.17.7.206:8096
vmops.mgmt.server.nonAdminServerList=172.17.7.206:8080
I have also verified that the admin user in the cloud_portal.cloud_users has the api_key and secret_key from the CS system with the following API call:
http://172.17.7.206:8096/client/api?command=listConfigurations&name=security.singlesignon.key
and
http://172.17.7.206:8096/client/api?command=listUsers&username=admin
I then made sure that the security.singlesignon.key was populated from the 1st query above with the API key from CS. I had to do all this manually as it never transferred automatically. I then reboot both servers and lowered the firewalls through a "service iptables stop" just to be sure that there is nothing blocking on either side.
When I go into my CPBM I finally saw my stats populated after about 20 minutes. When I click the "Launch Console" button it opens another window with the following URL:
http://172.17.7.206:8080/client/?username=admin&domainid=1×tamp=1341254450556&signature=%2FsxMl%2F4mE%2FQJAQWtVM9p7nnvL7c%3D&tz=5.50¤cyFormat=%23%23%23%2C%23%23%23.%23%23%3B%28%23%23%23%2C%23%23%23.%23%23%29&ticketCapabilities=C&showDelinquent=false¤cyPrecision=none&sharedCloudAccount=false&minFractionDigits=2
It fails to connect with a message of:
"Login to CloudSTack failed"
It goes on to say:
"The webpage your viewing is trying to close the tab"
If I hit no to not close the tab, I am starring at the CloudStack login page with the above URL. I can however login without issue.
Since I am so close to getting everything to work, I am going to assume I have something screwy in the cloudstack section of the cloud.properties config file on my CPBM server. Obviously my DB is working correctly since I can see stats. But the launch cloud console I though depended on the API key from the singleton settings in the Global Settings. I know they are correct as I have compared them dozens of times.
Any help I can get to get the other half of this stack working would be awesome. I will write a rant about ProdDocs later :-)
Edited by: Timothy Schilbach on Jul 3, 2012 3:35 PM