The management server's log files can be pretty busy and difficult to parse. For errors on adding a host, you might want to login to CCP GUI using the admin account and look under the "General Alerts" which is much more filtered and shows more interesting information. Specifically about XenServers:
- All XenServers consider themselves to be part of their own pool and their own poolmasters. Once you've configured your first host in CCP GUI, you could make sure you join the subsequent XenServers to the pool by telling them the connection information for the pool master before adding them to the CCP GUI
- If you're using bonded NICs, there's a special script you have to run before adding the new host to the existing CloudPlatform cluster.
I don't have any other ideas for now. Start by looking at General Alerts and maybe you'll find some insightful information which can help you solve this problem.
Last but not least, I'd like to point out that as per the Citrix CloudPlatform Admin Guide:
A new XenServer being added to an existing cluster should be void of any VMs.
Other links
CloudPlatform 3.x
Unable to Add Host
Unable to Add Host
I have finished the trial install, logged into the UI and started the initial config of the Cloud trial. I was able to enter the Zone, Cluster, POD and storage information. Finally, I was able to enter the information for the host, which for me is Xenserver 6.2. I enter the IP address (which is pingable) username (root) and password, then select "Launch" on the following screen. Everything appears to be configuring except the host where I receive the message "Unable to Add Host". I checked the /var/log/cloud/management/management-server.log and the access log, but could not find any errors. Any help would be appreciated. Thanks.
Previous 9 comentários
Hi, usually any error text in the UI can be found in the management-server.log, so try to find the exact error text, or just search for "Unable". Once you find it, scroll up in the log to find the specifics of why the host could not be added. If for some reason you can't find the error text in the log, you can search for keywords like "ERROR", "WARN", "Fail", "Unable", "Exception", and "Invalid". Once you find an entry that might be related to the problem, open the log file, navigate to that line, and check the related entries to find the problem. If you can't find anything, upload the log somewhere so we can take look.
Best regards,
{color:#555555}Kirk Kosinski{color}
{color:#999999}MCITP: EA / VA / EDA7, VCP 4 / 5, CCA{color}
Edited by: Kirk Kosinski on Jul 13, 2013 6:37 PM
I too am now having this issue, and I have tried a 6.1 and 6.2 XenServer host. Here is the portion of the catalina.out
*WARN [cloud.api.ApiDispatcher] (catalina-exec-25:) class com.cloud.api.ServerApiException : Unable to add the host
INFO [cloud.resource.ResourceManagerImpl] (catalina-exec-18:) Trying to add a new host at http://10.10.10.151 in data center 1
WARN [cloud.resource.ResourceManagerImpl] (catalina-exec-18:) Unable to find the server resources at http://10.10.10.151
WARN [api.commands.AddHostCmd] (catalina-exec-18:) Exception:
com.cloud.exception.DiscoveryException: Unable to add the host
at com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:824)
at com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:632)
at com.cloud.api.commands.AddHostCmd.execute(AddHostCmd.java:136)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:263)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:545)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:429)
at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:307)
at com.cloud.api.ApiServlet.doPost(ApiServlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)
WARN [cloud.api.ApiDispatcher] (catalina-exec-18:) class com.cloud.api.ServerApiException : Unable to add the host*
Here is the managment-server.log
*2013-07-13 20:43:29,598 WARN [cloud.resource.ResourceManagerImpl] (catalina-exec-18:null) Unable to find the server resources at http://10.10.10.151
2013-07-13 20:43:29,598 WARN [api.commands.AddHostCmd] (catalina-exec-18:null) Exception:
com.cloud.exception.DiscoveryException: Unable to add the host
at com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:824)
at com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:632)
at com.cloud.api.commands.AddHostCmd.execute(AddHostCmd.java:136)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:263)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:545)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:429)
at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:307)
at com.cloud.api.ApiServlet.doPost(ApiServlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)
2013-07-13 20:43:29,600 WARN [cloud.api.ApiDispatcher] (catalina-exec-18:null) class com.cloud.api.ServerApiException : Unable to add the host*
Any ideas? Kind of stuck at the moment and can't move forward
Figured it out. The reason is because I am running XenServer inside of VMware Workstation. You need to make a change to the MySQL database. Enter in the following at a terminal:
mysql -u root
INSERT INTO `cloud`.`configuration` (`category`,
`instance`, `component`, `name`,
`value`, `description`) VALUES ('Advanced', 'DEFAULT',
'management-server',
'xen.check.hvm', 'false', 'Should we allow only the
XenServers support HVM');
commit
\q
Restart the MySQL service and you should be good to go: http://labs.citrixsynergy.net/synergy/ilt/ILT_602.pdf page 42
XenServer 6.2 is not (yet?) supported on CloudPlatform 3.0.6
You need to use XS6.1 with all hotfixes applied
Relevant log record:
DEBUG [xen.discoverer.XcpServerDiscoverer] (catalina-exec-4:null) other exceptions: java.lang.RuntimeException: Only support XCP 1.0.0, 1.1.0, 1.5 beta; XenServer 5.6, XenServer 5.6 FP1, XenServer 5.6 SP2, Xenserver 6.0, 6.0.2, 6.1.0 but this one is XenServer 6.2.0
I was trying to add a XenServer 6.2 host so I appreciate the clarification. Once I was able to login to the cloud platform I was able to see messages on the Dashboard and Alert screen. Reading the messages it the reason for the host to being able to be added was because of HVM not being enabled. This is only a pilot project for me and I was trying to run Xenserver within Xenserver. I installed Xenserver 6.1 VM and still unable to add the host. All my other Xenservers are live and have live VMs on them. Any way to get HVM enabled ? Thanks.
Hi,
XenServer-on-XenServer configuration is not formally supported. I've seen it working though, but I don't have the information about how to make it work. I'd suggest to put the Management Server (with mysql) on a VM on another machine (for my first lab I used Hyper-V on my own Windows 8 laptop). In this case, for performance reasons, NFS shares should be better hosted on a different host.
All the best,
Corneliu
Did you not see my post? This will fix the HVM problem.
mysql -u root
INSERT INTO `cloud`.`configuration` (`category`,
`instance`, `component`, `name`,
`value`, `description`) VALUES ('Advanced', 'DEFAULT',
'management-server',
'xen.check.hvm', 'false', 'Should we allow only the
XenServers support HVM');
commit
\q
Participate
Ask, Discuss, Answer





