Community
 
 
 

CloudPlatform 4.x

284 abonnés
 
Avatar
Pankaj Paliwal

Unable to add xenserver host to cloudstack

Avatar

Unable to add xenserver host to cloudstack

Hello,

 

I installed cloudstack management 4.5.2 on centos 6.5 and I installed Xenserver 6.5 Somehow I'm unable to add de xenserver as host. The Cloudstack server is also running as NFS for sharing the primary and secondary shares. The cloudstack server  can ping the xenserver (hostname and IP-adress).

 

I have to say, I'm new to cloudstack and xenserver and the guides I used are:

 

The log file at(/var/log/cloudstack/management/management-server.log showed the followwing error:

 

2015-10-06 10:04:50,592 DEBUG [c.c.h.Status] (catalina-exec-13:ctx-02b60111 ctx-58b6cd50) Transition:[Resource state = Enabled, Agent event = AgentDisconnected, Host id = 5, name = xenserver]
2015-10-06 10:04:50,592 DEBUG [c.c.h.Status] (catalina-exec-13:ctx-02b60111 ctx-58b6cd50) Cannot transit agent status with event AgentDisconnected for host 5, name=xenserver, mangement server id is 91768838150
2015-10-06 10:04:50,592 ERROR [c.c.a.ApiServer] (catalina-exec-13:ctx-02b60111 ctx-58b6cd50) unhandled exception executing api command: [Ljava.lang.String;@3c18f4ab
com.cloud.utils.exception.CloudRuntimeException: Cannot transit agent status with event AgentDisconnected for host 5, mangement server id is 91768838150,Unable to transition to a new state from Creating via AgentDiscon$
        at com.cloud.agent.manager.AgentManagerImpl.agentStatusTransitTo(AgentManagerImpl.java:1363)
        at com.cloud.resource.ResourceManagerImpl.markHostAsDisconnected(ResourceManagerImpl.java:1749)
        at com.cloud.resource.ResourceManagerImpl.createHostAndAgent(ResourceManagerImpl.java:1810)
        at com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:780)
        at com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:593)
        at sun.reflect.GeneratedMethodAccessor194.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at com.sun.proxy.$Proxy149.discoverHosts(Unknown Source)
        at org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:142)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:141)
        at com.cloud.api.ApiServer.queueCommand(ApiServer.java:704)
        at com.cloud.api.ApiServer.handleRequest(ApiServer.java:529)
        at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:288)
        at com.cloud.api.ApiServlet$1.run(ApiServlet.java:119)
        at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
        at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
        at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
        at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:116)
        at com.cloud.api.ApiServlet.doPost(ApiServlet.java:83)
        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)

 

I also get the folowwing error in the cloudstack gui:

 

Cannot transit agent status with event AgentDisconnected for host 9, mangement server id is 91768838150,Unable to transition to a new state from Creating via AgentDisconnected

 

 

Any kind of help would be appreciated

 

Kind regards,

 

Alex


Alexander Sterk MEMBERS
12 commentaires
0
 
 

Commentaire officiel

Avatar
Pankaj Paliwal
Avatar

Hi Alexander,

 

First we should fix the system VMs part. Only if the secondary storage VM is up we can upload templates and deploy instances. Did you seed the system vm template to secondary storage? from management server?

 

Please refer the 'Prepare the System VM Template' section in install guide.

 

Hi Jithin,

 

Thanks for your reply. I got it all working now. It seems that the NFS shares where the problem. Forgot to posted here that I already found the solution, sorry about that.

 

Kind regards,

 

Alexander


Alexander Sterk MEMBERS
Actions pour les commentaires Permalien

Vous devez vous connecter pour laisser un commentaire.

 
 

Previous 12 commentaires

Avatar
Pankaj Paliwal
Avatar

Unable to add xenserver host to cloudstack

edit:

Somehow I made two posted..


Alexander Sterk MEMBERS
Actions pour les commentaires Permalien
Avatar
Pankaj Paliwal
Avatar

Hello Alexander,

 

Please can you review if we have all the NICs and its labels on Xen Server setup properly?

 

Regards,

 

Abhisek


Abhisek Basu CITRIX EMPLOYEES
Actions pour les commentaires Permalien
Avatar
Pankaj Paliwal
Avatar

Hello Alexander,

 

Please can you review if we have all the NICs and its labels on Xen Server setup properly?

 

Regards,

 

Abhisek

 Hi Abhisek

 

Thanks for your reply. I have the following config on my NIC (see the file). I reinstalled my XEN-server yesterday and choose the 6,2 version (I though there was maybe a weird bug in the 6.5 version). Well, I must made a wrong configuration on the cloudserver or on the xenserver, because I get the same error.

 

Kind regards,

 

Alexander

Attached Thumbnails

  • xenserver nic.png

Alexander Sterk MEMBERS
Actions pour les commentaires Permalien
Avatar
Pankaj Paliwal
Avatar

Hello Alexander,

 

Thanks for the update. Is this the first host we are trying to add?

 

Also, do you have a support from us? A case with few more details would help to address this quickly. Please let me know.

 

Regards,

 

Abhisek


Abhisek Basu CITRIX EMPLOYEES
Actions pour les commentaires Permalien
Avatar
Pankaj Paliwal
Avatar

Hello Abhisek,

 

This is indeed my first host I'm trying to add. I have no support or any kind of SLA. I would love to give more details, what kind of info/config do you want to know?

 

To explain my setup a little better.

 

I want to implement a portal to control a multi hypervisor environments. At the moment I'm already running few hyper-v servers and I want to move the ubuntu servers to the XEN-server.

 

The Cloudstack server in running as a VM on the Hyper-v server and the XEN-server is running a physical server. They are in a separate subnet and can reach each other.

 

Kind regards,

 

Alexander


Alexander Sterk MEMBERS
Actions pour les commentaires Permalien
Avatar
Pankaj Paliwal
Avatar

Hello Alexander,

 

Is this basic / advance zone?

Is the Xen Server a physical system?

 

Regards,

 

Abhisek


Abhisek Basu CITRIX EMPLOYEES
Actions pour les commentaires Permalien
Avatar
Pankaj Paliwal
Avatar

Hi Abhisek,

 

I choose the basic zone and the Xen-server 6.2 is installed on a physical server. The first time I installed XEN-server 6.5, I choose the advance zone and followed all the config steps there.

 

Is it maybe the Cloudstack server? I used most of the commands from this youtube movie. Of course I change the IP-address range at the IP-tables commands and some old commands like cloud-setup-management.

 

Kind regards,

 

Alexander

 

edit:

 

I see a interested error in the log file:

 

2015-10-07 13:41:55,697 INFO  [c.c.h.x.d.XcpServerDiscoverer] (AgentTaskPool-14:ctx-70b5f35c) Host: xenserver.vboxx.nl connected with hypervisor type: XenServer. Checking CIDR...
2015-10-07 13:41:55,712 DEBUG [c.c.r.ResourceState] (AgentTaskPool-14:ctx-70b5f35c) Resource state update: [id = 1; name = xenserver.vboxx.nl; old state = Enabled; event = InternalCreated; new state = Enabled]
2015-10-07 13:41:55,713 DEBUG [c.c.h.Status] (AgentTaskPool-14:ctx-70b5f35c) Transition:[Resource state = Enabled, Agent event = AgentConnected, Host id = 1, name = xenserver.vboxx.nl]
2015-10-07 13:41:55,718 DEBUG [c.c.a.m.ClusteredAgentManagerImpl] (AgentTaskPool-14:ctx-70b5f35c) create ClusteredDirectAgentAttache for 1
2015-10-07 13:41:55,718 INFO  [c.c.a.m.DirectAgentAttache] (AgentTaskPool-14:ctx-70b5f35c) StartupAnswer received 1 Interval = 60
2015-10-07 13:41:55,720 DEBUG [c.c.a.m.AgentManagerImpl] (AgentTaskPool-14:ctx-70b5f35c) Sending Connect to listener: XcpServerDiscoverer
2015-10-07 13:41:55,722 DEBUG [c.c.h.x.d.XcpServerDiscoverer] (AgentTaskPool-14:ctx-70b5f35c) Setting up host 1
2015-10-07 13:41:55,726 DEBUG [c.c.a.t.Request] (AgentTaskPool-14:ctx-70b5f35c) Seq 1-799670408834973697: Sending  { Cmd , MgmtId: 91768838151, via: 1(xenserver.vboxx.nl), Ver: v1, Flags: 100111, [{"com.cloud.agent.api.SetupCommand$
2015-10-07 13:41:55,727 DEBUG [c.c.a.t.Request] (AgentTaskPool-14:ctx-70b5f35c) Seq 1-799670408834973697: Executing:  { Cmd , MgmtId: 91768838151, via: 1(xenserver.vboxx.nl), Ver: v1, Flags: 100111, [{"com.cloud.agent.api.SetupComm$
2015-10-07 13:41:55,727 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-414:ctx-718fc30e) Seq 1-799670408834973697: Executing request
2015-10-07 13:41:55,744 INFO  [c.c.h.x.r.CitrixResourceBase] (DirectAgent-414:ctx-718fc30e) Host 10.1.10.249 OpaqueRef:c88bbf19-9aae-312a-2578-b14abf1a2a99: Host 10.1.10.249 is already setup.
2015-10-07 13:41:55,754 INFO  [c.c.h.x.r.CitrixResourceBase] (DirectAgent-414:ctx-718fc30e) Host 10.1.10.249 OpaqueRef:c88bbf19-9aae-312a-2578-b14abf1a2a99: Host 10.1.10.249 is already setup.
2015-10-07 13:41:55,981 WARN  [c.c.h.x.r.CitrixResourceBase] (DirectAgent-414:ctx-718fc30e) Failed to configure brige firewall
2015-10-07 13:41:55,981 WARN  [c.c.h.x.r.CitrixResourceBase] (DirectAgent-414:ctx-718fc30e) Check host 10.1.10.249 for CSP is installed or not and check network mode for bridge
2015-10-07 13:41:55,981 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-414:ctx-718fc30e) Seq 1-799670408834973697: Response Received:
2015-10-07 13:41:55,982 DEBUG [c.c.a.t.Request] (DirectAgent-414:ctx-718fc30e) Seq 1-799670408834973697: Processing:  { Ans: , MgmtId: 91768838151, via: 1, Ver: v1, Flags: 110, [{"com.cloud.agent.api.SetupAnswer":{"_reconnect":true$
2015-10-07 13:41:55,982 DEBUG [c.c.a.t.Request] (AgentTaskPool-14:ctx-70b5f35c) Seq 1-799670408834973697: Received:  { Ans: , MgmtId: 91768838151, via: 1, Ver: v1, Flags: 110, { SetupAnswer } }
2015-10-07 13:41:55,982 WARN  [c.c.h.x.d.XcpServerDiscoverer] (AgentTaskPool-14:ctx-70b5f35c) Unable to setup agent 1 due to Failed to configure brige firewall
2015-10-07 13:41:55,982 INFO  [c.c.u.e.CSExceptionErrorCode] (AgentTaskPool-14:ctx-70b5f35c) Could not find exception: com.cloud.exception.ConnectionException in error code list for exceptions
2015-10-07 13:41:55,982 WARN  [c.c.a.m.AgentManagerImpl] (AgentTaskPool-14:ctx-70b5f35c) Monitor XcpServerDiscoverer says there is an error in the connect process for 1 due to Reinitialize agent after setup.
2015-10-07 13:41:55,982 INFO  [c.c.a.m.AgentManagerImpl] (AgentTaskPool-14:ctx-70b5f35c) Host 1 is disconnecting with event AgentDisconnected
2015-10-07 13:41:55,984 DEBUG [c.c.a.m.AgentManagerImpl] (AgentTaskPool-14:ctx-70b5f35c) The next status of agent 1is Alert, current status is Connecting
2015-10-07 13:41:55,984 DEBUG [c.c.a.m.AgentManagerImpl] (AgentTaskPool-14:ctx-70b5f35c) Deregistering link for 1 with state Alert
2015-10-07 13:41:55,984 DEBUG [c.c.a.m.AgentManagerImpl] (AgentTaskPool-14:ctx-70b5f35c) Remove Agent : 1
 


Alexander Sterk MEMBERS
Actions pour les commentaires Permalien
Avatar
Pankaj Paliwal
Avatar

Hello Alexander,

 

While setting up the basic zone, did you change the xen server switch mode to be bridge? This needs a host reboot as well.

 

# xe-switch-network-backend  bridge

 

Regards,

 

Abhisek


Abhisek Basu CITRIX EMPLOYEES
Actions pour les commentaires Permalien
Avatar
Pankaj Paliwal
Avatar

Hello Alexander,

 

While setting up the basic zone, did you change the xen server switch mode to be bridge? This needs a host reboot as well.

 

# xe-switch-network-backend  bridge

 

Regards,

 

Abhisek

HI Abhisek,

 

I didn't config that command, because the server is now connected! Thanks for the info and help!

 

Kind regards,

 

Alexander

 


Alexander Sterk MEMBERS
Actions pour les commentaires Permalien
Avatar
Pankaj Paliwal
Avatar

HI Abhisek,

 

I got one small question. I'm now at the part where I have to create the primary and secondary storage. I made the primary storage on the XEN-server and the secondary storage on the cloudstack server. I added a image on the template page. Now I'm trying to add a instance and somehow I cant select a ISO (see attached file). I checked the official guide and I so far I know didn't miss any needed commands. I created the nfs share on the XEN-server with the cli, not with the storage repository. It seems that the console proxy vm and the secondary storage vm are not running either.
 

Kind regards,

 

Alexander

Attached Thumbnails

  • instance.png
  • instance2.png

Alexander Sterk MEMBERS
Actions pour les commentaires Permalien
Avatar
Pankaj Paliwal
Avatar

Hi Alexander,

 

First we should fix the system VMs part. Only if the secondary storage VM is up we can upload templates and deploy instances. Did you seed the system vm template to secondary storage? from management server?

 

Please refer the 'Prepare the System VM Template' section in install guide.


Jithin Raju CITRIX EMPLOYEES
Actions pour les commentaires Permalien

Top Contributors