Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EB5D8E08C for ; Thu, 14 Mar 2013 19:43:30 +0000 (UTC) Received: (qmail 95948 invoked by uid 500); 14 Mar 2013 19:43:30 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 95899 invoked by uid 500); 14 Mar 2013 19:43:30 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 95891 invoked by uid 99); 14 Mar 2013 19:43:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Mar 2013 19:43:30 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of williamstevens@gmail.com designates 209.85.214.180 as permitted sender) Received: from [209.85.214.180] (HELO mail-ob0-f180.google.com) (209.85.214.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Mar 2013 19:43:22 +0000 Received: by mail-ob0-f180.google.com with SMTP id ef5so2474063obb.25 for ; Thu, 14 Mar 2013 12:43:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:date:x-google-sender-auth:message-id :subject:from:to:content-type; bh=4KO5QwWAs0OmcbCqsdbWg9Cfvoa5G4r1sjL5IjSyU5M=; b=GTyB7aZd1R+RKPSi03IJrMzMXPQFQ3Su2vd4s9cVHTeZTRSxTHstXSr/h2J5RbPGQD thu/XB9zKYb4W3Ggsniu3P95G9HNRSNCNjxkUxfN+Aqi8CjsBs/fZR+XEuh22jRsBQkX amozQ9ecg6OnAT7yHaqyPzC1qW6V83eyHMEdXtfQ5KpqJFZVGx8c22BpBUqEafFoyRgV MaitA9FRkwQDpNw4INwdsgVwThBkxhet7Skp2en0Zcmy2vbvHc8BwXeIVQL3gu4HBsqI /3Wiqz+SQwvP4L1wta1RU+tDt50tKEwERkEovBcUMWobpODKbGNszzUCqYW5SyKqd5kF Udig== MIME-Version: 1.0 X-Received: by 10.60.11.168 with SMTP id r8mr1749286oeb.136.1363290181748; Thu, 14 Mar 2013 12:43:01 -0700 (PDT) Sender: williamstevens@gmail.com Received: by 10.60.164.38 with HTTP; Thu, 14 Mar 2013 12:43:01 -0700 (PDT) Date: Thu, 14 Mar 2013 15:43:01 -0400 X-Google-Sender-Auth: YTfTUxFzUb4P9QYFPQz4AsEiX9g Message-ID: Subject: Shared network bug? From: Will Stevens To: "cloudstack-dev@incubator.apache.org" Content-Type: multipart/alternative; boundary=e89a8fb1f35a024f2e04d7e7bb72 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8fb1f35a024f2e04d7e7bb72 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I am not sure if it just my configuration or if this is actually a bug in core. Can anyone else validate if this is a bug? I am currently working off '9e13533e2123ef13d96b35bf989fa069b30428f4' on the Master branch (I dont really want to change that right now as I am in the middle of dev). If I create a guest network in the Domain scope with 'Subdomain Access' checked and with the 'Offering for Shared network' service offering. After the network comes up, I can click on 'View IP Ranges'. If I delete the IP range that it gives me, it deletes fine. Now I can no longer add an IP range back in (not even the one I deleted). I always get the error "Gateway, netmask and zoneId have to be passed in for virtual and direct untagged networks" in an overlay window and it will not add it. So now I can't add back an IP range. If I then try to just delete this network because it is now broken, I get a NullPointerError (shown below). Now I have a network that I can no longer use or delete. Can anyone else verify this is a bug and is not just associated with my setup? Cheers, Will Exception ---------------------------- 2013-03-14 15:40:47,601 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-4:job-10) Executing org.apache.cloudstack.api.command.user.network.DeleteNetworkCmd for job-10 2013-03-14 15:40:47,640 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-4:job-10) Network is not implemented: Ntwk[211|Guest|7] 2013-03-14 15:40:47,647 DEBUG [network.rules.RulesManagerImpl] (Job-Executor-4:job-10) Releasing 0 port forwarding rules for network id=3D= 211 2013-03-14 15:40:47,649 DEBUG [network.rules.RulesManagerImpl] (Job-Executor-4:job-10) Releasing 0 static nat rules for network id=3D211 2013-03-14 15:40:47,650 DEBUG [network.rules.RulesManagerImpl] (Job-Executor-4:job-10) There are no port forwarding rules to apply for network id=3D211 2013-03-14 15:40:47,651 DEBUG [network.rules.RulesManagerImpl] (Job-Executor-4:job-10) There are no static nat rules to apply for network id=3D211 2013-03-14 15:40:47,653 DEBUG [network.rules.RulesManagerImpl] (Job-Executor-4:job-10) Successfully released rules for network id=3D211 an= d # of rules now =3D 0 2013-03-14 15:40:47,653 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-4:job-10) Successfully cleaned up portForwarding/staticNat rules for network id=3D211 2013-03-14 15:40:47,656 DEBUG [network.lb.LoadBalancingRulesManagerImpl] (Job-Executor-4:job-10) Found 0 lb rules to cleanup 2013-03-14 15:40:47,656 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-4:job-10) Successfully cleaned up load balancing rules for network id=3D211 2013-03-14 15:40:47,658 DEBUG [network.firewall.FirewallManagerImpl] (Job-Executor-4:job-10) Releasing 0 firewall rules for network id=3D211 2013-03-14 15:40:47,659 DEBUG [network.firewall.FirewallManagerImpl] (Job-Executor-4:job-10) There are no firewall rules to apply 2013-03-14 15:40:47,659 DEBUG [network.firewall.FirewallManagerImpl] (Job-Executor-4:job-10) Successfully released firewall rules for network id=3D211 and # of rules now =3D 0 2013-03-14 15:40:47,659 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-4:job-10) Successfully cleaned up firewallRules rules for network id=3D211 2013-03-14 15:40:47,661 DEBUG [network.vpc.NetworkACLManagerImpl] (Job-Executor-4:job-10) Found no network ACLs for network id=3D211 2013-03-14 15:40:47,661 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-4:job-10) Successfully cleaned up NetworkACLs for network id=3D211 2013-03-14 15:40:47,668 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-4:job-10) Sending destroy to com.cloud.network.element.VirtualRouterElement@4ae9e2f0 2013-03-14 15:40:47,672 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-4:job-10) Network id=3D211 is destroyed successfully, cleanin= g up corresponding resources now. 2013-03-14 15:40:47,677 DEBUG [cloud.network.NetworkManagerImpl] (Job-Executor-4:job-10) Deleted ip range for private network id=3D211 2013-03-14 15:40:47,679 DEBUG [db.Transaction.Transaction] (Job-Executor-4:job-10) Rolling back the transaction: Time =3D 5 Name =3D -AsyncJobManagerImpl$1.run:401-Executors$RunnableAdapter.call:439-FutureTa= sk$Sync.innerRun:303-FutureTask.run:138-ThreadPoolExecutor$Worker.runTask:8= 86-ThreadPoolExecutor$Worker.run:908-Thread.run:662; called by -Transaction.rollback:890-Transaction.removeUpTo:833-Transaction.close:657-= TransactionContextBuilder.AroundAnyMethod:39-GeneratedMethodAccessor36.invo= ke:-1-DelegatingMethodAccessorImpl.invoke:25-Method.invoke:597-AbstractAspe= ctJAdvice.invokeAdviceMethodWithGivenArgs:621-AbstractAspectJAdvice.invokeA= dviceMethod:610-AspectJAroundAdvice.invoke:65-ReflectiveMethodInvocation.pr= oceed:172-ExposeInvocationInterceptor.invoke:90 2013-03-14 15:40:47,683 ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-4:job-10) Unexpected exception while executing org.apache.cloudstack.api.command.user.network.DeleteNetworkCmd java.lang.NullPointerException at com.cloud.utils.fsm.StateMachine2.getNextState(StateMachine2.java:81) at com.cloud.utils.fsm.StateMachine2.transitTo(StateMachine2.java:100) at com.cloud.network.NetworkManagerImpl.stateTransitTo(NetworkManagerImpl.java= :3526) at com.cloud.network.NetworkManagerImpl.destroyNetwork(NetworkManagerImpl.java= :2246) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invo= keJoinpoint(Cglib2AopProxy.java:689) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec= tiveMethodInvocation.java:150) at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed= (MethodInvocationProceedingJoinPoint.java:80) at com.cloud.utils.db.TransactionContextBuilder.AroundAnyMethod(TransactionCon= textBuilder.java:37) at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp= l.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWit= hGivenArgs(AbstractAspectJAdvice.java:621) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(Ab= stractAspectJAdvice.java:610) at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdv= ice.java:65) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec= tiveMethodInvocation.java:172) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(Expo= seInvocationInterceptor.java:90) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec= tiveMethodInvocation.java:172) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.= intercept(Cglib2AopProxy.java:622) at com.cloud.network.NetworkServiceImpl.deleteNetwork(NetworkServiceImpl.java:= 1331) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invo= keJoinpoint(Cglib2AopProxy.java:689) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec= tiveMethodInvocation.java:150) at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed= (MethodInvocationProceedingJoinPoint.java:80) at com.cloud.event.ActionEventInterceptor.AroundAnyMethod(ActionEventIntercept= or.java:41) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3= 9) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp= l.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWit= hGivenArgs(AbstractAspectJAdvice.java:621) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(Ab= stractAspectJAdvice.java:610) at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdv= ice.java:65) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec= tiveMethodInvocation.java:161) at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed= (MethodInvocationProceedingJoinPoint.java:80) at com.cloud.utils.db.TransactionContextBuilder.AroundAnyMethod(TransactionCon= textBuilder.java:43) at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp= l.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWit= hGivenArgs(AbstractAspectJAdvice.java:621) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(Ab= stractAspectJAdvice.java:610) at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdv= ice.java:65) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec= tiveMethodInvocation.java:172) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(Expo= seInvocationInterceptor.java:90) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec= tiveMethodInvocation.java:172) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.= intercept(Cglib2AopProxy.java:622) at org.apache.cloudstack.api.command.user.network.DeleteNetworkCmd.execute(Del= eteNetworkCmd.java:70) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invo= keJoinpoint(Cglib2AopProxy.java:689) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec= tiveMethodInvocation.java:150) at com.cloud.utils.db.TransactionContextBuilder.invoke(TransactionContextBuild= er.java:60) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec= tiveMethodInvocation.java:172) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.= intercept(Cglib2AopProxy.java:622) at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:159) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invo= keJoinpoint(Cglib2AopProxy.java:689) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec= tiveMethodInvocation.java:150) at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed= (MethodInvocationProceedingJoinPoint.java:80) at com.cloud.utils.db.TransactionContextBuilder.AroundAnyMethod(TransactionCon= textBuilder.java:43) at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp= l.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWit= hGivenArgs(AbstractAspectJAdvice.java:621) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(Ab= stractAspectJAdvice.java:610) at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdv= ice.java:65) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec= tiveMethodInvocation.java:172) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(Expo= seInvocationInterceptor.java:90) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec= tiveMethodInvocation.java:172) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.= intercept(Cglib2AopProxy.java:622) at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.j= ava:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:= 908) at java.lang.Thread.run(Thread.java:662) --e89a8fb1f35a024f2e04d7e7bb72--