You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Sailaja Mada <sa...@citrix.com> on 2013/03/18 09:19:30 UTC

State of the host is up when its resourcestate is Maintenance

Hi,

When the host is marked for Maintenance, the state of the host is returned as "up" .  Is it correct?

Do we have any other state defined for the host if its resourcestate is Maintenance ?

2013-03-18 13:46:11,565 INFO  [cloud.api.ApiServer] (catalina-exec-1:null) (userId=2 accountId=2 sessionId=A628C66A3C8D46391E29E5571BAF7A8C) 10.144.6.39 -- GET command=listHosts&id=f845948b-f2e2-4d1c-8ab7-53d6e3eedda7&response=json&sessionkey=8Seg4yrNcJSosL0Q9%2Bo6P07KXLM%3D&_=1363594656273 200 { "listhostsresponse" : { "count":1 ,"host" : [  {"id":"f845948b-f2e2-4d1c-8ab7-53d6e3eedda7","name":"xen13.cloud.com","state":"Up","disconnected":"2013-03-13T12:33:25+0530","type":"Routing","ipaddress":"10.102.192.13","zoneid":"c22b48ff-ab62-4098-bf74-acdfc85565e5","zonename":"adv1","podid":"ff5942a2-03cc-495d-a0ae-ed5b20cbb9ed","podname":"pod1","version":"4.2.0-SNAPSHOT","hypervisor":"XenServer","cpunumber":8,"cpuspeed":2394,"cpuallocated":"0%","cpuwithoverprovisioning":"19152.0","memorytotal":16186935744,"memoryallocated":0,"capabilities":"xen-3.0-x86_64 , xen-3.0-x86_32p , hvm-3.0-x86_32 , hvm-3.0-x86_32p , hvm-3.0-x86_64","lastpinged":"1970-01-16T15:21:35+0530","managementserverid":222273143235720,"clusterid":"2f35be1d-be33-45ce-8736-6118c03c4662","clustername":"xencluster","clustertype":"CloudManaged","islocalstorageactive":false,"created":"2013-03-11T16:53:36+0530","events":"ManagementServerDown; Remove; AgentConnected; StartAgentRebalance; AgentDisconnected; HostDown; PingTimeout; ShutdownRequested; Ping","resourcestate":"Maintenance","hypervisorversion":"6.1.0","hahost":false,"jobstatus":0} ] } }

Thanks,
Sailaja.M

Re: State of the host is up when its resourcestate is Maintenance

Posted by Chiradeep Vittal <Ch...@citrix.com>.
Looks OK to me

On 3/18/13 1:19 AM, "Sailaja Mada" <sa...@citrix.com> wrote:

>Hi,
>
>When the host is marked for Maintenance, the state of the host is
>returned as "up" .  Is it correct?
>
>Do we have any other state defined for the host if its resourcestate is
>Maintenance ?
>
>2013-03-18 13:46:11,565 INFO  [cloud.api.ApiServer]
>(catalina-exec-1:null) (userId=2 accountId=2
>sessionId=A628C66A3C8D46391E29E5571BAF7A8C) 10.144.6.39 -- GET
>command=listHosts&id=f845948b-f2e2-4d1c-8ab7-53d6e3eedda7&response=json&se
>ssionkey=8Seg4yrNcJSosL0Q9%2Bo6P07KXLM%3D&_=1363594656273 200 {
>"listhostsresponse" : { "count":1 ,"host" : [
>{"id":"f845948b-f2e2-4d1c-8ab7-53d6e3eedda7","name":"xen13.cloud.com","sta
>te":"Up","disconnected":"2013-03-13T12:33:25+0530","type":"Routing","ipadd
>ress":"10.102.192.13","zoneid":"c22b48ff-ab62-4098-bf74-acdfc85565e5","zon
>ename":"adv1","podid":"ff5942a2-03cc-495d-a0ae-ed5b20cbb9ed","podname":"po
>d1","version":"4.2.0-SNAPSHOT","hypervisor":"XenServer","cpunumber":8,"cpu
>speed":2394,"cpuallocated":"0%","cpuwithoverprovisioning":"19152.0","memor
>ytotal":16186935744,"memoryallocated":0,"capabilities":"xen-3.0-x86_64 ,
>xen-3.0-x86_32p , hvm-3.0-x86_32 , hvm-3.0-x86_32p ,
>hvm-3.0-x86_64","lastpinged":"1970-01-16T15:21:35+0530","managementserveri
>d":222273143235720,"clusterid":"2f35be1d-be33-45ce-8736-6118c03c4662","clu
>stername":"xencluster","clustertype":"CloudManaged","islocalstorageactive"
>:false,"created":"2013-03-11T16:53:36+0530","events":"ManagementServerDown
>; Remove; AgentConnected; StartAgentRebalance; AgentDisconnected;
>HostDown; PingTimeout; ShutdownRequested;
>Ping","resourcestate":"Maintenance","hypervisorversion":"6.1.0","hahost":f
>alse,"jobstatus":0} ] } }
>
>Thanks,
>Sailaja.M