Community
 
 
 

CloudPlatform 4.x

284フォロワー
 
Avatar
Pankaj Paliwal

Cloudstack 4.4 and Xen host

Avatar

Cloudstack 4.4 and Xen host

Hello,

 

I install cloudstack management 4.4 on centos 6.5. Its working. I install Xen on Debian and cannot add host.

Error on management www: Unable to add the host

 

/var/log/cloudstack/management/management-server.log:

 

2014-08-07 08:42:07,981 DEBUG [c.c.a.ApiServlet] (catalina-exec-12:ctx-b52ef4b9) ===START===  192.168.11.36 -- POST  command=addHost&response=json&sessionkey=TDBVfu9JqLq5WqAg8Lhvoe1TBGA%3D
2014-08-07 08:42:07,987 WARN  [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-12:ctx-b52ef4b9 ctx-e70cd28d) Received unknown parameters for command addHost. Unknown parameters : clustertype
2014-08-07 08:42:07,989 INFO  [c.c.r.ResourceManagerImpl] (catalina-exec-12:ctx-b52ef4b9 ctx-e70cd28d) Trying to add a new host at http://192.168.1.3 in data center 1
2014-08-07 08:42:07,992 DEBUG [c.c.h.x.r.XenServerConnectionPool] (catalina-exec-12:ctx-b52ef4b9 ctx-e70cd28d) Unable to create master connection to host(192.168.1.3) , due to org.apache.xmlrpc.XmlRpcException: Failed to read server's response: Connection refused
2014-08-07 08:42:07,993 DEBUG [c.c.h.x.d.XcpServerDiscoverer] (catalina-exec-12:ctx-b52ef4b9 ctx-e70cd28d) other exceptions: com.cloud.utils.exception.CloudRuntimeException: Unable to create master connection to host(192.168.1.3) , due to org.apache.xmlrpc.XmlRpcException: Failed to read server's response: Connection refused
com.cloud.utils.exception.CloudRuntimeException: Unable to create master connection to host(192.168.1.3) , due to org.apache.xmlrpc.XmlRpcException: Failed to read server's response: Connection refused
    at com.cloud.hypervisor.xen.resource.XenServerConnectionPool.getConnect(XenServerConnectionPool.java:168)
    at com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.find(XcpServerDiscoverer.java:215)
.................

 

I install cloadstack 4.4 management: http://thehyperadvisor.com/2013/05/30/cloudstack-management-server-installation-4-0-2/ (change baseurl to 4.4)

Xen install: http://wiki.xenproject.org/wiki/Xen_Project_Beginners_Guide#Download_and_Burn_the_Debian_Installer_CD

 

Can help me ? How to add Xen host to cloudstack management :)

 


Gintaras K MEMBERS
4件のコメント
0

サインインしてコメントを残してください。

 
 

Previous 4件のコメント

Avatar
Erik Godin

Based on:

 

Unable to create master connection to host(192.168.1.3) , due to org.apache.xmlrpc.XmlRpcException: Failed to read server's response: Connection refused

 

 

 

Sounds like the management server can't talk with the XenServer host.  A high level overview of what I would do in that situation:

 

 

- Login to CloudPlatform and make usre CP sees the XenServer host as "Up"

- Either with XenCenter or via SSH on XenServer identify the NIC used for the management network, as well as the IP address assigned to it (which will allow you to determine what network is in use for management communications). 

- SSH to your management server, look at the connected NICs.  One of them should be in the same network as the IP address assigned to your management interface on the XenServer.  Next, try to se if you can  talk between your management server and the host.  A simple ping would be a good start, but also note you should be able to connect to port 443 between management and the XenServer host.


The above might not be enough to solve your problem but should at least put you on the good track.


コメントアクション パーマリンク
Avatar
Pankaj Paliwal
Avatar

On cloudstack management xen host does not exist

 

Network:

 

Public internet -> router (192.168.11.1) -> switch1 -> cloudstack management (192.168.1.2) and xen host xenbr1 (192.168.1.3).

Public internet -> switch2  -> xen host xenbr2

Switch3 -> Xen host xenbr3

 

Management server with one eth, xen host with 3x eth (xenbr1 - magement, xenbr2 public, xenbr3 for vm).

Ping/ssh can connect from management to xen

 

Xen host tcpdump -nn:

01:52:24.133187 IP 192.168.1.2.54520 > 192.168.1.3.443: Flags [S], seq 2969368408, win 14600, options [mss 1460,sackOK,TS val 2299282 ecr 0,nop,wscale 7], length 0
01:52:24.133220 IP 192.168.1.3.443 > 192.168.1.2.54520: Flags [R.], seq 0, ack 2969368409, win 0, length 0
 

Ping:

# ping 192.168.1.2
PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.
64 bytes from 192.168.1.2: icmp_req=1 ttl=64 time=0.546 ms

 

Maybe need install cloudstack host agent soft to xen host ?

 

This log: 2014-08-08 01:59:08,328 WARN  [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-18:ctx-ae5d00c2 ctx-36d1c828) Received unknown parameters for command addHost. Unknown parameters : clustertype

its not good ?


Gintaras K MEMBERS
コメントアクション パーマリンク
Avatar
Erik Godin

Sorry, I do'nt know what I was thinking when I asked that you check if the host shows as "up" under infrastructure, of course it won't, that's what you're trying to accomplish after all (add a host, duh!) .  What I didn't really notice before and I'm noticing now is the error "received unknown parameters for command addhost"   That seems kind of odd to me and after seeing that error, I'm not so sure anymore this is a network issue.  Based on the above, it seems like "Conection refused" might be a poor choice of words to say the transaction couldn't be completed for one reason or another. 

 

 

I'm really not sure where to start as far as "Received unknown parameters [...]", I'd like to suggest you open a ticket with Citrix Support for further assistance.


コメントアクション パーマリンク
Avatar
Pankaj Paliwal
Avatar

I don't have a lot of experience with Xen on Debian, only XenServer. With XenServer, CCP makes needed changes to a new host automatically, as its added. I'm guessing you will need to install an agent manually.

 

--Mike


Michael Little MEMBERS
コメントアクション パーマリンク

Top Contributors