cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prashant Kumar Mishra <prashantkumar.mis...@citrix.com>
Subject Re: Unable to Cancel Maintenance mode after upgrading to from ACS 4.3.2 to 4.4.2
Date Wed, 04 Feb 2015 09:18:39 GMT
Seems a bug ,since host went in maintenance mode there is minimal chance
for this but still good to check   vm_instance table if some vm stuck on
this host  .

This should help, you can modify host table in cloud DB , update
resource_State = Up and then do a force reconnect .

~prashant

On 2/4/15, 2:06 PM, "Andrei Mikhailovsky" <andrei@arhont.com> wrote:

>Prashant, 
>
>the resource_state shows Maintenance
>
>Andrei 
>
>----- Original Message -----
>
>> From: "Prashant Kumar Mishra" <prashantkumar.mishra@citrix.com>
>> To: users@cloudstack.apache.org
>> Sent: Wednesday, 4 February, 2015 6:32:20 AM
>> Subject: Re: Unable to Cancel Maintenance mode after upgrading to
>> from ACS 4.3.2 to 4.4.2
>
>> Can you check host table , for the host current state, is it in some
>> transition state.
>
>> ~prashant
>
>> On 2/4/15, 5:28 AM, "Andrei Mikhailovsky" <andrei@arhont.com> wrote:
>
>> >Hello guys,
>> >
>> >I have found another problem with ACS 4.4.2, which is pretty serious
>> >imho. I am no longer able to Cancel Maintenance mode. The GUI shows
>> >the
>> >following error a few seconds after pressing the button:
>> >
>> >Command failed due to Internal Server Error
>> >
>> >The management server shows the following error:
>> >
>> >2015-02-03 23:42:15,621 DEBUG [c.c.a.ApiServlet]
>> >(catalina-exec-23:ctx-04ea4b6d ctx-35701ff3) ===END===
>> >192.168.169.91 --
>> >GET
>> 
>>>command=cancelHostMaintenance&id=c092cb59-c770-4747-8d95-75aa49de5d17&re
>>>sp
>> >onse=json&sessionkey=fI2oaYTbgijs1h6HTOTMnJ%2FkChA%3D&_=1423006935464
>> >2015-02-03 23:42:15,622 INFO [o.a.c.f.j.i.AsyncJobMonitor]
>> >(API-Job-Executor-1:ctx-1fda9d17 job-11711) Add job-11711 into job
>> >monitoring
>> >2015-02-03 23:42:15,623 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
>> >(API-Job-Executor-1:ctx-1fda9d17 job-11711) Executing AsyncJobVO
>> >{id:11711, userId: 3, accountId: 2, instanceType: Host, instanceId:
>> >1,
>> >cmd:
>> >org.apache.cloudstack.api.command.admin.host.CancelMaintenanceCmd,
>> >cmdInfo:
>> 
>>>{"id":"c092cb59-c770-4747-8d95-75aa49de5d17","response":"json","sessionk
>>>ey
>> 
>>>":"fI2oaYTbgijs1h6HTOTMnJ/kChA\u003d","ctxDetails":"{\"com.cloud.host.Ho
>>>st
>> 
>>>\":\"c092cb59-c770-4747-8d95-75aa49de5d17\"}","cmdEventType":"MAINT.CANC
>>>EL
>> 
>>>","ctxUserId":"3","httpmethod":"GET","_":"1423006935464","uuid":"c092cb5
>>>9-
>> 
>>>c770-4747-8d95-75aa49de5d17","ctxAccountId":"2","ctxStartEventId":"64857
>>>"}
>> >, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode:
>> >0,
>> >result: null, initMsid: 115129173025114, completeMsid: null,
>> >lastUpdated:
>> >null, lastPolled: null, created: null}
>> >2015-02-03 23:42:15,646 ERROR [c.c.a.ApiAsyncJobDispatcher]
>> >(API-Job-Executor-1:ctx-1fda9d17 job-11711) Unexpected exception
>> >while
>> >executing
>> >org.apache.cloudstack.api.command.admin.host.CancelMaintenanceCmd
>> >java.lang.NullPointerException
>> >at
>> 
>>>com.cloud.resource.ResourceManagerImpl.doCancelMaintenance(ResourceManag
>>>er
>> >Impl.java:2083)
>> >at
>> 
>>>com.cloud.resource.ResourceManagerImpl.cancelMaintenance(ResourceManager
>>>Im
>> >pl.java:2140)
>> >at
>> 
>>>com.cloud.resource.ResourceManagerImpl.cancelMaintenance(ResourceManager
>>>Im
>> >pl.java:1127)
>> >at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >at
>> 
>>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
>>>a:
>> >57)
>> >at
>> 
>>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
>>>Im
>> >pl.java:43)
>> >at java.lang.reflect.Method.invoke(Method.java:606)
>> >at
>> 
>>>org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(
>>>Ao
>> >pUtils.java:317)
>> >at
>> 
>>>org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinp
>>>oi
>> >nt(ReflectiveMethodInvocation.java:183)
>> >at
>> 
>>>org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Ref
>>>le
>> >ctiveMethodInvocation.java:150)
>> >at
>> 
>>>org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(E
>>>xp
>> >oseInvocationInterceptor.java:91)
>> >at
>> 
>>>org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Ref
>>>le
>> >ctiveMethodInvocation.java:172)
>> >at
>> 
>>>org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAo
>>>pP
>> >roxy.java:204)
>> >at com.sun.proxy.$Proxy148.cancelMaintenance(Unknown Source)
>> >at
>> 
>>>org.apache.cloudstack.api.command.admin.host.CancelMaintenanceCmd.execut
>>>e(
>> >CancelMaintenanceCmd.java:102)
>> >at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:141)
>> >at
>> 
>>>com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:10
>>>8)
>> >
>> >at
>> 
>>>org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInCon
>>>te
>> >xt(AsyncJobManagerImpl.java:503)
>> >at
>> 
>>>org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(Manag
>>>ed
>> >ContextRunnable.java:49)
>> >at
>> 
>>>org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(
>>>De
>> >faultManagedContext.java:56)
>> >at
>> 
>>>org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWit
>>>hC
>> >ontext(DefaultManagedContext.java:103)
>> >at
>> 
>>>org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWith
>>>Co
>> >ntext(DefaultManagedContext.java:53)
>> >at
>> 
>>>org.apache.cloudstack.managed.context.ManagedContextRunnable.run(Managed
>>>Co
>> >ntextRunnable.java:46)
>> >at
>> 
>>>org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(Asyn
>>>cJ
>> >obManagerImpl.java:460)
>> >at
>> >java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>> >at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>> >at
>> 
>>>java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.jav
>>>a:
>> >1145)
>> >at
>> 
>>>java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja
>>>va
>> >:615)
>> >at java.lang.Thread.run(Thread.java:745)
>> >2015-02-03 23:42:15,648 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
>> >(API-Job-Executor-1:ctx-1fda9d17 job-11711) Complete async
>> >job-11711,
>> >jobStatus: FAILED, resultCode: 530, result:
>> 
>>>org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[]
>>>,"
>> >errorcode":530}
>> >2015-02-03 23:42:15,664 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
>> >(API-Job-Executor-1:ctx-1fda9d17 job-11711) Done executing
>> >org.apache.cloudstack.api.command.admin.host.CancelMaintenanceCmd
>> >for
>> >job-11711
>> >
>> >
>> >There is absolutely nothing in the agent logs even if I use the
>> >DEBUG
>> >logging.
>> >
>> >I get the same error if I use CloudMonkey to cancel the Maintenance
>> >mode.
>> >
>> >I am running Ubuntu 14.04 on both the management server and the
>> >agents.
>> >I've recently upgraded from ACS 4.3.2 to version 4.4.2 where this
>> >function was working.
>> >
>> >Does anyone know what is going on and how to fix it?
>> >
>> >
>> >
>> >Andrei
>> >


Mime
View raw message