Sonil, Did you try what Gopalakrishnan suggested?

Also can you expand on the version of cloudstack you are running?

thanks,

On Sun, Feb 22, 2015 at 12:24 PM, Sonali Jadhav
<[email protected]> wrote:
> Anyone help?
> /Sonali
>
>
> ---- Sonali Jadhav wrote ----
>
> Anyone?
>
> Sent from my Sony Xperia™ smartphone
>
>
> ---- Sonali Jadhav wrote ----
>
> Here are logs,
>
> 2015-02-20 14:26:34,122 DEBUG [c.c.a.m.AgentManagerImpl] 
> (AgentManager-Handler-12:null) SeqA 2-260495: Sending Seq 2-260495:  { Ans: , 
> MgmtId: 59778234354585, via: 2, Ver: v1, Flags: 100010, 
> [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
> 2015-02-20 14:26:34,638 DEBUG [o.a.c.f.j.d.VmWorkJobDaoImpl] 
> (Vm-Operations-Cleanup-1:ctx-53171ec5) Expunge completed work job-483
> 2015-02-20 14:26:34,640 DEBUG [c.c.u.d.T.Transaction] 
> (Vm-Operations-Cleanup-1:ctx-53171ec5) Rolling back the transaction: Time = 2 
> Name =  Vm-Operations-Cleanup-1; called by 
> -TransactionLegacy.rollback:900-TransactionLegacy.removeUpTo:843-TransactionLegacy.close:667-TransactionContextInterceptor.invoke:36-ReflectiveMethodInvocation.proceed:161-ExposeInvocationInterceptor.invoke:91-ReflectiveMethodInvocation.proceed:172-JdkDynamicAopProxy.invoke:204-$Proxy182.expungeCompletedWorkJobs:-1-VirtualMachineManagerImpl$CleanupTask.runInContext:2389-ManagedContextRunnable$1.run:49-DefaultManagedContext$1.call:56
> 2015-02-20 14:26:34,658 ERROR [c.c.v.VirtualMachineManagerImpl] 
> (Vm-Operations-Cleanup-1:ctx-53171ec5) VM Operations failed due to
> com.cloud.utils.exception.CloudRuntimeException: DB Exception on: 
> com.mysql.jdbc.PreparedStatement@e7a49c5: DELETE FROM async_job WHERE 
> async_job.id= 483
>         at com.cloud.utils.db.GenericDaoBase.expunge(GenericDaoBase.java:1178)
>         at 
> org.apache.cloudstack.framework.jobs.dao.VmWorkJobDaoImpl.expungeCompletedWorkJobs(VmWorkJobDaoImpl.java:149)
>         at sun.reflect.GeneratedMethodAccessor183.invoke(Unknown Source)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         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.utils.db.TransactionContextInterceptor.invoke(TransactionContextInterceptor.java:34)
>         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.$Proxy182.expungeCompletedWorkJobs(Unknown Source)
>         at 
> com.cloud.vm.VirtualMachineManagerImpl$CleanupTask.runInContext(VirtualMachineManagerImpl.java:2389)
>         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.runAndReset(FutureTask.java:304)
>         at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
>         at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:744)
> Caused by: 
> com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: 
> Cannot delete or update a parent row: a foreign key constraint fails 
> (`cloud`.`async_job_join_map`, CONSTRAINT 
> `fk_async_job_join_map__join_job_id` FOREIGN KEY (`join_job_id`) REFERENCES 
> `async_job` (`id`))
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> Method)
>         at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>         at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>         at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
>         at com.mysql.jdbc.Util.getInstance(Util.java:386)
>         at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1040)
>         at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3597)
>         at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3529)
>         at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1990)
>         at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2151)
>         at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2625)
>         at 
> com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2119)
>         at 
> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2415)
>         at 
> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2333)
>         at 
> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2318)
>         at 
> org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
>         at 
> org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
>         at com.cloud.utils.db.GenericDaoBase.expunge(GenericDaoBase.java:1169)
>         ... 26 more
> 2015-02-20 14:26:34,770 DEBUG [c.c.a.ApiServlet] 
> (http-6443-exec-4:ctx-46b96aa1) ===START===  192.168.34.1 -- GET  
> command=queryAsyncJobResult&jobId=ff043283-9481-46d2-bcd9-71fbdd0ab3f1&response=json&sessionkey=CkNBaXkKYXP6itmOoSTQVEKXiJo%3D&_=1424438696384
> 2015-02-20 14:26:34,797 DEBUG [c.c.u.AccountManagerImpl] 
> (http-6443-exec-4:ctx-46b96aa1 ctx-7b8c1717) Access to 
> Acct[35719f1c-832c-474d-8045-983ed17523a1-corp] granted to 
> Acct[35719f1c-832c-474d-8045-983ed17523a1-corp] by DomainChecker
> 2015-02-20 14:26:34,858 DEBUG [c.c.a.ApiServlet] 
> (http-6443-exec-4:ctx-46b96aa1 ctx-7b8c1717) ===END===  192.168.34.1 -- GET  
> command=queryAsyncJobResult&jobId=ff043283-9481-46d2-bcd9-71fbdd0ab3f1&response=json&sessionkey=CkNBaXkKYXP6itmOoSTQVEKXiJo%3D&_=1424438696384
> 2015-02-20 14:26:35,024 ERROR [c.c.a.ApiAsyncJobDispatcher] 
> (API-Job-Executor-98:ctx-e2fe93d7 job-482) Unexpected exception while 
> executing org.apache.cloudstack.api.command.user.vm.RemoveNicFromVMCmd
> java.lang.RuntimeException: Job failed due to exception null
>         at 
> com.cloud.vm.VmWorkJobDispatcher.runJob(VmWorkJobDispatcher.java:114)
>         at 
> org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:503)
>         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 
> org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.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.java:1145)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:744)
> 2015-02-20 14:26:35,025 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
> (API-Job-Executor-98:ctx-e2fe93d7 job-482) Complete async job-482, jobStatus: 
> FAILED, resultCode: 530, result: 
> org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":530,"errortext":"Job
>  failed due to exception null"}
> 2015-02-20 14:26:35,082 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
> (API-Job-Executor-98:ctx-e2fe93d7 job-482) Done executing 
> org.apache.cloudstack.api.command.user.vm.RemoveNicFromVMCmd for job-482
> 2015-02-20 14:26:35,111 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager 
> Timer:ctx-c3486e1a) Resetting hosts suitable for reconnect
> 2015-02-20 14:26:35,113 INFO  [o.a.c.f.j.i.AsyncJobMonitor] 
> (API-Job-Executor-98:ctx-e2fe93d7 job-482) Remove job-482 from job monitoring
> 2015-02-20 14:26:35,114 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager 
> Timer:ctx-c3486e1a) Completed resetting hosts suitable for reconnect
> 2015-02-20 14:26:35,114 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager 
> Timer:ctx-c3486e1a) Acquiring hosts for clusters already owned by this 
> management server
> 2015-02-20 14:26:35,116 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager 
> Timer:ctx-c3486e1a) Completed acquiring hosts for clusters already owned by 
> this management server
> 2015-02-20 14:26:35,116 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager 
> Timer:ctx-c3486e1a) Acquiring hosts for clusters not owned by any management 
> server
> 2015-02-20 14:26:35,117 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager 
> Timer:ctx-c3486e1a) Completed acquiring hosts for clusters not owned by any 
> management server
> 2015-02-20 14:26:37,771 DEBUG [c.c.a.ApiServlet] 
> (http-6443-exec-2:ctx-1053809f) ===START===  192.168.34.1 -- GET  
> command=queryAsyncJobResult&jobId=ff043283-9481-46d2-bcd9-71fbdd0ab3f1&response=json&sessionkey=CkNBaXkKYXP6itmOoSTQVEKXiJo%3D&_=1424438699385
> 2015-02-20 14:26:37,798 DEBUG [c.c.u.AccountManagerImpl] 
> (http-6443-exec-2:ctx-1053809f ctx-5db06e08) Access to 
> Acct[35719f1c-832c-474d-8045-983ed17523a1-corp] granted to 
> Acct[35719f1c-832c-474d-8045-983ed17523a1-corp] by DomainChecker
> 2015-02-20 14:26:37,857 DEBUG [c.c.a.ApiServlet] 
> (http-6443-exec-2:ctx-1053809f ctx-5db06e08) ===END===  192.168.34.1 -- GET  
> command=queryAsyncJobResult&jobId=ff043283-9481-46d2-bcd9-71fbdd0ab3f1&response=json&sessionkey=CkNBaXkKYXP6itmOoSTQVEKXiJo%3D&_=1424438699385
> 2015-02-20 14:26:37,975 DEBUG [c.c.a.m.AgentManagerImpl] 
> (AgentManager-Handler-2:null) Ping from 2
> 2015-02-20 14:26:38,048 DEBUG [c.c.a.m.AgentManagerImpl] 
> (AgentManager-Handler-7:null) Ping from 9
> 2015-02-20 14:26:40,509 WARN  [c.c.a.m.DirectAgentAttache] 
> (DirectAgentCronJob-261:ctx-f3e99173) Unable to get current status on 
> 4(SeSolXS02)
> 2015-02-20 14:26:40,687 WARN  [c.c.a.m.DirectAgentAttache] 
> (DirectAgentCronJob-130:ctx-8b85b559) Unable to get current status on 
> 1(SeSolXS01)
> 2015-02-20 14:26:40,747 WARN  [c.c.a.m.DirectAgentAttache] 
> (DirectAgentCronJob-131:ctx-e6c7b284) Unable to get current status on 
> 5(SeSolXS03)
> 2015-02-20 14:26:40,981 WARN  [c.c.a.m.DirectAgentAttache] 
> (DirectAgentCronJob-33:ctx-c6748244) Unable to get current status on 
> 6(SeSolXS04)
>
>
>
>
>
> /Sonali
>
> -----Original Message-----
> From: Gopalakrishnan S [mailto:[email protected]]
> Sent: Friday, February 20, 2015 7:12 PM
> To: [email protected]
> Subject: Re: unable to remove NIC from instance
>
> Hi Sonali,
>
> It may be still routing that shared guest network. Try to restart your 
> virutal router and virtual machine or shutdown your VM before removing that 
> NIC. let me know the logs when you remove that NIC.
>
> Thank You.
> Gopalakrishnan.S
> Cloud Engineer - Fogpanel
>
>   ----- Original Message -----
>   From: Sonali Jadhav
>   To: [email protected]
>   Sent: Friday, February 20, 2015 7:06 PM
>   Subject: unable to remove NIC from instance
>
>
>   Hi,
>
>
>
>   I have one linux instance to which I had added "Shared guest network" NIC. 
> Then I added "isolated guest network" nic to it. Made "isolated guest 
> network" NIC as default and tried to remove "Shared guest network" NIC, but 
> its failing with null exception. I have attached logs.
>
>
>
>   Thanks,
>
>   /sonali
>
>
>
>
>
>



-- 
Daan

Reply via email to