You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Maurice Lawler <ma...@me.com> on 2014/02/13 05:28:58 UTC

XEN | CentOS | Cloud 4.2 | Error Message - Agent Disconnected.

Hello,

Can someone shed some light on this error message?

  * Something went wrong; please correct the following:
    Cannot transit agent status with event AgentDisconnected for host 1,
    mangement server id is 161344192609,Unable to transition to a new
    state from Creating via AgentDisconnected


=============


2014-02-12 23:25:03,365 DEBUG [agent.manager.AgentManagerImpl] 
(catalina-exec-12:null) Sending Disconnect to listener: 
com.cloud.consoleproxy.ConsoleProxyListener
2014-02-12 23:25:03,366 DEBUG [cloud.host.Status] 
(catalina-exec-12:null) Transition:[Resource state = Enabled, Agent 
event = AgentDisconnected, Host id = 1, name = node1.domain.com]
2014-02-12 23:25:03,447 DEBUG [cloud.host.Status] 
(catalina-exec-12:null) Agent status update: [id = 1; name = 
node1.domain.com; old status = Connecting; event = AgentDisconnected; 
new status = Alert; old update count = 1; new update count = 2]
2014-02-12 23:25:03,448 DEBUG [agent.manager.ClusteredAgentManagerImpl] 
(catalina-exec-12:null) Notifying other nodes of to disconnect
2014-02-12 23:25:03,449 WARN  [cloud.resource.ResourceManagerImpl] 
(catalina-exec-12:null) Unable to connect due to
com.cloud.utils.exception.CloudRuntimeException: Unable to connect 1
     at 
com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:606)
     at 
com.cloud.agent.manager.AgentManagerImpl.handleDirectConnectAgent(AgentManagerImpl.java:1482)
     at 
com.cloud.resource.ResourceManagerImpl.createHostAndAgentDeferred(ResourceManagerImpl.java:1872)
     at 
com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:778)
     at 
com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:590)
     at 
org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
     at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
     at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
     at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
     at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
     at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
     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:701)
Caused by: java.lang.ClassCastException: com.cloud.agent.api.Answer 
cannot be cast to com.cloud.agent.api.SetupAnswer
     at 
com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.processConnect(XcpServerDiscoverer.java:646)
     at 
com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:587)
     ... 27 more
2014-02-12 23:25:03,450 DEBUG [cloud.host.Status] 
(catalina-exec-12:null) Transition:[Resource state = Enabled, Agent 
event = AgentDisconnected, Host id = 1, name = node1.domain.com]
2014-02-12 23:25:03,450 DEBUG [cloud.host.Status] 
(catalina-exec-12:null) Cannot transit agent status with event 
AgentDisconnected for host 1, name=node1.domain.com, mangement server id 
is 161344192609
2014-02-12 23:25:03,450 ERROR [cloud.api.ApiServer] 
(catalina-exec-12:null) unhandled exception executing api command: addHost
com.cloud.utils.exception.CloudRuntimeException: Cannot transit agent 
status with event AgentDisconnected for host 1, mangement server id is 
161344192609,Unable to transition to a new state from Creating via 
AgentDisconnected

Re: XEN | CentOS | Cloud 4.2 | Error Message - Agent Disconnected.

Posted by Daan Hoogland <da...@gmail.com>.
Ok,  please file a bug at issues. Apache. Org / jira . My provider decided
i am not an important customer and is leaving me without collectiviteit
over the weekend. So i will be very irresponsive. But ill try and think
about any other vlees you can give.

mobile bilingual spell checker used
Op 14 feb. 2014 21:14 schreef "Mo" <mo...@daoenix.com>:

>  Build myself? vhd-util? or Cloudstack, both downloaded from directions
> provided on the cloudstack site.
>
> - Maurice
>
>
> On 2/14/14, 2:56 PM, Daan Hoogland wrote:
>
> I'm nooit sure for What version the location i mentioned was introduced.i
> think it was 4.3 but as you run in startup problems i am shooting at the
> bear. Did you build yourself or  download a distro?
>
> mobile bilingual spell checker used
> Op 14 feb. 2014 16:53 schreef "Mo" <mo...@daoenix.com>:
>
>> Dan,
>>
>> No insult taken, I placed the vhd-util not in /opt/cloud/bin -- but, as
>> the directions say into: /usr/share/cloudstack-common/scripts/vm/hypervisor
>> (on the management server I did this)
>>
>> Is this still the common place for this file, or?
>>
>> - Mo
>>
>>
>> On 2/14/14, 8:50 AM, Daan Hoogland wrote:
>>
>>> easiest is to check the xen installation for cloudstack components. It
>>> looks like something is missing there. I don't want to try and insult
>>> you but did you throw vhd-util in /opt/cloud/bin? This is a long shot
>>> as SetupAnswer is part of the core and is created by the xen agent for
>>> your hypervisor which is running in the management server. The agents
>>> sends a command to the hypervisor and gets a different type of answer
>>> then it expects.
>>>
>>> Can you file a bug and track whatever you find in there?
>>>
>>> And if you re-install please try the 4.3 release candidate to see it
>>> is in there still.
>>>
>>> regards,
>>>
>>> On Fri, Feb 14, 2014 at 1:04 PM, Mo <mo...@daoenix.com> wrote:
>>>
>>>> Thoughts on how to proceed past this point? A reload of both XEN &
>>>> Cent? Or,
>>>> should I revert to what I know works rather well, Cloudstack & KVM? :)
>>>>
>>>> - mo
>>>>
>>>> On 2/14/14, 7:01 AM, Daan Hoogland wrote:
>>>>
>>>>> well this;
>>>>>
>>>>> Caused by: java.lang.ClassCastException: com.cloud.agent.api.Answer
>>>>> cannot be cast to com.cloud.agent.api.SetupAnswer
>>>>>       at
>>>>>
>>>>> com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.processConnect(XcpServerDiscoverer.java:646)
>>>>>       at
>>>>>
>>>>> com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:587)
>>>>>
>>>>> would indicate a bug. It shouldn't happen.
>>>>>
>>>>> On Fri, Feb 14, 2014 at 12:58 PM, Mo <mo...@daoenix.com> wrote:
>>>>>
>>>>>> This is a fresh install of both Xen & CentOS. What I am attempting to
>>>>>> do
>>>>>> is
>>>>>> make the primary IP address 10.x IP and the secondary public 96, or
>>>>>> 196
>>>>>> subnet. I VPN'd into the management server proceeded to set it up
>>>>>> database,
>>>>>> vdh-util, etc, marked my traffic at Xen, setup mount points, and then
>>>>>> went
>>>>>> to the UI to proceed to set it up. All IP information aside from the
>>>>>> obvious
>>>>>> public was 10.x nature.
>>>>>>
>>>>>> But looking at the error again, it seems as though UUIDs are being
>>>>>> overwritten and perhaps there are segments of a previous setup, so I
>>>>>> see
>>>>>> where that came from; but no... it's 100% (well when I got the error)
>>>>>> it
>>>>>> was
>>>>>> 100% brand new.
>>>>>>
>>>>>> *scratches his head*
>>>>>>
>>>>>> - Mo
>>>>>>
>>>>>>
>>>>>>
>>>>>> On 2/14/14, 4:57 AM, Daan Hoogland wrote:
>>>>>>
>>>>>>> Did you upgrade this env? My first thought would be that a component
>>>>>>> is left behind. The class cast exception makes me think along that
>>>>>>> line.
>>>>>>>
>>>>>>> On Thu, Feb 13, 2014 at 11:56 PM, Mo <mo...@daoenix.com> wrote:
>>>>>>>
>>>>>>>> Cloudstack 4.2 (CentOS) , Xen Sever 6.2. Two servers.
>>>>>>>> On Feb 13, 2014 5:41 PM, "Daan Hoogland" <da...@gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>  Maurice,
>>>>>>>>>
>>>>>>>>> what version are you running on what kind of environment?
>>>>>>>>>
>>>>>>>>> thanks,
>>>>>>>>> Daan
>>>>>>>>>
>>>>>>>>> On Thu, Feb 13, 2014 at 5:32 AM, Mo <mo...@daoenix.com> wrote:
>>>>>>>>>
>>>>>>>>>> Hello,
>>>>>>>>>>
>>>>>>>>>> Can someone shed some light on this error message?
>>>>>>>>>>
>>>>>>>>>>     * Something went wrong; please correct the following:
>>>>>>>>>>       Cannot transit agent status with event AgentDisconnected for
>>>>>>>>>> host
>>>>>>>>>> 1,
>>>>>>>>>>       mangement server id is 161344192609,Unable to transition to
>>>>>>>>>> a
>>>>>>>>>> new
>>>>>>>>>>       state from Creating via AgentDisconnected
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> =============
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> 2014-02-12 23:25:03,365 DEBUG [agent.manager.AgentManagerImpl]
>>>>>>>>>> (catalina-exec-12:null) Sending Disconnect to listener:
>>>>>>>>>> com.cloud.consoleproxy.ConsoleProxyListener
>>>>>>>>>> 2014-02-12 23:25:03,366 DEBUG [cloud.host.Status]
>>>>>>>>>> (catalina-exec-12:null)
>>>>>>>>>> Transition:[Resource state = Enabled, Agent event =
>>>>>>>>>> AgentDisconnected,
>>>>>>>>>>
>>>>>>>>> Host
>>>>>>>>>
>>>>>>>>>> id = 1, name = node1.domain.com]
>>>>>>>>>> 2014-02-12 23:25:03,447 DEBUG [cloud.host.Status]
>>>>>>>>>> (catalina-exec-12:null)
>>>>>>>>>> Agent status update: [id = 1; name = node1.domain.com; old
>>>>>>>>>> status =
>>>>>>>>>> Connecting; event = AgentDisconnected; new status = Alert; old
>>>>>>>>>> update
>>>>>>>>>>
>>>>>>>>> count
>>>>>>>>>
>>>>>>>>>> = 1; new update count = 2]
>>>>>>>>>> 2014-02-12 23:25:03,448 DEBUG
>>>>>>>>>> [agent.manager.ClusteredAgentManagerImpl]
>>>>>>>>>> (catalina-exec-12:null) Notifying other nodes of to disconnect
>>>>>>>>>> 2014-02-12 23:25:03,449 WARN  [cloud.resource.ResourceManagerImpl]
>>>>>>>>>> (catalina-exec-12:null) Unable to connect due to
>>>>>>>>>> com.cloud.utils.exception.CloudRuntimeException: Unable to
>>>>>>>>>> connect 1
>>>>>>>>>>        at
>>>>>>>>>>
>>>>>>>>>> com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:606)
>>>>>>>>>
>>>>>>>>>>        at
>>>>>>>>>>
>>>>>>>>>> com.cloud.agent.manager.AgentManagerImpl.handleDirectConnectAgent(AgentManagerImpl.java:1482)
>>>>>>>>>
>>>>>>>>>>        at
>>>>>>>>>>
>>>>>>>>>> com.cloud.resource.ResourceManagerImpl.createHostAndAgentDeferred(ResourceManagerImpl.java:1872)
>>>>>>>>>
>>>>>>>>>>        at
>>>>>>>>>>
>>>>>>>>>> com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:778)
>>>>>>>>>
>>>>>>>>>>        at
>>>>>>>>>>
>>>>>>>>>> com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:590)
>>>>>>>>>
>>>>>>>>>>        at
>>>>>>>>>>
>>>>>>>>>> org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
>>>>>>>>>
>>>>>>>>>>        at
>>>>>>>>>> com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
>>>>>>>>>>        at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
>>>>>>>>>>        at
>>>>>>>>>> com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
>>>>>>>>>>        at
>>>>>>>>>> com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
>>>>>>>>>>        at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
>>>>>>>>>>        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:701)
>>>>>>>>>> Caused by: java.lang.ClassCastException:
>>>>>>>>>> com.cloud.agent.api.Answer
>>>>>>>>>>
>>>>>>>>> cannot
>>>>>>>>>
>>>>>>>>>> be cast to com.cloud.agent.api.SetupAnswer
>>>>>>>>>>        at
>>>>>>>>>>
>>>>>>>>>> com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.processConnect(XcpServerDiscoverer.java:646)
>>>>>>>>>
>>>>>>>>>>        at
>>>>>>>>>>
>>>>>>>>>> com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:587)
>>>>>>>>>
>>>>>>>>>>        ... 27 more
>>>>>>>>>> 2014-02-12 23:25:03,450 DEBUG [cloud.host.Status]
>>>>>>>>>> (catalina-exec-12:null)
>>>>>>>>>> Transition:[Resource state = Enabled, Agent event =
>>>>>>>>>> AgentDisconnected,
>>>>>>>>>>
>>>>>>>>> Host
>>>>>>>>>
>>>>>>>>>> id = 1, name = node1.domain.com]
>>>>>>>>>> 2014-02-12 23:25:03,450 DEBUG [cloud.host.Status]
>>>>>>>>>> (catalina-exec-12:null)
>>>>>>>>>> Cannot transit agent status with event AgentDisconnected for host
>>>>>>>>>> 1,
>>>>>>>>>> name=node1.domain.com, mangement server id is 161344192609
>>>>>>>>>> 2014-02-12 23:25:03,450 ERROR [cloud.api.ApiServer]
>>>>>>>>>>
>>>>>>>>> (catalina-exec-12:null)
>>>>>>>>>
>>>>>>>>>> unhandled exception executing api command: addHost
>>>>>>>>>> com.cloud.utils.exception.CloudRuntimeException: Cannot transit
>>>>>>>>>> agent
>>>>>>>>>>
>>>>>>>>> status
>>>>>>>>>
>>>>>>>>>> with event AgentDisconnected for host 1, mangement server id is
>>>>>>>>>> 161344192609,Unable to transition to a new state from Creating via
>>>>>>>>>> AgentDisconnected
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>  --
>>>>>>>>> Daan
>>>>>>>>>
>>>>>>>>>
>>>>>
>>>
>>>
>>
>

Re: XEN | CentOS | Cloud 4.2 | Error Message - Agent Disconnected.

Posted by Mo <mo...@daoenix.com>.
Build myself? vhd-util? or Cloudstack, both downloaded from directions 
provided on the cloudstack site.

- Maurice


On 2/14/14, 2:56 PM, Daan Hoogland wrote:
>
> I'm nooit sure for What version the location i mentioned was 
> introduced.i think it was 4.3 but as you run in startup problems i am 
> shooting at the bear. Did you build yourself or  download a distro?
>
> mobile bilingual spell checker used
>
> Op 14 feb. 2014 16:53 schreef "Mo" <mo@daoenix.com 
> <ma...@daoenix.com>>:
>
>     Dan,
>
>     No insult taken, I placed the vhd-util not in /opt/cloud/bin --
>     but, as the directions say into:
>     /usr/share/cloudstack-common/scripts/vm/hypervisor (on the
>     management server I did this)
>
>     Is this still the common place for this file, or?
>
>     - Mo
>
>
>     On 2/14/14, 8:50 AM, Daan Hoogland wrote:
>
>         easiest is to check the xen installation for cloudstack
>         components. It
>         looks like something is missing there. I don't want to try and
>         insult
>         you but did you throw vhd-util in /opt/cloud/bin? This is a
>         long shot
>         as SetupAnswer is part of the core and is created by the xen
>         agent for
>         your hypervisor which is running in the management server. The
>         agents
>         sends a command to the hypervisor and gets a different type of
>         answer
>         then it expects.
>
>         Can you file a bug and track whatever you find in there?
>
>         And if you re-install please try the 4.3 release candidate to
>         see it
>         is in there still.
>
>         regards,
>
>         On Fri, Feb 14, 2014 at 1:04 PM, Mo <mo@daoenix.com
>         <ma...@daoenix.com>> wrote:
>
>             Thoughts on how to proceed past this point? A reload of
>             both XEN & Cent? Or,
>             should I revert to what I know works rather well,
>             Cloudstack & KVM? :)
>
>             - mo
>
>             On 2/14/14, 7:01 AM, Daan Hoogland wrote:
>
>                 well this;
>
>                 Caused by: java.lang.ClassCastException:
>                 com.cloud.agent.api.Answer
>                 cannot be cast to com.cloud.agent.api.SetupAnswer
>                       at
>                 com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.processConnect(XcpServerDiscoverer.java:646)
>                       at
>                 com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:587)
>
>                 would indicate a bug. It shouldn't happen.
>
>                 On Fri, Feb 14, 2014 at 12:58 PM, Mo <mo@daoenix.com
>                 <ma...@daoenix.com>> wrote:
>
>                     This is a fresh install of both Xen & CentOS. What
>                     I am attempting to do
>                     is
>                     make the primary IP address 10.x IP and the
>                     secondary public 96, or 196
>                     subnet. I VPN'd into the management server
>                     proceeded to set it up
>                     database,
>                     vdh-util, etc, marked my traffic at Xen, setup
>                     mount points, and then
>                     went
>                     to the UI to proceed to set it up. All IP
>                     information aside from the
>                     obvious
>                     public was 10.x nature.
>
>                     But looking at the error again, it seems as though
>                     UUIDs are being
>                     overwritten and perhaps there are segments of a
>                     previous setup, so I see
>                     where that came from; but no... it's 100% (well
>                     when I got the error) it
>                     was
>                     100% brand new.
>
>                     *scratches his head*
>
>                     - Mo
>
>
>
>                     On 2/14/14, 4:57 AM, Daan Hoogland wrote:
>
>                         Did you upgrade this env? My first thought
>                         would be that a component
>                         is left behind. The class cast exception makes
>                         me think along that
>                         line.
>
>                         On Thu, Feb 13, 2014 at 11:56 PM, Mo
>                         <mo@daoenix.com <ma...@daoenix.com>> wrote:
>
>                             Cloudstack 4.2 (CentOS) , Xen Sever 6.2.
>                             Two servers.
>                             On Feb 13, 2014 5:41 PM, "Daan Hoogland"
>                             <daan.hoogland@gmail.com
>                             <ma...@gmail.com>>
>                             wrote:
>
>                                 Maurice,
>
>                                 what version are you running on what
>                                 kind of environment?
>
>                                 thanks,
>                                 Daan
>
>                                 On Thu, Feb 13, 2014 at 5:32 AM, Mo
>                                 <mo@daoenix.com
>                                 <ma...@daoenix.com>> wrote:
>
>                                     Hello,
>
>                                     Can someone shed some light on
>                                     this error message?
>
>                                         * Something went wrong; please
>                                     correct the following:
>                                           Cannot transit agent status
>                                     with event AgentDisconnected for
>                                     host
>                                     1,
>                                           mangement server id is
>                                     161344192609,Unable to transition to a
>                                     new
>                                           state from Creating via
>                                     AgentDisconnected
>
>
>                                     =============
>
>
>                                     2014-02-12 23:25:03,365 DEBUG
>                                     [agent.manager.AgentManagerImpl]
>                                     (catalina-exec-12:null) Sending
>                                     Disconnect to listener:
>                                     com.cloud.consoleproxy.ConsoleProxyListener
>                                     2014-02-12 23:25:03,366 DEBUG
>                                     [cloud.host.Status]
>                                     (catalina-exec-12:null)
>                                     Transition:[Resource state =
>                                     Enabled, Agent event =
>                                     AgentDisconnected,
>
>                                 Host
>
>                                     id = 1, name = node1.domain.com
>                                     <http://node1.domain.com>]
>                                     2014-02-12 23:25:03,447 DEBUG
>                                     [cloud.host.Status]
>                                     (catalina-exec-12:null)
>                                     Agent status update: [id = 1; name
>                                     = node1.domain.com
>                                     <http://node1.domain.com>; old
>                                     status =
>                                     Connecting; event =
>                                     AgentDisconnected; new status =
>                                     Alert; old update
>
>                                 count
>
>                                     = 1; new update count = 2]
>                                     2014-02-12 23:25:03,448 DEBUG
>                                     [agent.manager.ClusteredAgentManagerImpl]
>                                     (catalina-exec-12:null) Notifying
>                                     other nodes of to disconnect
>                                     2014-02-12 23:25:03,449 WARN
>                                      [cloud.resource.ResourceManagerImpl]
>                                     (catalina-exec-12:null) Unable to
>                                     connect due to
>                                     com.cloud.utils.exception.CloudRuntimeException:
>                                     Unable to connect 1
>                                            at
>
>                                 com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:606)
>
>                                            at
>
>                                 com.cloud.agent.manager.AgentManagerImpl.handleDirectConnectAgent(AgentManagerImpl.java:1482)
>
>                                            at
>
>                                 com.cloud.resource.ResourceManagerImpl.createHostAndAgentDeferred(ResourceManagerImpl.java:1872)
>
>                                            at
>
>                                 com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:778)
>
>                                            at
>
>                                 com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:590)
>
>                                            at
>
>                                 org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
>
>                                            at
>                                     com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
>                                            at
>                                     com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
>                                            at
>                                     com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
>                                            at
>                                     com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
>                                            at
>                                     com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
>                                            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
>                                 <http://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:701)
>                                     Caused by:
>                                     java.lang.ClassCastException:
>                                     com.cloud.agent.api.Answer
>
>                                 cannot
>
>                                     be cast to
>                                     com.cloud.agent.api.SetupAnswer
>                                            at
>
>                                 com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.processConnect(XcpServerDiscoverer.java:646)
>
>                                            at
>
>                                 com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:587)
>
>                                            ... 27 more
>                                     2014-02-12 23:25:03,450 DEBUG
>                                     [cloud.host.Status]
>                                     (catalina-exec-12:null)
>                                     Transition:[Resource state =
>                                     Enabled, Agent event =
>                                     AgentDisconnected,
>
>                                 Host
>
>                                     id = 1, name = node1.domain.com
>                                     <http://node1.domain.com>]
>                                     2014-02-12 23:25:03,450 DEBUG
>                                     [cloud.host.Status]
>                                     (catalina-exec-12:null)
>                                     Cannot transit agent status with
>                                     event AgentDisconnected for host 1,
>                                     name=node1.domain.com
>                                     <http://node1.domain.com>,
>                                     mangement server id is 161344192609
>                                     2014-02-12 23:25:03,450 ERROR
>                                     [cloud.api.ApiServer]
>
>                                 (catalina-exec-12:null)
>
>                                     unhandled exception executing api
>                                     command: addHost
>                                     com.cloud.utils.exception.CloudRuntimeException:
>                                     Cannot transit agent
>
>                                 status
>
>                                     with event AgentDisconnected for
>                                     host 1, mangement server id is
>                                     161344192609,Unable to transition
>                                     to a new state from Creating via
>                                     AgentDisconnected
>
>
>                                 --
>                                 Daan
>
>
>
>
>


Re: XEN | CentOS | Cloud 4.2 | Error Message - Agent Disconnected.

Posted by Daan Hoogland <da...@gmail.com>.
I'm nooit sure for What version the location i mentioned was introduced.i
think it was 4.3 but as you run in startup problems i am shooting at the
bear. Did you build yourself or  download a distro?

mobile bilingual spell checker used
Op 14 feb. 2014 16:53 schreef "Mo" <mo...@daoenix.com>:

> Dan,
>
> No insult taken, I placed the vhd-util not in /opt/cloud/bin -- but, as
> the directions say into: /usr/share/cloudstack-common/scripts/vm/hypervisor
> (on the management server I did this)
>
> Is this still the common place for this file, or?
>
> - Mo
>
>
> On 2/14/14, 8:50 AM, Daan Hoogland wrote:
>
>> easiest is to check the xen installation for cloudstack components. It
>> looks like something is missing there. I don't want to try and insult
>> you but did you throw vhd-util in /opt/cloud/bin? This is a long shot
>> as SetupAnswer is part of the core and is created by the xen agent for
>> your hypervisor which is running in the management server. The agents
>> sends a command to the hypervisor and gets a different type of answer
>> then it expects.
>>
>> Can you file a bug and track whatever you find in there?
>>
>> And if you re-install please try the 4.3 release candidate to see it
>> is in there still.
>>
>> regards,
>>
>> On Fri, Feb 14, 2014 at 1:04 PM, Mo <mo...@daoenix.com> wrote:
>>
>>> Thoughts on how to proceed past this point? A reload of both XEN & Cent?
>>> Or,
>>> should I revert to what I know works rather well, Cloudstack & KVM? :)
>>>
>>> - mo
>>>
>>> On 2/14/14, 7:01 AM, Daan Hoogland wrote:
>>>
>>>> well this;
>>>>
>>>> Caused by: java.lang.ClassCastException: com.cloud.agent.api.Answer
>>>> cannot be cast to com.cloud.agent.api.SetupAnswer
>>>>       at
>>>> com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.processConnect(
>>>> XcpServerDiscoverer.java:646)
>>>>       at
>>>> com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(
>>>> AgentManagerImpl.java:587)
>>>>
>>>> would indicate a bug. It shouldn't happen.
>>>>
>>>> On Fri, Feb 14, 2014 at 12:58 PM, Mo <mo...@daoenix.com> wrote:
>>>>
>>>>> This is a fresh install of both Xen & CentOS. What I am attempting to
>>>>> do
>>>>> is
>>>>> make the primary IP address 10.x IP and the secondary public 96, or 196
>>>>> subnet. I VPN'd into the management server proceeded to set it up
>>>>> database,
>>>>> vdh-util, etc, marked my traffic at Xen, setup mount points, and then
>>>>> went
>>>>> to the UI to proceed to set it up. All IP information aside from the
>>>>> obvious
>>>>> public was 10.x nature.
>>>>>
>>>>> But looking at the error again, it seems as though UUIDs are being
>>>>> overwritten and perhaps there are segments of a previous setup, so I
>>>>> see
>>>>> where that came from; but no... it's 100% (well when I got the error)
>>>>> it
>>>>> was
>>>>> 100% brand new.
>>>>>
>>>>> *scratches his head*
>>>>>
>>>>> - Mo
>>>>>
>>>>>
>>>>>
>>>>> On 2/14/14, 4:57 AM, Daan Hoogland wrote:
>>>>>
>>>>>> Did you upgrade this env? My first thought would be that a component
>>>>>> is left behind. The class cast exception makes me think along that
>>>>>> line.
>>>>>>
>>>>>> On Thu, Feb 13, 2014 at 11:56 PM, Mo <mo...@daoenix.com> wrote:
>>>>>>
>>>>>>> Cloudstack 4.2 (CentOS) , Xen Sever 6.2. Two servers.
>>>>>>> On Feb 13, 2014 5:41 PM, "Daan Hoogland" <da...@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>  Maurice,
>>>>>>>>
>>>>>>>> what version are you running on what kind of environment?
>>>>>>>>
>>>>>>>> thanks,
>>>>>>>> Daan
>>>>>>>>
>>>>>>>> On Thu, Feb 13, 2014 at 5:32 AM, Mo <mo...@daoenix.com> wrote:
>>>>>>>>
>>>>>>>>> Hello,
>>>>>>>>>
>>>>>>>>> Can someone shed some light on this error message?
>>>>>>>>>
>>>>>>>>>     * Something went wrong; please correct the following:
>>>>>>>>>       Cannot transit agent status with event AgentDisconnected for
>>>>>>>>> host
>>>>>>>>> 1,
>>>>>>>>>       mangement server id is 161344192609,Unable to transition to a
>>>>>>>>> new
>>>>>>>>>       state from Creating via AgentDisconnected
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> =============
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 2014-02-12 23:25:03,365 DEBUG [agent.manager.AgentManagerImpl]
>>>>>>>>> (catalina-exec-12:null) Sending Disconnect to listener:
>>>>>>>>> com.cloud.consoleproxy.ConsoleProxyListener
>>>>>>>>> 2014-02-12 23:25:03,366 DEBUG [cloud.host.Status]
>>>>>>>>> (catalina-exec-12:null)
>>>>>>>>> Transition:[Resource state = Enabled, Agent event =
>>>>>>>>> AgentDisconnected,
>>>>>>>>>
>>>>>>>> Host
>>>>>>>>
>>>>>>>>> id = 1, name = node1.domain.com]
>>>>>>>>> 2014-02-12 23:25:03,447 DEBUG [cloud.host.Status]
>>>>>>>>> (catalina-exec-12:null)
>>>>>>>>> Agent status update: [id = 1; name = node1.domain.com; old status
>>>>>>>>> =
>>>>>>>>> Connecting; event = AgentDisconnected; new status = Alert; old
>>>>>>>>> update
>>>>>>>>>
>>>>>>>> count
>>>>>>>>
>>>>>>>>> = 1; new update count = 2]
>>>>>>>>> 2014-02-12 23:25:03,448 DEBUG
>>>>>>>>> [agent.manager.ClusteredAgentManagerImpl]
>>>>>>>>> (catalina-exec-12:null) Notifying other nodes of to disconnect
>>>>>>>>> 2014-02-12 23:25:03,449 WARN  [cloud.resource.ResourceManagerImpl]
>>>>>>>>> (catalina-exec-12:null) Unable to connect due to
>>>>>>>>> com.cloud.utils.exception.CloudRuntimeException: Unable to
>>>>>>>>> connect 1
>>>>>>>>>        at
>>>>>>>>>
>>>>>>>>>  com.cloud.agent.manager.AgentManagerImpl.
>>>>>>>> notifyMonitorsOfConnection(AgentManagerImpl.java:606)
>>>>>>>>
>>>>>>>>>        at
>>>>>>>>>
>>>>>>>>>  com.cloud.agent.manager.AgentManagerImpl.
>>>>>>>> handleDirectConnectAgent(AgentManagerImpl.java:1482)
>>>>>>>>
>>>>>>>>>        at
>>>>>>>>>
>>>>>>>>>  com.cloud.resource.ResourceManagerImpl.
>>>>>>>> createHostAndAgentDeferred(ResourceManagerImpl.java:1872)
>>>>>>>>
>>>>>>>>>        at
>>>>>>>>>
>>>>>>>>>  com.cloud.resource.ResourceManagerImpl.discoverHostsFull(
>>>>>>>> ResourceManagerImpl.java:778)
>>>>>>>>
>>>>>>>>>        at
>>>>>>>>>
>>>>>>>>>  com.cloud.resource.ResourceManagerImpl.discoverHosts(
>>>>>>>> ResourceManagerImpl.java:590)
>>>>>>>>
>>>>>>>>>        at
>>>>>>>>>
>>>>>>>>>  org.apache.cloudstack.api.command.admin.host.AddHostCmd.
>>>>>>>> execute(AddHostCmd.java:143)
>>>>>>>>
>>>>>>>>>        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:
>>>>>>>>> 158)
>>>>>>>>>        at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
>>>>>>>>>        at com.cloud.api.ApiServer.handleRequest(ApiServer.java:
>>>>>>>>> 372)
>>>>>>>>>        at com.cloud.api.ApiServlet.processRequest(ApiServlet.
>>>>>>>>> java:305)
>>>>>>>>>        at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
>>>>>>>>>        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:701)
>>>>>>>>> Caused by: java.lang.ClassCastException: com.cloud.agent.api.Answer
>>>>>>>>>
>>>>>>>> cannot
>>>>>>>>
>>>>>>>>> be cast to com.cloud.agent.api.SetupAnswer
>>>>>>>>>        at
>>>>>>>>>
>>>>>>>>>  com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.
>>>>>>>> processConnect(XcpServerDiscoverer.java:646)
>>>>>>>>
>>>>>>>>>        at
>>>>>>>>>
>>>>>>>>>  com.cloud.agent.manager.AgentManagerImpl.
>>>>>>>> notifyMonitorsOfConnection(AgentManagerImpl.java:587)
>>>>>>>>
>>>>>>>>>        ... 27 more
>>>>>>>>> 2014-02-12 23:25:03,450 DEBUG [cloud.host.Status]
>>>>>>>>> (catalina-exec-12:null)
>>>>>>>>> Transition:[Resource state = Enabled, Agent event =
>>>>>>>>> AgentDisconnected,
>>>>>>>>>
>>>>>>>> Host
>>>>>>>>
>>>>>>>>> id = 1, name = node1.domain.com]
>>>>>>>>> 2014-02-12 23:25:03,450 DEBUG [cloud.host.Status]
>>>>>>>>> (catalina-exec-12:null)
>>>>>>>>> Cannot transit agent status with event AgentDisconnected for host
>>>>>>>>> 1,
>>>>>>>>> name=node1.domain.com, mangement server id is 161344192609
>>>>>>>>> 2014-02-12 23:25:03,450 ERROR [cloud.api.ApiServer]
>>>>>>>>>
>>>>>>>> (catalina-exec-12:null)
>>>>>>>>
>>>>>>>>> unhandled exception executing api command: addHost
>>>>>>>>> com.cloud.utils.exception.CloudRuntimeException: Cannot transit
>>>>>>>>> agent
>>>>>>>>>
>>>>>>>> status
>>>>>>>>
>>>>>>>>> with event AgentDisconnected for host 1, mangement server id is
>>>>>>>>> 161344192609,Unable to transition to a new state from Creating via
>>>>>>>>> AgentDisconnected
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>  --
>>>>>>>> Daan
>>>>>>>>
>>>>>>>>
>>>>
>>
>>
>

Re: XEN | CentOS | Cloud 4.2 | Error Message - Agent Disconnected.

Posted by Mo <mo...@daoenix.com>.
Dan,

No insult taken, I placed the vhd-util not in /opt/cloud/bin -- but, as 
the directions say into: 
/usr/share/cloudstack-common/scripts/vm/hypervisor (on the management 
server I did this)

Is this still the common place for this file, or?

- Mo


On 2/14/14, 8:50 AM, Daan Hoogland wrote:
> easiest is to check the xen installation for cloudstack components. It
> looks like something is missing there. I don't want to try and insult
> you but did you throw vhd-util in /opt/cloud/bin? This is a long shot
> as SetupAnswer is part of the core and is created by the xen agent for
> your hypervisor which is running in the management server. The agents
> sends a command to the hypervisor and gets a different type of answer
> then it expects.
>
> Can you file a bug and track whatever you find in there?
>
> And if you re-install please try the 4.3 release candidate to see it
> is in there still.
>
> regards,
>
> On Fri, Feb 14, 2014 at 1:04 PM, Mo <mo...@daoenix.com> wrote:
>> Thoughts on how to proceed past this point? A reload of both XEN & Cent? Or,
>> should I revert to what I know works rather well, Cloudstack & KVM? :)
>>
>> - mo
>>
>> On 2/14/14, 7:01 AM, Daan Hoogland wrote:
>>> well this;
>>>
>>> Caused by: java.lang.ClassCastException: com.cloud.agent.api.Answer
>>> cannot be cast to com.cloud.agent.api.SetupAnswer
>>>       at
>>> com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.processConnect(XcpServerDiscoverer.java:646)
>>>       at
>>> com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:587)
>>>
>>> would indicate a bug. It shouldn't happen.
>>>
>>> On Fri, Feb 14, 2014 at 12:58 PM, Mo <mo...@daoenix.com> wrote:
>>>> This is a fresh install of both Xen & CentOS. What I am attempting to do
>>>> is
>>>> make the primary IP address 10.x IP and the secondary public 96, or 196
>>>> subnet. I VPN'd into the management server proceeded to set it up
>>>> database,
>>>> vdh-util, etc, marked my traffic at Xen, setup mount points, and then
>>>> went
>>>> to the UI to proceed to set it up. All IP information aside from the
>>>> obvious
>>>> public was 10.x nature.
>>>>
>>>> But looking at the error again, it seems as though UUIDs are being
>>>> overwritten and perhaps there are segments of a previous setup, so I see
>>>> where that came from; but no... it's 100% (well when I got the error) it
>>>> was
>>>> 100% brand new.
>>>>
>>>> *scratches his head*
>>>>
>>>> - Mo
>>>>
>>>>
>>>>
>>>> On 2/14/14, 4:57 AM, Daan Hoogland wrote:
>>>>> Did you upgrade this env? My first thought would be that a component
>>>>> is left behind. The class cast exception makes me think along that
>>>>> line.
>>>>>
>>>>> On Thu, Feb 13, 2014 at 11:56 PM, Mo <mo...@daoenix.com> wrote:
>>>>>> Cloudstack 4.2 (CentOS) , Xen Sever 6.2. Two servers.
>>>>>> On Feb 13, 2014 5:41 PM, "Daan Hoogland" <da...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Maurice,
>>>>>>>
>>>>>>> what version are you running on what kind of environment?
>>>>>>>
>>>>>>> thanks,
>>>>>>> Daan
>>>>>>>
>>>>>>> On Thu, Feb 13, 2014 at 5:32 AM, Mo <mo...@daoenix.com> wrote:
>>>>>>>> Hello,
>>>>>>>>
>>>>>>>> Can someone shed some light on this error message?
>>>>>>>>
>>>>>>>>     * Something went wrong; please correct the following:
>>>>>>>>       Cannot transit agent status with event AgentDisconnected for
>>>>>>>> host
>>>>>>>> 1,
>>>>>>>>       mangement server id is 161344192609,Unable to transition to a
>>>>>>>> new
>>>>>>>>       state from Creating via AgentDisconnected
>>>>>>>>
>>>>>>>>
>>>>>>>> =============
>>>>>>>>
>>>>>>>>
>>>>>>>> 2014-02-12 23:25:03,365 DEBUG [agent.manager.AgentManagerImpl]
>>>>>>>> (catalina-exec-12:null) Sending Disconnect to listener:
>>>>>>>> com.cloud.consoleproxy.ConsoleProxyListener
>>>>>>>> 2014-02-12 23:25:03,366 DEBUG [cloud.host.Status]
>>>>>>>> (catalina-exec-12:null)
>>>>>>>> Transition:[Resource state = Enabled, Agent event =
>>>>>>>> AgentDisconnected,
>>>>>>> Host
>>>>>>>> id = 1, name = node1.domain.com]
>>>>>>>> 2014-02-12 23:25:03,447 DEBUG [cloud.host.Status]
>>>>>>>> (catalina-exec-12:null)
>>>>>>>> Agent status update: [id = 1; name = node1.domain.com; old status =
>>>>>>>> Connecting; event = AgentDisconnected; new status = Alert; old update
>>>>>>> count
>>>>>>>> = 1; new update count = 2]
>>>>>>>> 2014-02-12 23:25:03,448 DEBUG
>>>>>>>> [agent.manager.ClusteredAgentManagerImpl]
>>>>>>>> (catalina-exec-12:null) Notifying other nodes of to disconnect
>>>>>>>> 2014-02-12 23:25:03,449 WARN  [cloud.resource.ResourceManagerImpl]
>>>>>>>> (catalina-exec-12:null) Unable to connect due to
>>>>>>>> com.cloud.utils.exception.CloudRuntimeException: Unable to connect 1
>>>>>>>>        at
>>>>>>>>
>>>>>>> com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:606)
>>>>>>>>        at
>>>>>>>>
>>>>>>> com.cloud.agent.manager.AgentManagerImpl.handleDirectConnectAgent(AgentManagerImpl.java:1482)
>>>>>>>>        at
>>>>>>>>
>>>>>>> com.cloud.resource.ResourceManagerImpl.createHostAndAgentDeferred(ResourceManagerImpl.java:1872)
>>>>>>>>        at
>>>>>>>>
>>>>>>> com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:778)
>>>>>>>>        at
>>>>>>>>
>>>>>>> com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:590)
>>>>>>>>        at
>>>>>>>>
>>>>>>> org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
>>>>>>>>        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
>>>>>>>>        at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
>>>>>>>>        at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
>>>>>>>>        at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
>>>>>>>>        at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
>>>>>>>>        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:701)
>>>>>>>> Caused by: java.lang.ClassCastException: com.cloud.agent.api.Answer
>>>>>>> cannot
>>>>>>>> be cast to com.cloud.agent.api.SetupAnswer
>>>>>>>>        at
>>>>>>>>
>>>>>>> com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.processConnect(XcpServerDiscoverer.java:646)
>>>>>>>>        at
>>>>>>>>
>>>>>>> com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:587)
>>>>>>>>        ... 27 more
>>>>>>>> 2014-02-12 23:25:03,450 DEBUG [cloud.host.Status]
>>>>>>>> (catalina-exec-12:null)
>>>>>>>> Transition:[Resource state = Enabled, Agent event =
>>>>>>>> AgentDisconnected,
>>>>>>> Host
>>>>>>>> id = 1, name = node1.domain.com]
>>>>>>>> 2014-02-12 23:25:03,450 DEBUG [cloud.host.Status]
>>>>>>>> (catalina-exec-12:null)
>>>>>>>> Cannot transit agent status with event AgentDisconnected for host 1,
>>>>>>>> name=node1.domain.com, mangement server id is 161344192609
>>>>>>>> 2014-02-12 23:25:03,450 ERROR [cloud.api.ApiServer]
>>>>>>> (catalina-exec-12:null)
>>>>>>>> unhandled exception executing api command: addHost
>>>>>>>> com.cloud.utils.exception.CloudRuntimeException: Cannot transit agent
>>>>>>> status
>>>>>>>> with event AgentDisconnected for host 1, mangement server id is
>>>>>>>> 161344192609,Unable to transition to a new state from Creating via
>>>>>>>> AgentDisconnected
>>>>>>>>
>>>>>>>>
>>>>>>> --
>>>>>>> Daan
>>>>>>>
>>>
>
>


Re: XEN | CentOS | Cloud 4.2 | Error Message - Agent Disconnected.

Posted by Daan Hoogland <da...@gmail.com>.
easiest is to check the xen installation for cloudstack components. It
looks like something is missing there. I don't want to try and insult
you but did you throw vhd-util in /opt/cloud/bin? This is a long shot
as SetupAnswer is part of the core and is created by the xen agent for
your hypervisor which is running in the management server. The agents
sends a command to the hypervisor and gets a different type of answer
then it expects.

Can you file a bug and track whatever you find in there?

And if you re-install please try the 4.3 release candidate to see it
is in there still.

regards,

On Fri, Feb 14, 2014 at 1:04 PM, Mo <mo...@daoenix.com> wrote:
> Thoughts on how to proceed past this point? A reload of both XEN & Cent? Or,
> should I revert to what I know works rather well, Cloudstack & KVM? :)
>
> - mo
>
> On 2/14/14, 7:01 AM, Daan Hoogland wrote:
>>
>> well this;
>>
>> Caused by: java.lang.ClassCastException: com.cloud.agent.api.Answer
>> cannot be cast to com.cloud.agent.api.SetupAnswer
>>      at
>> com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.processConnect(XcpServerDiscoverer.java:646)
>>      at
>> com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:587)
>>
>> would indicate a bug. It shouldn't happen.
>>
>> On Fri, Feb 14, 2014 at 12:58 PM, Mo <mo...@daoenix.com> wrote:
>>>
>>> This is a fresh install of both Xen & CentOS. What I am attempting to do
>>> is
>>> make the primary IP address 10.x IP and the secondary public 96, or 196
>>> subnet. I VPN'd into the management server proceeded to set it up
>>> database,
>>> vdh-util, etc, marked my traffic at Xen, setup mount points, and then
>>> went
>>> to the UI to proceed to set it up. All IP information aside from the
>>> obvious
>>> public was 10.x nature.
>>>
>>> But looking at the error again, it seems as though UUIDs are being
>>> overwritten and perhaps there are segments of a previous setup, so I see
>>> where that came from; but no... it's 100% (well when I got the error) it
>>> was
>>> 100% brand new.
>>>
>>> *scratches his head*
>>>
>>> - Mo
>>>
>>>
>>>
>>> On 2/14/14, 4:57 AM, Daan Hoogland wrote:
>>>>
>>>> Did you upgrade this env? My first thought would be that a component
>>>> is left behind. The class cast exception makes me think along that
>>>> line.
>>>>
>>>> On Thu, Feb 13, 2014 at 11:56 PM, Mo <mo...@daoenix.com> wrote:
>>>>>
>>>>> Cloudstack 4.2 (CentOS) , Xen Sever 6.2. Two servers.
>>>>> On Feb 13, 2014 5:41 PM, "Daan Hoogland" <da...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Maurice,
>>>>>>
>>>>>> what version are you running on what kind of environment?
>>>>>>
>>>>>> thanks,
>>>>>> Daan
>>>>>>
>>>>>> On Thu, Feb 13, 2014 at 5:32 AM, Mo <mo...@daoenix.com> wrote:
>>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> Can someone shed some light on this error message?
>>>>>>>
>>>>>>>    * Something went wrong; please correct the following:
>>>>>>>      Cannot transit agent status with event AgentDisconnected for
>>>>>>> host
>>>>>>> 1,
>>>>>>>      mangement server id is 161344192609,Unable to transition to a
>>>>>>> new
>>>>>>>      state from Creating via AgentDisconnected
>>>>>>>
>>>>>>>
>>>>>>> =============
>>>>>>>
>>>>>>>
>>>>>>> 2014-02-12 23:25:03,365 DEBUG [agent.manager.AgentManagerImpl]
>>>>>>> (catalina-exec-12:null) Sending Disconnect to listener:
>>>>>>> com.cloud.consoleproxy.ConsoleProxyListener
>>>>>>> 2014-02-12 23:25:03,366 DEBUG [cloud.host.Status]
>>>>>>> (catalina-exec-12:null)
>>>>>>> Transition:[Resource state = Enabled, Agent event =
>>>>>>> AgentDisconnected,
>>>>>>
>>>>>> Host
>>>>>>>
>>>>>>> id = 1, name = node1.domain.com]
>>>>>>> 2014-02-12 23:25:03,447 DEBUG [cloud.host.Status]
>>>>>>> (catalina-exec-12:null)
>>>>>>> Agent status update: [id = 1; name = node1.domain.com; old status =
>>>>>>> Connecting; event = AgentDisconnected; new status = Alert; old update
>>>>>>
>>>>>> count
>>>>>>>
>>>>>>> = 1; new update count = 2]
>>>>>>> 2014-02-12 23:25:03,448 DEBUG
>>>>>>> [agent.manager.ClusteredAgentManagerImpl]
>>>>>>> (catalina-exec-12:null) Notifying other nodes of to disconnect
>>>>>>> 2014-02-12 23:25:03,449 WARN  [cloud.resource.ResourceManagerImpl]
>>>>>>> (catalina-exec-12:null) Unable to connect due to
>>>>>>> com.cloud.utils.exception.CloudRuntimeException: Unable to connect 1
>>>>>>>       at
>>>>>>>
>>>>>>
>>>>>> com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:606)
>>>>>>>
>>>>>>>       at
>>>>>>>
>>>>>>
>>>>>> com.cloud.agent.manager.AgentManagerImpl.handleDirectConnectAgent(AgentManagerImpl.java:1482)
>>>>>>>
>>>>>>>       at
>>>>>>>
>>>>>>
>>>>>> com.cloud.resource.ResourceManagerImpl.createHostAndAgentDeferred(ResourceManagerImpl.java:1872)
>>>>>>>
>>>>>>>       at
>>>>>>>
>>>>>>
>>>>>> com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:778)
>>>>>>>
>>>>>>>       at
>>>>>>>
>>>>>>
>>>>>> com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:590)
>>>>>>>
>>>>>>>       at
>>>>>>>
>>>>>>
>>>>>> org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
>>>>>>>
>>>>>>>       at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
>>>>>>>       at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
>>>>>>>       at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
>>>>>>>       at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
>>>>>>>       at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
>>>>>>>       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:701)
>>>>>>> Caused by: java.lang.ClassCastException: com.cloud.agent.api.Answer
>>>>>>
>>>>>> cannot
>>>>>>>
>>>>>>> be cast to com.cloud.agent.api.SetupAnswer
>>>>>>>       at
>>>>>>>
>>>>>>
>>>>>> com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.processConnect(XcpServerDiscoverer.java:646)
>>>>>>>
>>>>>>>       at
>>>>>>>
>>>>>>
>>>>>> com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:587)
>>>>>>>
>>>>>>>       ... 27 more
>>>>>>> 2014-02-12 23:25:03,450 DEBUG [cloud.host.Status]
>>>>>>> (catalina-exec-12:null)
>>>>>>> Transition:[Resource state = Enabled, Agent event =
>>>>>>> AgentDisconnected,
>>>>>>
>>>>>> Host
>>>>>>>
>>>>>>> id = 1, name = node1.domain.com]
>>>>>>> 2014-02-12 23:25:03,450 DEBUG [cloud.host.Status]
>>>>>>> (catalina-exec-12:null)
>>>>>>> Cannot transit agent status with event AgentDisconnected for host 1,
>>>>>>> name=node1.domain.com, mangement server id is 161344192609
>>>>>>> 2014-02-12 23:25:03,450 ERROR [cloud.api.ApiServer]
>>>>>>
>>>>>> (catalina-exec-12:null)
>>>>>>>
>>>>>>> unhandled exception executing api command: addHost
>>>>>>> com.cloud.utils.exception.CloudRuntimeException: Cannot transit agent
>>>>>>
>>>>>> status
>>>>>>>
>>>>>>> with event AgentDisconnected for host 1, mangement server id is
>>>>>>> 161344192609,Unable to transition to a new state from Creating via
>>>>>>> AgentDisconnected
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Daan
>>>>>>
>>>>
>>
>>
>



-- 
Daan

Re: XEN | CentOS | Cloud 4.2 | Error Message - Agent Disconnected.

Posted by Mo <mo...@daoenix.com>.
Thoughts on how to proceed past this point? A reload of both XEN & Cent? 
Or, should I revert to what I know works rather well, Cloudstack & KVM? :)

- mo
On 2/14/14, 7:01 AM, Daan Hoogland wrote:
> well this;
>
> Caused by: java.lang.ClassCastException: com.cloud.agent.api.Answer
> cannot be cast to com.cloud.agent.api.SetupAnswer
>      at com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.processConnect(XcpServerDiscoverer.java:646)
>      at com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:587)
>
> would indicate a bug. It shouldn't happen.
>
> On Fri, Feb 14, 2014 at 12:58 PM, Mo <mo...@daoenix.com> wrote:
>> This is a fresh install of both Xen & CentOS. What I am attempting to do is
>> make the primary IP address 10.x IP and the secondary public 96, or 196
>> subnet. I VPN'd into the management server proceeded to set it up database,
>> vdh-util, etc, marked my traffic at Xen, setup mount points, and then went
>> to the UI to proceed to set it up. All IP information aside from the obvious
>> public was 10.x nature.
>>
>> But looking at the error again, it seems as though UUIDs are being
>> overwritten and perhaps there are segments of a previous setup, so I see
>> where that came from; but no... it's 100% (well when I got the error) it was
>> 100% brand new.
>>
>> *scratches his head*
>>
>> - Mo
>>
>>
>>
>> On 2/14/14, 4:57 AM, Daan Hoogland wrote:
>>> Did you upgrade this env? My first thought would be that a component
>>> is left behind. The class cast exception makes me think along that
>>> line.
>>>
>>> On Thu, Feb 13, 2014 at 11:56 PM, Mo <mo...@daoenix.com> wrote:
>>>> Cloudstack 4.2 (CentOS) , Xen Sever 6.2. Two servers.
>>>> On Feb 13, 2014 5:41 PM, "Daan Hoogland" <da...@gmail.com> wrote:
>>>>
>>>>> Maurice,
>>>>>
>>>>> what version are you running on what kind of environment?
>>>>>
>>>>> thanks,
>>>>> Daan
>>>>>
>>>>> On Thu, Feb 13, 2014 at 5:32 AM, Mo <mo...@daoenix.com> wrote:
>>>>>> Hello,
>>>>>>
>>>>>> Can someone shed some light on this error message?
>>>>>>
>>>>>>    * Something went wrong; please correct the following:
>>>>>>      Cannot transit agent status with event AgentDisconnected for host
>>>>>> 1,
>>>>>>      mangement server id is 161344192609,Unable to transition to a new
>>>>>>      state from Creating via AgentDisconnected
>>>>>>
>>>>>>
>>>>>> =============
>>>>>>
>>>>>>
>>>>>> 2014-02-12 23:25:03,365 DEBUG [agent.manager.AgentManagerImpl]
>>>>>> (catalina-exec-12:null) Sending Disconnect to listener:
>>>>>> com.cloud.consoleproxy.ConsoleProxyListener
>>>>>> 2014-02-12 23:25:03,366 DEBUG [cloud.host.Status]
>>>>>> (catalina-exec-12:null)
>>>>>> Transition:[Resource state = Enabled, Agent event = AgentDisconnected,
>>>>> Host
>>>>>> id = 1, name = node1.domain.com]
>>>>>> 2014-02-12 23:25:03,447 DEBUG [cloud.host.Status]
>>>>>> (catalina-exec-12:null)
>>>>>> Agent status update: [id = 1; name = node1.domain.com; old status =
>>>>>> Connecting; event = AgentDisconnected; new status = Alert; old update
>>>>> count
>>>>>> = 1; new update count = 2]
>>>>>> 2014-02-12 23:25:03,448 DEBUG [agent.manager.ClusteredAgentManagerImpl]
>>>>>> (catalina-exec-12:null) Notifying other nodes of to disconnect
>>>>>> 2014-02-12 23:25:03,449 WARN  [cloud.resource.ResourceManagerImpl]
>>>>>> (catalina-exec-12:null) Unable to connect due to
>>>>>> com.cloud.utils.exception.CloudRuntimeException: Unable to connect 1
>>>>>>       at
>>>>>>
>>>>> com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:606)
>>>>>>       at
>>>>>>
>>>>> com.cloud.agent.manager.AgentManagerImpl.handleDirectConnectAgent(AgentManagerImpl.java:1482)
>>>>>>       at
>>>>>>
>>>>> com.cloud.resource.ResourceManagerImpl.createHostAndAgentDeferred(ResourceManagerImpl.java:1872)
>>>>>>       at
>>>>>>
>>>>> com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:778)
>>>>>>       at
>>>>>>
>>>>> com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:590)
>>>>>>       at
>>>>>>
>>>>> org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
>>>>>>       at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
>>>>>>       at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
>>>>>>       at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
>>>>>>       at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
>>>>>>       at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
>>>>>>       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:701)
>>>>>> Caused by: java.lang.ClassCastException: com.cloud.agent.api.Answer
>>>>> cannot
>>>>>> be cast to com.cloud.agent.api.SetupAnswer
>>>>>>       at
>>>>>>
>>>>> com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.processConnect(XcpServerDiscoverer.java:646)
>>>>>>       at
>>>>>>
>>>>> com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:587)
>>>>>>       ... 27 more
>>>>>> 2014-02-12 23:25:03,450 DEBUG [cloud.host.Status]
>>>>>> (catalina-exec-12:null)
>>>>>> Transition:[Resource state = Enabled, Agent event = AgentDisconnected,
>>>>> Host
>>>>>> id = 1, name = node1.domain.com]
>>>>>> 2014-02-12 23:25:03,450 DEBUG [cloud.host.Status]
>>>>>> (catalina-exec-12:null)
>>>>>> Cannot transit agent status with event AgentDisconnected for host 1,
>>>>>> name=node1.domain.com, mangement server id is 161344192609
>>>>>> 2014-02-12 23:25:03,450 ERROR [cloud.api.ApiServer]
>>>>> (catalina-exec-12:null)
>>>>>> unhandled exception executing api command: addHost
>>>>>> com.cloud.utils.exception.CloudRuntimeException: Cannot transit agent
>>>>> status
>>>>>> with event AgentDisconnected for host 1, mangement server id is
>>>>>> 161344192609,Unable to transition to a new state from Creating via
>>>>>> AgentDisconnected
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> Daan
>>>>>
>>>
>
>


Re: XEN | CentOS | Cloud 4.2 | Error Message - Agent Disconnected.

Posted by Daan Hoogland <da...@gmail.com>.
well this;

Caused by: java.lang.ClassCastException: com.cloud.agent.api.Answer
cannot be cast to com.cloud.agent.api.SetupAnswer
    at com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.processConnect(XcpServerDiscoverer.java:646)
    at com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:587)

would indicate a bug. It shouldn't happen.

On Fri, Feb 14, 2014 at 12:58 PM, Mo <mo...@daoenix.com> wrote:
> This is a fresh install of both Xen & CentOS. What I am attempting to do is
> make the primary IP address 10.x IP and the secondary public 96, or 196
> subnet. I VPN'd into the management server proceeded to set it up database,
> vdh-util, etc, marked my traffic at Xen, setup mount points, and then went
> to the UI to proceed to set it up. All IP information aside from the obvious
> public was 10.x nature.
>
> But looking at the error again, it seems as though UUIDs are being
> overwritten and perhaps there are segments of a previous setup, so I see
> where that came from; but no... it's 100% (well when I got the error) it was
> 100% brand new.
>
> *scratches his head*
>
> - Mo
>
>
>
> On 2/14/14, 4:57 AM, Daan Hoogland wrote:
>>
>> Did you upgrade this env? My first thought would be that a component
>> is left behind. The class cast exception makes me think along that
>> line.
>>
>> On Thu, Feb 13, 2014 at 11:56 PM, Mo <mo...@daoenix.com> wrote:
>>>
>>> Cloudstack 4.2 (CentOS) , Xen Sever 6.2. Two servers.
>>> On Feb 13, 2014 5:41 PM, "Daan Hoogland" <da...@gmail.com> wrote:
>>>
>>>> Maurice,
>>>>
>>>> what version are you running on what kind of environment?
>>>>
>>>> thanks,
>>>> Daan
>>>>
>>>> On Thu, Feb 13, 2014 at 5:32 AM, Mo <mo...@daoenix.com> wrote:
>>>>>
>>>>> Hello,
>>>>>
>>>>> Can someone shed some light on this error message?
>>>>>
>>>>>   * Something went wrong; please correct the following:
>>>>>     Cannot transit agent status with event AgentDisconnected for host
>>>>> 1,
>>>>>     mangement server id is 161344192609,Unable to transition to a new
>>>>>     state from Creating via AgentDisconnected
>>>>>
>>>>>
>>>>> =============
>>>>>
>>>>>
>>>>> 2014-02-12 23:25:03,365 DEBUG [agent.manager.AgentManagerImpl]
>>>>> (catalina-exec-12:null) Sending Disconnect to listener:
>>>>> com.cloud.consoleproxy.ConsoleProxyListener
>>>>> 2014-02-12 23:25:03,366 DEBUG [cloud.host.Status]
>>>>> (catalina-exec-12:null)
>>>>> Transition:[Resource state = Enabled, Agent event = AgentDisconnected,
>>>>
>>>> Host
>>>>>
>>>>> id = 1, name = node1.domain.com]
>>>>> 2014-02-12 23:25:03,447 DEBUG [cloud.host.Status]
>>>>> (catalina-exec-12:null)
>>>>> Agent status update: [id = 1; name = node1.domain.com; old status =
>>>>> Connecting; event = AgentDisconnected; new status = Alert; old update
>>>>
>>>> count
>>>>>
>>>>> = 1; new update count = 2]
>>>>> 2014-02-12 23:25:03,448 DEBUG [agent.manager.ClusteredAgentManagerImpl]
>>>>> (catalina-exec-12:null) Notifying other nodes of to disconnect
>>>>> 2014-02-12 23:25:03,449 WARN  [cloud.resource.ResourceManagerImpl]
>>>>> (catalina-exec-12:null) Unable to connect due to
>>>>> com.cloud.utils.exception.CloudRuntimeException: Unable to connect 1
>>>>>      at
>>>>>
>>>>
>>>> com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:606)
>>>>>
>>>>>      at
>>>>>
>>>>
>>>> com.cloud.agent.manager.AgentManagerImpl.handleDirectConnectAgent(AgentManagerImpl.java:1482)
>>>>>
>>>>>      at
>>>>>
>>>>
>>>> com.cloud.resource.ResourceManagerImpl.createHostAndAgentDeferred(ResourceManagerImpl.java:1872)
>>>>>
>>>>>      at
>>>>>
>>>>
>>>> com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:778)
>>>>>
>>>>>      at
>>>>>
>>>>
>>>> com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:590)
>>>>>
>>>>>      at
>>>>>
>>>>
>>>> org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
>>>>>
>>>>>      at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
>>>>>      at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
>>>>>      at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
>>>>>      at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
>>>>>      at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
>>>>>      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:701)
>>>>> Caused by: java.lang.ClassCastException: com.cloud.agent.api.Answer
>>>>
>>>> cannot
>>>>>
>>>>> be cast to com.cloud.agent.api.SetupAnswer
>>>>>      at
>>>>>
>>>>
>>>> com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.processConnect(XcpServerDiscoverer.java:646)
>>>>>
>>>>>      at
>>>>>
>>>>
>>>> com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:587)
>>>>>
>>>>>      ... 27 more
>>>>> 2014-02-12 23:25:03,450 DEBUG [cloud.host.Status]
>>>>> (catalina-exec-12:null)
>>>>> Transition:[Resource state = Enabled, Agent event = AgentDisconnected,
>>>>
>>>> Host
>>>>>
>>>>> id = 1, name = node1.domain.com]
>>>>> 2014-02-12 23:25:03,450 DEBUG [cloud.host.Status]
>>>>> (catalina-exec-12:null)
>>>>> Cannot transit agent status with event AgentDisconnected for host 1,
>>>>> name=node1.domain.com, mangement server id is 161344192609
>>>>> 2014-02-12 23:25:03,450 ERROR [cloud.api.ApiServer]
>>>>
>>>> (catalina-exec-12:null)
>>>>>
>>>>> unhandled exception executing api command: addHost
>>>>> com.cloud.utils.exception.CloudRuntimeException: Cannot transit agent
>>>>
>>>> status
>>>>>
>>>>> with event AgentDisconnected for host 1, mangement server id is
>>>>> 161344192609,Unable to transition to a new state from Creating via
>>>>> AgentDisconnected
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Daan
>>>>
>>
>>
>



-- 
Daan

Re: XEN | CentOS | Cloud 4.2 | Error Message - Agent Disconnected.

Posted by Mo <mo...@daoenix.com>.
This is a fresh install of both Xen & CentOS. What I am attempting to do 
is make the primary IP address 10.x IP and the secondary public 96, or 
196 subnet. I VPN'd into the management server proceeded to set it up 
database, vdh-util, etc, marked my traffic at Xen, setup mount points, 
and then went to the UI to proceed to set it up. All IP information 
aside from the obvious public was 10.x nature.

But looking at the error again, it seems as though UUIDs are being 
overwritten and perhaps there are segments of a previous setup, so I see 
where that came from; but no... it's 100% (well when I got the error) it 
was 100% brand new.

*scratches his head*

- Mo


On 2/14/14, 4:57 AM, Daan Hoogland wrote:
> Did you upgrade this env? My first thought would be that a component
> is left behind. The class cast exception makes me think along that
> line.
>
> On Thu, Feb 13, 2014 at 11:56 PM, Mo <mo...@daoenix.com> wrote:
>> Cloudstack 4.2 (CentOS) , Xen Sever 6.2. Two servers.
>> On Feb 13, 2014 5:41 PM, "Daan Hoogland" <da...@gmail.com> wrote:
>>
>>> Maurice,
>>>
>>> what version are you running on what kind of environment?
>>>
>>> thanks,
>>> Daan
>>>
>>> On Thu, Feb 13, 2014 at 5:32 AM, Mo <mo...@daoenix.com> wrote:
>>>> Hello,
>>>>
>>>> Can someone shed some light on this error message?
>>>>
>>>>   * Something went wrong; please correct the following:
>>>>     Cannot transit agent status with event AgentDisconnected for host 1,
>>>>     mangement server id is 161344192609,Unable to transition to a new
>>>>     state from Creating via AgentDisconnected
>>>>
>>>>
>>>> =============
>>>>
>>>>
>>>> 2014-02-12 23:25:03,365 DEBUG [agent.manager.AgentManagerImpl]
>>>> (catalina-exec-12:null) Sending Disconnect to listener:
>>>> com.cloud.consoleproxy.ConsoleProxyListener
>>>> 2014-02-12 23:25:03,366 DEBUG [cloud.host.Status] (catalina-exec-12:null)
>>>> Transition:[Resource state = Enabled, Agent event = AgentDisconnected,
>>> Host
>>>> id = 1, name = node1.domain.com]
>>>> 2014-02-12 23:25:03,447 DEBUG [cloud.host.Status] (catalina-exec-12:null)
>>>> Agent status update: [id = 1; name = node1.domain.com; old status =
>>>> Connecting; event = AgentDisconnected; new status = Alert; old update
>>> count
>>>> = 1; new update count = 2]
>>>> 2014-02-12 23:25:03,448 DEBUG [agent.manager.ClusteredAgentManagerImpl]
>>>> (catalina-exec-12:null) Notifying other nodes of to disconnect
>>>> 2014-02-12 23:25:03,449 WARN  [cloud.resource.ResourceManagerImpl]
>>>> (catalina-exec-12:null) Unable to connect due to
>>>> com.cloud.utils.exception.CloudRuntimeException: Unable to connect 1
>>>>      at
>>>>
>>> com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:606)
>>>>      at
>>>>
>>> com.cloud.agent.manager.AgentManagerImpl.handleDirectConnectAgent(AgentManagerImpl.java:1482)
>>>>      at
>>>>
>>> com.cloud.resource.ResourceManagerImpl.createHostAndAgentDeferred(ResourceManagerImpl.java:1872)
>>>>      at
>>>>
>>> com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:778)
>>>>      at
>>>>
>>> com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:590)
>>>>      at
>>>>
>>> org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
>>>>      at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
>>>>      at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
>>>>      at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
>>>>      at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
>>>>      at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
>>>>      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:701)
>>>> Caused by: java.lang.ClassCastException: com.cloud.agent.api.Answer
>>> cannot
>>>> be cast to com.cloud.agent.api.SetupAnswer
>>>>      at
>>>>
>>> com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.processConnect(XcpServerDiscoverer.java:646)
>>>>      at
>>>>
>>> com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:587)
>>>>      ... 27 more
>>>> 2014-02-12 23:25:03,450 DEBUG [cloud.host.Status] (catalina-exec-12:null)
>>>> Transition:[Resource state = Enabled, Agent event = AgentDisconnected,
>>> Host
>>>> id = 1, name = node1.domain.com]
>>>> 2014-02-12 23:25:03,450 DEBUG [cloud.host.Status] (catalina-exec-12:null)
>>>> Cannot transit agent status with event AgentDisconnected for host 1,
>>>> name=node1.domain.com, mangement server id is 161344192609
>>>> 2014-02-12 23:25:03,450 ERROR [cloud.api.ApiServer]
>>> (catalina-exec-12:null)
>>>> unhandled exception executing api command: addHost
>>>> com.cloud.utils.exception.CloudRuntimeException: Cannot transit agent
>>> status
>>>> with event AgentDisconnected for host 1, mangement server id is
>>>> 161344192609,Unable to transition to a new state from Creating via
>>>> AgentDisconnected
>>>>
>>>>
>>>
>>>
>>> --
>>> Daan
>>>
>
>


Re: XEN | CentOS | Cloud 4.2 | Error Message - Agent Disconnected.

Posted by Daan Hoogland <da...@gmail.com>.
Did you upgrade this env? My first thought would be that a component
is left behind. The class cast exception makes me think along that
line.

On Thu, Feb 13, 2014 at 11:56 PM, Mo <mo...@daoenix.com> wrote:
> Cloudstack 4.2 (CentOS) , Xen Sever 6.2. Two servers.
> On Feb 13, 2014 5:41 PM, "Daan Hoogland" <da...@gmail.com> wrote:
>
>> Maurice,
>>
>> what version are you running on what kind of environment?
>>
>> thanks,
>> Daan
>>
>> On Thu, Feb 13, 2014 at 5:32 AM, Mo <mo...@daoenix.com> wrote:
>> > Hello,
>> >
>> > Can someone shed some light on this error message?
>> >
>> >  * Something went wrong; please correct the following:
>> >    Cannot transit agent status with event AgentDisconnected for host 1,
>> >    mangement server id is 161344192609,Unable to transition to a new
>> >    state from Creating via AgentDisconnected
>> >
>> >
>> > =============
>> >
>> >
>> > 2014-02-12 23:25:03,365 DEBUG [agent.manager.AgentManagerImpl]
>> > (catalina-exec-12:null) Sending Disconnect to listener:
>> > com.cloud.consoleproxy.ConsoleProxyListener
>> > 2014-02-12 23:25:03,366 DEBUG [cloud.host.Status] (catalina-exec-12:null)
>> > Transition:[Resource state = Enabled, Agent event = AgentDisconnected,
>> Host
>> > id = 1, name = node1.domain.com]
>> > 2014-02-12 23:25:03,447 DEBUG [cloud.host.Status] (catalina-exec-12:null)
>> > Agent status update: [id = 1; name = node1.domain.com; old status =
>> > Connecting; event = AgentDisconnected; new status = Alert; old update
>> count
>> > = 1; new update count = 2]
>> > 2014-02-12 23:25:03,448 DEBUG [agent.manager.ClusteredAgentManagerImpl]
>> > (catalina-exec-12:null) Notifying other nodes of to disconnect
>> > 2014-02-12 23:25:03,449 WARN  [cloud.resource.ResourceManagerImpl]
>> > (catalina-exec-12:null) Unable to connect due to
>> > com.cloud.utils.exception.CloudRuntimeException: Unable to connect 1
>> >     at
>> >
>> com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:606)
>> >     at
>> >
>> com.cloud.agent.manager.AgentManagerImpl.handleDirectConnectAgent(AgentManagerImpl.java:1482)
>> >     at
>> >
>> com.cloud.resource.ResourceManagerImpl.createHostAndAgentDeferred(ResourceManagerImpl.java:1872)
>> >     at
>> >
>> com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:778)
>> >     at
>> >
>> com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:590)
>> >     at
>> >
>> org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
>> >     at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
>> >     at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
>> >     at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
>> >     at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
>> >     at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
>> >     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:701)
>> > Caused by: java.lang.ClassCastException: com.cloud.agent.api.Answer
>> cannot
>> > be cast to com.cloud.agent.api.SetupAnswer
>> >     at
>> >
>> com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.processConnect(XcpServerDiscoverer.java:646)
>> >     at
>> >
>> com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:587)
>> >     ... 27 more
>> > 2014-02-12 23:25:03,450 DEBUG [cloud.host.Status] (catalina-exec-12:null)
>> > Transition:[Resource state = Enabled, Agent event = AgentDisconnected,
>> Host
>> > id = 1, name = node1.domain.com]
>> > 2014-02-12 23:25:03,450 DEBUG [cloud.host.Status] (catalina-exec-12:null)
>> > Cannot transit agent status with event AgentDisconnected for host 1,
>> > name=node1.domain.com, mangement server id is 161344192609
>> > 2014-02-12 23:25:03,450 ERROR [cloud.api.ApiServer]
>> (catalina-exec-12:null)
>> > unhandled exception executing api command: addHost
>> > com.cloud.utils.exception.CloudRuntimeException: Cannot transit agent
>> status
>> > with event AgentDisconnected for host 1, mangement server id is
>> > 161344192609,Unable to transition to a new state from Creating via
>> > AgentDisconnected
>> >
>> >
>>
>>
>>
>> --
>> Daan
>>



-- 
Daan

Re: XEN | CentOS | Cloud 4.2 | Error Message - Agent Disconnected.

Posted by Mo <mo...@daoenix.com>.
Cloudstack 4.2 (CentOS) , Xen Sever 6.2. Two servers.
On Feb 13, 2014 5:41 PM, "Daan Hoogland" <da...@gmail.com> wrote:

> Maurice,
>
> what version are you running on what kind of environment?
>
> thanks,
> Daan
>
> On Thu, Feb 13, 2014 at 5:32 AM, Mo <mo...@daoenix.com> wrote:
> > Hello,
> >
> > Can someone shed some light on this error message?
> >
> >  * Something went wrong; please correct the following:
> >    Cannot transit agent status with event AgentDisconnected for host 1,
> >    mangement server id is 161344192609,Unable to transition to a new
> >    state from Creating via AgentDisconnected
> >
> >
> > =============
> >
> >
> > 2014-02-12 23:25:03,365 DEBUG [agent.manager.AgentManagerImpl]
> > (catalina-exec-12:null) Sending Disconnect to listener:
> > com.cloud.consoleproxy.ConsoleProxyListener
> > 2014-02-12 23:25:03,366 DEBUG [cloud.host.Status] (catalina-exec-12:null)
> > Transition:[Resource state = Enabled, Agent event = AgentDisconnected,
> Host
> > id = 1, name = node1.domain.com]
> > 2014-02-12 23:25:03,447 DEBUG [cloud.host.Status] (catalina-exec-12:null)
> > Agent status update: [id = 1; name = node1.domain.com; old status =
> > Connecting; event = AgentDisconnected; new status = Alert; old update
> count
> > = 1; new update count = 2]
> > 2014-02-12 23:25:03,448 DEBUG [agent.manager.ClusteredAgentManagerImpl]
> > (catalina-exec-12:null) Notifying other nodes of to disconnect
> > 2014-02-12 23:25:03,449 WARN  [cloud.resource.ResourceManagerImpl]
> > (catalina-exec-12:null) Unable to connect due to
> > com.cloud.utils.exception.CloudRuntimeException: Unable to connect 1
> >     at
> >
> com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:606)
> >     at
> >
> com.cloud.agent.manager.AgentManagerImpl.handleDirectConnectAgent(AgentManagerImpl.java:1482)
> >     at
> >
> com.cloud.resource.ResourceManagerImpl.createHostAndAgentDeferred(ResourceManagerImpl.java:1872)
> >     at
> >
> com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:778)
> >     at
> >
> com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:590)
> >     at
> >
> org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
> >     at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
> >     at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
> >     at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
> >     at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
> >     at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
> >     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:701)
> > Caused by: java.lang.ClassCastException: com.cloud.agent.api.Answer
> cannot
> > be cast to com.cloud.agent.api.SetupAnswer
> >     at
> >
> com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.processConnect(XcpServerDiscoverer.java:646)
> >     at
> >
> com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:587)
> >     ... 27 more
> > 2014-02-12 23:25:03,450 DEBUG [cloud.host.Status] (catalina-exec-12:null)
> > Transition:[Resource state = Enabled, Agent event = AgentDisconnected,
> Host
> > id = 1, name = node1.domain.com]
> > 2014-02-12 23:25:03,450 DEBUG [cloud.host.Status] (catalina-exec-12:null)
> > Cannot transit agent status with event AgentDisconnected for host 1,
> > name=node1.domain.com, mangement server id is 161344192609
> > 2014-02-12 23:25:03,450 ERROR [cloud.api.ApiServer]
> (catalina-exec-12:null)
> > unhandled exception executing api command: addHost
> > com.cloud.utils.exception.CloudRuntimeException: Cannot transit agent
> status
> > with event AgentDisconnected for host 1, mangement server id is
> > 161344192609,Unable to transition to a new state from Creating via
> > AgentDisconnected
> >
> >
>
>
>
> --
> Daan
>

Re: XEN | CentOS | Cloud 4.2 | Error Message - Agent Disconnected.

Posted by Daan Hoogland <da...@gmail.com>.
Maurice,

what version are you running on what kind of environment?

thanks,
Daan

On Thu, Feb 13, 2014 at 5:32 AM, Mo <mo...@daoenix.com> wrote:
> Hello,
>
> Can someone shed some light on this error message?
>
>  * Something went wrong; please correct the following:
>    Cannot transit agent status with event AgentDisconnected for host 1,
>    mangement server id is 161344192609,Unable to transition to a new
>    state from Creating via AgentDisconnected
>
>
> =============
>
>
> 2014-02-12 23:25:03,365 DEBUG [agent.manager.AgentManagerImpl]
> (catalina-exec-12:null) Sending Disconnect to listener:
> com.cloud.consoleproxy.ConsoleProxyListener
> 2014-02-12 23:25:03,366 DEBUG [cloud.host.Status] (catalina-exec-12:null)
> Transition:[Resource state = Enabled, Agent event = AgentDisconnected, Host
> id = 1, name = node1.domain.com]
> 2014-02-12 23:25:03,447 DEBUG [cloud.host.Status] (catalina-exec-12:null)
> Agent status update: [id = 1; name = node1.domain.com; old status =
> Connecting; event = AgentDisconnected; new status = Alert; old update count
> = 1; new update count = 2]
> 2014-02-12 23:25:03,448 DEBUG [agent.manager.ClusteredAgentManagerImpl]
> (catalina-exec-12:null) Notifying other nodes of to disconnect
> 2014-02-12 23:25:03,449 WARN  [cloud.resource.ResourceManagerImpl]
> (catalina-exec-12:null) Unable to connect due to
> com.cloud.utils.exception.CloudRuntimeException: Unable to connect 1
>     at
> com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:606)
>     at
> com.cloud.agent.manager.AgentManagerImpl.handleDirectConnectAgent(AgentManagerImpl.java:1482)
>     at
> com.cloud.resource.ResourceManagerImpl.createHostAndAgentDeferred(ResourceManagerImpl.java:1872)
>     at
> com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:778)
>     at
> com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:590)
>     at
> org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
>     at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
>     at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
>     at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
>     at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
>     at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
>     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:701)
> Caused by: java.lang.ClassCastException: com.cloud.agent.api.Answer cannot
> be cast to com.cloud.agent.api.SetupAnswer
>     at
> com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.processConnect(XcpServerDiscoverer.java:646)
>     at
> com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:587)
>     ... 27 more
> 2014-02-12 23:25:03,450 DEBUG [cloud.host.Status] (catalina-exec-12:null)
> Transition:[Resource state = Enabled, Agent event = AgentDisconnected, Host
> id = 1, name = node1.domain.com]
> 2014-02-12 23:25:03,450 DEBUG [cloud.host.Status] (catalina-exec-12:null)
> Cannot transit agent status with event AgentDisconnected for host 1,
> name=node1.domain.com, mangement server id is 161344192609
> 2014-02-12 23:25:03,450 ERROR [cloud.api.ApiServer] (catalina-exec-12:null)
> unhandled exception executing api command: addHost
> com.cloud.utils.exception.CloudRuntimeException: Cannot transit agent status
> with event AgentDisconnected for host 1, mangement server id is
> 161344192609,Unable to transition to a new state from Creating via
> AgentDisconnected
>
>



-- 
Daan

XEN | CentOS | Cloud 4.2 | Error Message - Agent Disconnected.

Posted by Mo <mo...@daoenix.com>.
Hello,

Can someone shed some light on this error message?

  * Something went wrong; please correct the following:
    Cannot transit agent status with event AgentDisconnected for host 1,
    mangement server id is 161344192609,Unable to transition to a new
    state from Creating via AgentDisconnected


=============


2014-02-12 23:25:03,365 DEBUG [agent.manager.AgentManagerImpl] 
(catalina-exec-12:null) Sending Disconnect to listener: 
com.cloud.consoleproxy.ConsoleProxyListener
2014-02-12 23:25:03,366 DEBUG [cloud.host.Status] 
(catalina-exec-12:null) Transition:[Resource state = Enabled, Agent 
event = AgentDisconnected, Host id = 1, name = node1.domain.com]
2014-02-12 23:25:03,447 DEBUG [cloud.host.Status] 
(catalina-exec-12:null) Agent status update: [id = 1; name = 
node1.domain.com; old status = Connecting; event = AgentDisconnected; 
new status = Alert; old update count = 1; new update count = 2]
2014-02-12 23:25:03,448 DEBUG [agent.manager.ClusteredAgentManagerImpl] 
(catalina-exec-12:null) Notifying other nodes of to disconnect
2014-02-12 23:25:03,449 WARN  [cloud.resource.ResourceManagerImpl] 
(catalina-exec-12:null) Unable to connect due to
com.cloud.utils.exception.CloudRuntimeException: Unable to connect 1
     at 
com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:606)
     at 
com.cloud.agent.manager.AgentManagerImpl.handleDirectConnectAgent(AgentManagerImpl.java:1482)
     at 
com.cloud.resource.ResourceManagerImpl.createHostAndAgentDeferred(ResourceManagerImpl.java:1872)
     at 
com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:778)
     at 
com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:590)
     at 
org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
     at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
     at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
     at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
     at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
     at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
     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:701)
Caused by: java.lang.ClassCastException: com.cloud.agent.api.Answer 
cannot be cast to com.cloud.agent.api.SetupAnswer
     at 
com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.processConnect(XcpServerDiscoverer.java:646)
     at 
com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:587)
     ... 27 more
2014-02-12 23:25:03,450 DEBUG [cloud.host.Status] 
(catalina-exec-12:null) Transition:[Resource state = Enabled, Agent 
event = AgentDisconnected, Host id = 1, name = node1.domain.com]
2014-02-12 23:25:03,450 DEBUG [cloud.host.Status] 
(catalina-exec-12:null) Cannot transit agent status with event 
AgentDisconnected for host 1, name=node1.domain.com, mangement server id 
is 161344192609
2014-02-12 23:25:03,450 ERROR [cloud.api.ApiServer] 
(catalina-exec-12:null) unhandled exception executing api command: addHost
com.cloud.utils.exception.CloudRuntimeException: Cannot transit agent 
status with event AgentDisconnected for host 1, mangement server id is 
161344192609,Unable to transition to a new state from Creating via 
AgentDisconnected



Error Message - Agent Disconnected.

Posted by Mo <mo...@daoenix.com>.
Hello,

Can someone assist me in informing me as to what this is telling me?

  * Something went wrong; please correct the following:
    Cannot transit agent status with event AgentDisconnected for host 1,
    mangement server id is 161344192609,Unable to transition to a new
    state from Creating via AgentDisconnected


=============


2014-02-12 23:25:03,365 DEBUG [agent.manager.AgentManagerImpl] 
(catalina-exec-12:null) Sending Disconnect to listener: 
com.cloud.consoleproxy.ConsoleProxyListener
2014-02-12 23:25:03,366 DEBUG [cloud.host.Status] 
(catalina-exec-12:null) Transition:[Resource state = Enabled, Agent 
event = AgentDisconnected, Host id = 1, name = node1.domain.com]
2014-02-12 23:25:03,447 DEBUG [cloud.host.Status] 
(catalina-exec-12:null) Agent status update: [id = 1; name = 
node1.domain.com; old status = Connecting; event = AgentDisconnected; 
new status = Alert; old update count = 1; new update count = 2]
2014-02-12 23:25:03,448 DEBUG [agent.manager.ClusteredAgentManagerImpl] 
(catalina-exec-12:null) Notifying other nodes of to disconnect
2014-02-12 23:25:03,449 WARN  [cloud.resource.ResourceManagerImpl] 
(catalina-exec-12:null) Unable to connect due to
com.cloud.utils.exception.CloudRuntimeException: Unable to connect 1
     at 
com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:606)
     at 
com.cloud.agent.manager.AgentManagerImpl.handleDirectConnectAgent(AgentManagerImpl.java:1482)
     at 
com.cloud.resource.ResourceManagerImpl.createHostAndAgentDeferred(ResourceManagerImpl.java:1872)
     at 
com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:778)
     at 
com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:590)
     at 
org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
     at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
     at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
     at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
     at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
     at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
     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:701)
Caused by: java.lang.ClassCastException: com.cloud.agent.api.Answer 
cannot be cast to com.cloud.agent.api.SetupAnswer
     at 
com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.processConnect(XcpServerDiscoverer.java:646)
     at 
com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:587)
     ... 27 more
2014-02-12 23:25:03,450 DEBUG [cloud.host.Status] 
(catalina-exec-12:null) Transition:[Resource state = Enabled, Agent 
event = AgentDisconnected, Host id = 1, name = node1.domain.com]
2014-02-12 23:25:03,450 DEBUG [cloud.host.Status] 
(catalina-exec-12:null) Cannot transit agent status with event 
AgentDisconnected for host 1, name=node1.domain.com, mangement server id 
is 161344192609
2014-02-12 23:25:03,450 ERROR [cloud.api.ApiServer] 
(catalina-exec-12:null) unhandled exception executing api command: addHost
com.cloud.utils.exception.CloudRuntimeException: Cannot transit agent 
status with event AgentDisconnected for host 1, mangement server id is 
161344192609,Unable to transition to a new state from Creating via 
AgentDisconnected



Error Message - Agent Disconnected.

Posted by Mo <mo...@daoenix.com>.
Hello,

Can someone inform me as to what this error message means?

  * Something went wrong; please correct the following:
    Cannot transit agent status with event AgentDisconnected for host 1,
    mangement server id is 161344192609,Unable to transition to a new
    state from Creating via AgentDisconnected


=============


2014-02-12 23:25:03,365 DEBUG [agent.manager.AgentManagerImpl] 
(catalina-exec-12:null) Sending Disconnect to listener: 
com.cloud.consoleproxy.ConsoleProxyListener
2014-02-12 23:25:03,366 DEBUG [cloud.host.Status] 
(catalina-exec-12:null) Transition:[Resource state = Enabled, Agent 
event = AgentDisconnected, Host id = 1, name = node1.domain.com]
2014-02-12 23:25:03,447 DEBUG [cloud.host.Status] 
(catalina-exec-12:null) Agent status update: [id = 1; name = 
node1.domain.com; old status = Connecting; event = AgentDisconnected; 
new status = Alert; old update count = 1; new update count = 2]
2014-02-12 23:25:03,448 DEBUG [agent.manager.ClusteredAgentManagerImpl] 
(catalina-exec-12:null) Notifying other nodes of to disconnect
2014-02-12 23:25:03,449 WARN  [cloud.resource.ResourceManagerImpl] 
(catalina-exec-12:null) Unable to connect due to
com.cloud.utils.exception.CloudRuntimeException: Unable to connect 1
     at 
com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:606)
     at 
com.cloud.agent.manager.AgentManagerImpl.handleDirectConnectAgent(AgentManagerImpl.java:1482)
     at 
com.cloud.resource.ResourceManagerImpl.createHostAndAgentDeferred(ResourceManagerImpl.java:1872)
     at 
com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:778)
     at 
com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:590)
     at 
org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
     at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
     at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
     at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
     at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
     at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
     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:701)
Caused by: java.lang.ClassCastException: com.cloud.agent.api.Answer 
cannot be cast to com.cloud.agent.api.SetupAnswer
     at 
com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.processConnect(XcpServerDiscoverer.java:646)
     at 
com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:587)
     ... 27 more
2014-02-12 23:25:03,450 DEBUG [cloud.host.Status] 
(catalina-exec-12:null) Transition:[Resource state = Enabled, Agent 
event = AgentDisconnected, Host id = 1, name = node1.domain.com]
2014-02-12 23:25:03,450 DEBUG [cloud.host.Status] 
(catalina-exec-12:null) Cannot transit agent status with event 
AgentDisconnected for host 1, name=node1.domain.com, mangement server id 
is 161344192609
2014-02-12 23:25:03,450 ERROR [cloud.api.ApiServer] 
(catalina-exec-12:null) unhandled exception executing api command: addHost
com.cloud.utils.exception.CloudRuntimeException: Cannot transit agent 
status with event AgentDisconnected for host 1, mangement server id is 
161344192609,Unable to transition to a new state from Creating via 
AgentDisconnected