You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Domenico De Monte <d....@netsons.com> on 2013/12/05 23:01:41 UTC

internal server error on CS 4.2 - can not delete guest network

Hello all.

CS is 4.2 

Once setup a zone with network basic with VMware 5.1, if i try to remove step by step zone, when i need to delete guestnetwork in order to delete physical network of zone i receive following internal server error:

2013-12-05 23:00:00,527 DEBUG [db.Transaction.Transaction] (Job-Executor-9:job-107 = [ 602e96d6-2abc-424d-99a5-1ac1ee5fe5df ]) Rolling back the transaction: Time = 3 Name =  -AsyncJobManagerImpl$1.run:494-Executors$RunnableAdapter.call:471-FutureTask$Sync.innerRun:334-FutureTask.run:166-ThreadPoolExecutor.runWorker:1146-ThreadPoolExecutor$Worker.run:615-Thread.run:701; called by -Transaction.rollback:898-Transaction.removeUpTo:841-Transaction.close:665-TransactionContextBuilder.interceptException:63-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:133-NetworkManagerImpl.destroyNetwork:3131-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:125-NetworkServiceImpl.deleteNetwork:1767-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:125-DeleteNetworkCmd.execute:70-ApiDispatcher.dispatch:158-AsyncJobManagerImpl$1.run:531
2013-12-05 23:00:00,535 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-9:job-107 = [ 602e96d6-2abc-424d-99a5-1ac1ee5fe5df ]) Unexpected exception while executing org.apache.cloudstack.api.command.user.network.DeleteNetworkCmd
java.lang.NullPointerException
	at com.cloud.network.guru.DirectNetworkGuru.trash(DirectNetworkGuru.java:311)
	at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
	at com.cloud.network.NetworkManagerImpl.destroyNetwork(NetworkManagerImpl.java:3131)
	at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
	at com.cloud.network.NetworkServiceImpl.deleteNetwork(NetworkServiceImpl.java:1767)
	at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
	at org.apache.cloudstack.api.command.user.network.DeleteNetworkCmd.execute(DeleteNetworkCmd.java:70)
	at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
	at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
	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.lang.Thread.run(Thread.java:701)
2013-12-05 23:00:00,537 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-9:job-107 = [ 602e96d6-2abc-424d-99a5-1ac1ee5fe5df ]) Complete async job-107 = [ 602e96d6-2abc-424d-99a5-1ac1ee5fe5df ], jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: null
2013-12-05 23:00:00,551 DEBUG [cloud.async.SyncQueueManagerImpl] (Job-Executor-9:job-107 = [ 602e96d6-2abc-424d-99a5-1ac1ee5fe5df ]) Sync queue (7) is currently empty
2013-12-05 23:00:00,552 WARN  [cloud.async.AsyncJobManagerImpl] (Job-Executor-9:job-107 = [ 602e96d6-2abc-424d-99a5-1ac1ee5fe5df ]) Unable to unregister active job [ 107 ] = [ 602e96d6-2abc-424d-99a5-1ac1ee5fe5df ] from JMX monitoring



Waiting for your reply

Best regards

Re: internal server error on CS 4.2 - can not delete guest network

Posted by Daan Hoogland <da...@gmail.com>.
Dominique,

It seems there is a nic in your network with no ip (the null pointer
is on the ip retrieved via the nic) This is a bug. Please create a
ticket for it.

In the meanwhile, if you are confortable with browsing through the
database you can look for nic in your guest network that have no ip
assigned.
above the error you should see a DEBUG message of the following form:

'Releasing ip <ip adress> of placeholder nic "Nic[<id>-<instance
name>-<reservation id>-<ip address>]"'

that could help you locate the problem

regards,
Daan

On Thu, Dec 5, 2013 at 11:01 PM, Domenico De Monte
<d....@netsons.com> wrote:
> Hello all.
>
> CS is 4.2
>
> Once setup a zone with network basic with VMware 5.1, if i try to remove step by step zone, when i need to delete guestnetwork in order to delete physical network of zone i receive following internal server error:
>
> 2013-12-05 23:00:00,527 DEBUG [db.Transaction.Transaction] (Job-Executor-9:job-107 = [ 602e96d6-2abc-424d-99a5-1ac1ee5fe5df ]) Rolling back the transaction: Time = 3 Name =  -AsyncJobManagerImpl$1.run:494-Executors$RunnableAdapter.call:471-FutureTask$Sync.innerRun:334-FutureTask.run:166-ThreadPoolExecutor.runWorker:1146-ThreadPoolExecutor$Worker.run:615-Thread.run:701; called by -Transaction.rollback:898-Transaction.removeUpTo:841-Transaction.close:665-TransactionContextBuilder.interceptException:63-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:133-NetworkManagerImpl.destroyNetwork:3131-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:125-NetworkServiceImpl.deleteNetwork:1767-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:125-DeleteNetworkCmd.execute:70-ApiDispatcher.dispatch:158-AsyncJobManagerImpl$1.run:531
> 2013-12-05 23:00:00,535 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-9:job-107 = [ 602e96d6-2abc-424d-99a5-1ac1ee5fe5df ]) Unexpected exception while executing org.apache.cloudstack.api.command.user.network.DeleteNetworkCmd
> java.lang.NullPointerException
>         at com.cloud.network.guru.DirectNetworkGuru.trash(DirectNetworkGuru.java:311)
>         at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>         at com.cloud.network.NetworkManagerImpl.destroyNetwork(NetworkManagerImpl.java:3131)
>         at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>         at com.cloud.network.NetworkServiceImpl.deleteNetwork(NetworkServiceImpl.java:1767)
>         at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>         at org.apache.cloudstack.api.command.user.network.DeleteNetworkCmd.execute(DeleteNetworkCmd.java:70)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
>         at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
>         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.lang.Thread.run(Thread.java:701)
> 2013-12-05 23:00:00,537 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-9:job-107 = [ 602e96d6-2abc-424d-99a5-1ac1ee5fe5df ]) Complete async job-107 = [ 602e96d6-2abc-424d-99a5-1ac1ee5fe5df ], jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: null
> 2013-12-05 23:00:00,551 DEBUG [cloud.async.SyncQueueManagerImpl] (Job-Executor-9:job-107 = [ 602e96d6-2abc-424d-99a5-1ac1ee5fe5df ]) Sync queue (7) is currently empty
> 2013-12-05 23:00:00,552 WARN  [cloud.async.AsyncJobManagerImpl] (Job-Executor-9:job-107 = [ 602e96d6-2abc-424d-99a5-1ac1ee5fe5df ]) Unable to unregister active job [ 107 ] = [ 602e96d6-2abc-424d-99a5-1ac1ee5fe5df ] from JMX monitoring
>
>
>
> Waiting for your reply
>
> Best regards