[ https://issues.apache.org/jira/browse/CLOUDSTACK-5277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13832457#comment-13832457 ]
shweta agarwal commented on CLOUDSTACK-5277: -------------------------------------------- Calling upgrade router api on stopped templates shows error MS log shows : 3-b03c-476ecfb0c15c-shweta] by DomainChecker 2013-11-26 04:46:09,184 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (Job-Executor-3:ctx-8c06b762 ctx-b3905a6f) Stopping and starting router VM[DomainRouter|r-47-VM] as a part of router reboot 2013-11-26 04:46:09,186 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (Job-Executor-3:ctx-8c06b762 ctx-b3905a6f) Stopping router VM[DomainRouter|r-47-VM] 2013-11-26 04:46:09,215 ERROR [c.c.a.ApiAsyncJobDispatcher] (Job-Executor-2:ctx-814b7504) Unexpected exception while executing org.apache.cloudstack.api.command.admin.router.RebootRouterCmd com.cloud.exception.ResourceUnavailableException: Resource [DataCenter:2] is unreachable: Unable to reboot domR, it is not in right state Stopped at com.cloud.network.router.VirtualNetworkApplianceManagerImpl.rebootRouter(VirtualNetworkApplianceManagerImpl.java:503) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:622) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:50) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy239.rebootRouter(Unknown Source) at org.apache.cloudstack.api.command.admin.router.RebootRouterCmd.execute(RebootRouterCmd.java:100) at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161) at com.cloud.api.ApiAsyncJobDispatcher.runJobInContext(ApiAsyncJobDispatcher.java:109) at com.cloud.api.ApiAsyncJobDispatcher$1.run(ApiAsyncJobDispatcher.java:66) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53) at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:63) at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:520) at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103) at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53) at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.util.concurrent.FutureTask.run(FutureTask.java:166) 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) 2013-11-26 04:46:09,241 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Executor-2:ctx-814b7504) Complete async job-175, jobStatus: FAILED, resultCode: 530, result: org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":530,"errortext":"Resource [DataCenter:2] is unreachable: Unable to reboot domR, it is not in right state Stopped"} > upgrade router template API is not upgrading stopped routers > ------------------------------------------------------------ > > Key: CLOUDSTACK-5277 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5277 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Upgrade, Virtual Router > Affects Versions: 4.3.0 > Environment: upgraded from 3.0.7 to 4.3 > Reporter: shweta agarwal > Priority: Critical > Fix For: 4.3.0 > > > Currently upgrade router API take care of only running routers so router that > are stop before calling upgrade router template is missed from upgrades. > So rather than calling reboot router internally for upgrade router template > its better to call stop /start router api . > this way it will take care of stopped routers as well . -- This message was sent by Atlassian JIRA (v6.1#6144)