HI, It looks your network in stuck in transition state(implementing) as log clearly says it should either implemented or allocate .
You can update the network state in db as implemented and perform again network restart with cleanup option. -sadhu -----Original Message----- From: Tejas Gadaria [mailto:refond.g...@gmail.com] Sent: 23 June 2014 12:10 To: dev@cloudstack.apache.org Cc: us...@cloudstack.apache.org Subject: Re: Unable to delete virtual router Hi, After restarting the Network it says, "Network is not in the right state to be restarted. Correct states are: Implemented, Setup" 2014-06-23 12:04:29,112 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager Timer:ctx-993ca065) Completed acquiring hosts for clusters not owned by any management server 2014-06-23 12:04:29,269 DEBUG [c.c.a.m.AgentManagerImpl] (AgentManager-Handler-15:null) Ping from 3 2014-06-23 12:04:32,755 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-393:ctx-d0977fbe) Ping from 1(swiftproxy-xen1) 2014-06-23 12:04:33,101 DEBUG [c.c.a.ApiServlet] (catalina-exec-11:ctx-dc604cdc) ===START=== 192.168.160.192 -- GET command=restartNetwork&cleanup=true&id=099ff395-9196-43ab-a1e2-cd368dbe3c75&cleanup=true&response=json&sessionkey=ecSt5VOMl2wgsZtnAYbNEfbh8%2Bk%3D&_=1403505273057 2014-06-23 12:04:33,127 DEBUG [c.c.a.m.AgentManagerImpl] (AgentManager-Handler-12:null) SeqA 4-91008: Processing Seq 4-91008: { Cmd , MgmtId: -1, via: 4, Ver: v1, Flags: 11, [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":3,"_loadInfo":"{\n \"connections\": []\n}","wait":0}}] } 2014-06-23 12:04:33,291 DEBUG [c.c.a.m.AgentManagerImpl] (AgentManager-Handler-12:null) SeqA 4-91008: Sending Seq 4-91008: { Ans: , MgmtId: 64342918221735, via: 4, Ver: v1, Flags: 100010, [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] } 2014-06-23 12:04:33,404 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (catalina-exec-11:ctx-dc604cdc ctx-6b97cb9e) submit async job-167, details: AsyncJobVO {id:167, userId: 2, accountId: 2, instanceType: None, instanceId: null, cmd: org.apache.cloudstack.api.command.user.network.RestartNetworkCmd, cmdInfo: {"response":"json","id":"099ff395-9196-43ab-a1e2-cd368dbe3c75","sessionkey":"ecSt5VOMl2wgsZtnAYbNEfbh8+k\u003d","cleanup":"true","cmdEventType":"NETWORK.RESTART","ctxUserId":"2","httpmethod":"GET","_":"1403505273057","ctxAccountId":"2","ctxStartEventId":"605"}, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 64342918221735, completeMsid: null, lastUpdated: null, lastPolled: null, created: null} 2014-06-23 12:04:33,405 INFO [o.a.c.f.j.i.AsyncJobMonitor] (Job-Executor-11:ctx-587064a4) Add job-167 into job monitoring 2014-06-23 12:04:33,406 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Executor-11:ctx-587064a4) Executing AsyncJobVO {id:167, userId: 2, accountId: 2, instanceType: None, instanceId: null, cmd: org.apache.cloudstack.api.command.user.network.RestartNetworkCmd, cmdInfo: {"response":"json","id":"099ff395-9196-43ab-a1e2-cd368dbe3c75","sessionkey":"ecSt5VOMl2wgsZtnAYbNEfbh8+k\u003d","cleanup":"true","cmdEventType":"NETWORK.RESTART","ctxUserId":"2","httpmethod":"GET","_":"1403505273057","ctxAccountId":"2","ctxStartEventId":"605"}, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 64342918221735, completeMsid: null, lastUpdated: null, lastPolled: null, created: null} 2014-06-23 12:04:33,407 DEBUG [c.c.a.ApiServlet] (catalina-exec-11:ctx-dc604cdc ctx-6b97cb9e) ===END=== 192.168.160.192 -- GET command=restartNetwork&cleanup=true&id=099ff395-9196-43ab-a1e2-cd368dbe3c75&cleanup=true&response=json&sessionkey=ecSt5VOMl2wgsZtnAYbNEfbh8%2Bk%3D&_=1403505273057 2014-06-23 12:04:33,538 ERROR [c.c.a.ApiAsyncJobDispatcher] (Job-Executor-11:ctx-587064a4) Unexpected exception while executing org.apache.cloudstack.api.command.user.network.RestartNetworkCmd com.cloud.exception.InvalidParameterValueException: Network is not in the right state to be restarted. Correct states are: Implemented, Setup at com.cloud.network.NetworkServiceImpl.restartNetwork(NetworkServiceImpl.java:1832) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) Regards, Tejas On Mon, Jun 23, 2014 at 12:03 PM, Tejas Gadaria <refond.g...@gmail.com> wrote: > I am using CS 4.3. > > Before restarting the Guest network, Network state : Implementing I > will post logs once i will restart the Network. > > Regards, > Tejas > > > On Mon, Jun 23, 2014 at 10:18 AM, Suresh Sadhu > <suresh.sa...@citrix.com> > wrote: > >> Try restart the network with cleanup option .it will recreate the router. >> By the way, Which version of cloudstack you are using? >> >> >> -----Original Message----- >> From: Tejas Gadaria [mailto:refond.g...@gmail.com] >> Sent: 21 June 2014 22:45 >> To: us...@cloudstack.apache.org; dev@cloudstack.apache.org >> Subject: Re: Unable to delete virtual router >> >> Hi, >> >> I found this bug still open >> https://issues.apache.org/jira/browse/CLOUDSTACK-1007 >> >> Is there any way around to create vm in same Network, with same VLAN ID. >> OR Destroy existing Network. >> Right now I am using shared network offering to create guest network. >> >> Regards, >> Tejas >> >> >> >> On Sat, Jun 21, 2014 at 5:32 PM, Tejas Gadaria >> <refond.g...@gmail.com> >> wrote: >> >> > I found the log on management server, >> > >> > 2014-06-21 17:25:28,750 DEBUG [c.c.h.d.HostDaoImpl] >> > (ClusteredAgentManager >> > Timer:ctx-bc6cacf1) Completed acquiring hosts for clusters not >> > owned by any management server >> > 2014-06-21 17:25:31,809 DEBUG [c.c.a.ApiServlet] >> > (catalina-exec-19:ctx-631429c1) ===START=== 192.168.160.192 -- GET >> > command=deleteNetwork&id=099ff395-9196-43ab-a1e2-cd368dbe3c75&respo >> > nse >> > =json&sessionkey=svge6Qrqq9nR4yPm9TYMn1UgvSo%3D&_=1403351731747 >> > 2014-06-21 17:25:31,946 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] >> > (catalina-exec-19:ctx-631429c1 ctx-190760ce) submit async job-160, >> details: >> > AsyncJobVO {id:160, userId: 2, accountId: 2, instanceType: None, >> > instanceId: null, cmd: >> > org.apache.cloudstack.api.command.user.network.DeleteNetworkCmd, >> cmdInfo: >> > {"id":"099ff395-9196-43ab-a1e2-cd368dbe3c75","response":"json","ses >> > sio >> > nkey":"svge6Qrqq9nR4yPm9TYMn1UgvSo\u003d","cmdEventType":"NETWORK.D >> > ELE >> > TE","ctxUserId":"2","httpmethod":"GET","_":"1403351731747","ctxAcco >> > unt >> > Id":"2","ctxStartEventId":"562"}, >> > cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: >> > 0, >> > result: null, initMsid: 64342918221735, completeMsid: null, lastUpdated: >> > null, lastPolled: null, created: null} >> > 2014-06-21 17:25:31,947 INFO [o.a.c.f.j.i.AsyncJobMonitor] >> > (Job-Executor-7:ctx-a9e7a416) Add job-160 into job monitoring >> > 2014-06-21 17:25:31,948 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] >> > (Job-Executor-7:ctx-a9e7a416) Executing AsyncJobVO {id:160, userId: >> > 2, >> > accountId: 2, instanceType: None, instanceId: null, cmd: >> > org.apache.cloudstack.api.command.user.network.DeleteNetworkCmd, >> cmdInfo: >> > {"id":"099ff395-9196-43ab-a1e2-cd368dbe3c75","response":"json","ses >> > sio >> > nkey":"svge6Qrqq9nR4yPm9TYMn1UgvSo\u003d","cmdEventType":"NETWORK.D >> > ELE >> > TE","ctxUserId":"2","httpmethod":"GET","_":"1403351731747","ctxAcco >> > unt >> > Id":"2","ctxStartEventId":"562"}, >> > cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: >> > 0, >> > result: null, initMsid: 64342918221735, completeMsid: null, lastUpdated: >> > null, lastPolled: null, created: null} >> > 2014-06-21 17:25:31,949 DEBUG [c.c.a.ApiServlet] >> > (catalina-exec-19:ctx-631429c1 ctx-190760ce) ===END=== >> > 192.168.160.192 -- GET >> > command=deleteNetwork&id=099ff395-9196-43ab-a1e2-cd368dbe3c75&respo >> > nse >> > =json&sessionkey=svge6Qrqq9nR4yPm9TYMn1UgvSo%3D&_=1403351731747 >> > 2014-06-21 17:25:32,041 DEBUG [o.a.c.e.o.NetworkOrchestrator] >> > (Job-Executor-7:ctx-a9e7a416 ctx-190760ce) Network is not implemented: >> > Ntwk[207|Guest|17] >> > 2014-06-21 17:25:32,044 DEBUG [o.a.c.e.o.NetworkOrchestrator] >> > (Job-Executor-7:ctx-a9e7a416 ctx-190760ce) Network is not not in >> > the correct state to be destroyed: Implementing >> > 2014-06-21 17:25:32,100 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] >> > (Job-Executor-7:ctx-a9e7a416) Complete async job-160, jobStatus: >> > FAILED, >> > resultCode: 530, result: >> > org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList": >> > [],"errorcode":530,"errortext":"Failed >> > to delete network"} >> > 2014-06-21 17:25:32,152 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] >> > (Job-Executor-7:ctx-a9e7a416) Done executing >> > org.apache.cloudstack.api.command.user.network.DeleteNetworkCmd for >> > job-160 >> > >> > >> > Regards, >> > Tejas >> > >> > >> > >> > On Sat, Jun 21, 2014 at 5:18 PM, Tejas Gadaria >> > <refond.g...@gmail.com> >> > wrote: >> > >> >> Hi, >> >> >> >> I have created Redundant virtual router. >> >> Right now no vms are running on that, but I am not to delete VR. >> >> >> >> >> > >> > >