Community
 
 
 

CloudPortal Business Manager 1.x

팔로워 342명
 
Avatar
Pankaj Paliwal

Unable to see cloud capacity statistics on dashboard for new install of CloudPortal BM

Avatar

Unable to see cloud capacity statistics on dashboard for new install of CloudPortal BM

This stack trace is coming up in at least three different installations when the server is starting up. Upon logging into CloudPortal BM as root, the dashboard cloud capacity statistics are not appearing. Why is this problem happening?

ERROR 23 Apr 2012 12:49:11,248:[main:PortalServletContextListener][] Error: Unknown error during Portal initialization, Cloud Service may not work properly.
java.lang.NullPointerException
at com.vmops.web.listeners.PortalServletContextListener.initializedCloudService(PortalServletContextListener.java:82)
at com.vmops.web.listeners.PortalServletContextListener.contextInitialized(PortalServletContextListener.java:63)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

Saw this on CPBM 1.3.4 and CloudStack 3.0.0.

Edited by: davidnol on Apr 23, 2012 2:32 PM


David Noland CITRIX EMPLOYEES
댓글 3개
0
 
 

공식 댓글

Avatar
Pankaj Paliwal
Avatar

The above stacktrace indicated something went wrong while CPBM was trying to copy the SSO key from Cloudstack. This could fail if Cloudstack management server is not running, or port 8096 in the CS node is not opened, or the global config in CS is not set.

If you still see the same issue with CS 3.0.1, please do the following:

1. Create ipTables rule allowing accessing to the port 8096 (only need to be done once on a fresh CS install)
2. Set CS global configuration integration.api.port to 8096
3. Restart the servers
4. If you still see the same error, the workaround is to manually copy SSO key, and also the admin's api_key/secret_key over. Please follow the manual steps below to they keys, then restart CPBM (server restart is not really needed, but it's good to restart so that you know this issue is really solved and there's no other server startup problems).

Steps to manually copy the SSO key, and admin's api_key/secret_key over

1. curl command to find out the SSO key and admin's api_key and secret_key
2. mysql query to update CPBM's db with the keys from #1

1) ssh in to the server running cloudstack management server

a) do the following to get the SSO key:
curl "http://localhost:8096/client/api?command=listConfigurations&name=security.singlesignon.key"

e.g. output
<?xml version="1.0" encoding="ISO-8859-1"?>
<listconfigurationsresponse cloud-stack-version="3.0.1.20120402225003">
<count>1</count>
<configuration>
<category>Secure</category>
<name>security.singlesignon.key</name>
<value>UpMYRhtgQvVsLwOZ24d-OQn2l6ECFCT6x9qgiSfyo0t9bjZgIj0LngJbsh1A8ZrPvQOte-zqk1jScokyeRCzlQ</value>
<description>A Single Sign-On key used for logging into the cloud</description>
</configuration>
</listconfigurationsresponse>

b) and do the following to get admin's api/secret keys
curl "http://localhost:8096/client/api?command=listUsers&username=admin"

e.g. output
<?xml version="1.0" encoding="ISO-8859-1"?>
<listusersresponse cloud-stack-version="3.0.1.20120402225003">
<count>1</count>
<user>
<id>59922f73-e0eb-494a-8784-f046f8d07fae</id>
<username>admin</username>
<firstname>admin</firstname>
<lastname>cloud</lastname>
<created>2012-04-14T09:57:00+0000</created>
<state>enabled</state>
<account>admin</account>
<accounttype>1</accounttype>
<domainid>f95b0190-fbf0-45c3-a169-c26b6c1a44a5</domainid>
<domain>ROOT</domain>
<apikey>3FmVP5zheIGdi4vFNzXVuPSZPQQv8fhPu3vCjXo6GLNSDqSUYVPnoeXXvLpUypMe9UlnMfdBeb4-GVXqjUcp8A</apikey>
<secretkey>DOKmWp1GP52temBBjdBGFspVVzs2v-UZkBFZbkljlgi4doB2XWoS6GmdXtJ99jkzXRNYIj65f3-gXEKWbUqRGw</secretkey>
<accountid>f44cf1eb-d555-4bdb-908c-1373b603873e</accountid>
</user>
</listusersresponse>

2) ssh in to sever running mysql cloud_portal, at command line, type:

mysql -u root -e "update cloud_portal.configuration set value='{value from #1a above}' where name='security.singlesignon.key'"

mysql -u root -e "update cloud_portal.cloud_accounts set api_key='{value of apikey from #1b above}', secret_key='{value of secretkey from #1b above}' where account_name = 'admin'"

Cindy

Edited by: Wan-Harl on Apr 25, 2012 6:35 PM


Wan-Har Liang CITRIX EMPLOYEES
댓글 작업 고유 링크

댓글을 남기려면 로그인하세요.

 
 

Previous 댓글 3개

Avatar
Pankaj Paliwal
Avatar

Unable to see cloud capacity statistics on dashboard for new install of CloudPortal BM

Hi David,

CPBM 1.3.4 does NOT support CS3.0.0.
CPBM 1.3.4 support CS3.0.1.

Please read the CPBM1.3.4 release notes for more information.

Thanks,
Manish


Manish Agarwal CITRIX EMPLOYEES
댓글 작업 고유 링크
Avatar
Pankaj Paliwal
Avatar

I see that you are trying to install CPBM 1.3.4 on CS 3.0.0 (let me know if this was a typo however). 3.0.1 is the CloudStack Acton baseline that is supported by CPBM 1.3.4. Could you try with CS 3.0.1 and let us know if the problem remains.


Balachander Gopalan CITRIX EMPLOYEES
댓글 작업 고유 링크

Top Contributors