cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-1303) Ipv6 - java.lang.NullPointerException when executing listnetworks() and deployVirtualMachine() after extending the Ipv4 range of a dual stack network.
Date Fri, 22 Feb 2013 02:03:12 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-1303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13583816#comment-13583816
] 

ASF subversion and git services commented on CLOUDSTACK-1303:
-------------------------------------------------------------

Commit a0762bc4a7771b47c004f523c8d3d636d5b3a11e in branch refs/heads/master from Sheng Yang
<sheng.yang@citrix.com>
[ https://git-wip-us.apache.org/repos/asf?p=incubator-cloudstack.git;h=a0762bc ]

CLOUDSTACK-1303: Fix NPE when extend vlan with ipv4 only

                
> Ipv6 - java.lang.NullPointerException when executing listnetworks() and deployVirtualMachine()
after extending the Ipv4 range of a dual stack network.
> ------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-1303
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1303
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Management Server
>    Affects Versions: 4.1.0
>         Environment: Latest build from network refactor branch.
>            Reporter: Sangeetha Hariharan
>            Assignee: Sheng Yang
>             Fix For: 4.1.0
>
>
> Ipv6 - java.lang.NullPointerException when executing listnetworks() and deployVirtualMachine()
after extending the Ipv4 range of a dual stack network.
> Steps to reproduce the problem:
> Create dual stack network , by specifying both ipv4 and ipv6 params.
> Deploy Vms and exhaust all the ipv4 abd ipv6 params.
> Attempting to deploy Vms fail.
> Extend IPV4 range of this network.
> After this trying to listNetwork fails:
> GET command=listNetworks&response=json&sessionkey=ZF9ctKFpv2BhlQxrC2Y8wvTlGMU%3D&zoneId=fa60468a-c5d1-42a2-92e8-23cc5a62b935&domainid=f4af033d-c767-447f-9a30-ad1174ca5e24&account=admin&_=1360955805067
530 null
> Following is management server logs:
> 2013-02-15 19:15:48,447 DEBUG [cloud.api.ApiServlet] (catalina-exec-17:null) ===START===
 10.217.252.59 -- GET  command=listNetworks&response=json&sessionkey=ZF9ctKFpv2BhlQxrC2Y8wvTlGMU%3D&zoneId=fa60468a-c5d1-42a2-92e8-23cc5a62b935&domainid=f4af033d-c767-447f-9a30-ad1174ca5e24&account=admin&_=1360955805067
> 2013-02-15 19:15:48,452 DEBUG [cloud.user.AccountManagerImpl] (catalina-exec-17:null)
Access granted to Acct[2-admin] to Domain:1/ by DomainChecker
> 2013-02-15 19:15:48,467 ERROR [cloud.api.ApiDispatcher] (catalina-exec-17:null) Exception
while executing ListNetworksCmd:
> java.lang.NullPointerException
>         at com.cloud.utils.net.NetUtils.countIp6InRange(NetUtils.java:1219)
>         at com.cloud.network.NetworkModelImpl.isIP6AddressAvailableInVlan(NetworkModelImpl.java:556)
>         at com.cloud.network.NetworkModelImpl.isIP6AddressAvailableInNetwork(NetworkModelImpl.java:544)
>         at com.cloud.network.NetworkModelImpl.canUseForDeploy(NetworkModelImpl.java:524)
>         at com.cloud.api.ApiDBUtils.canUseForDeploy(ApiDBUtils.java:842)
>         at com.cloud.api.ApiResponseHelper.createNetworkResponse(ApiResponseHelper.java:3183)
>         at com.cloud.api.commands.ListNetworksCmd.execute(ListNetworksCmd.java:156)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:168)
>         at com.cloud.api.ApiServer.queueCommand(ApiServer.java:540)
>         at com.cloud.api.ApiServer.handleRequest(ApiServer.java:424)
>         at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:312)
>         at com.cloud.api.ApiServlet.doGet(ApiServlet.java:64)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
>         at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
>         at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
>         at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2268)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:679)
> 2013-02-15 19:15:48,469 DEBUG [cloud.api.ApiServlet] (catalina-exec-17:null) ===END===
 10.217.252.59 -- GET  command=listNetworks&response=json&sessionkey=ZF9ctKFpv2BhlQxrC2Y8wvTlGMU%3D&zoneId=fa60468a-c5d1-42a2-92e8-23cc5a62b935&domainid=f4af033d-c767-447f-9a30-ad1174ca5e24&account=admin&_=1360955805067
> Same exception is also seen when deploying Vms:
> 2013-02-15 19:28:59,914 DEBUG [cloud.api.ApiServlet] (catalina-exec-12:null) ===START===
 10.217.252.59 -- GET  command=deployVirtualMachine&zoneId=fa60468a-c5d1-42a2-92e8-23
> cc5a62b935&templateId=2b2faf4e-12e6-4c94-9bf5-8647aaaa5e8c&hypervisor=KVM&serviceOfferingId=ac380d95-8016-4761-bc14-e6a764a15b51&networkIds=5f53c588-2324-4f4a-900b-a62e08fd77
> e6&displayname=small-extend-4&name=small-extend-4&response=json&sessionkey=ZF9ctKFpv2BhlQxrC2Y8wvTlGMU%3D
> 2013-02-15 19:28:59,934 DEBUG [cloud.network.NetworkModelImpl] (catalina-exec-12:null)
Service SecurityGroup is not supported in the network id=208
> 2013-02-15 19:28:59,949 DEBUG [cloud.vm.UserVmManagerImpl] (catalina-exec-12:null) Allocating
in the DB for vm
> 2013-02-15 19:28:59,949 DEBUG [cloud.vm.VirtualMachineManagerImpl] (catalina-exec-12:null)
Allocating entries for VM: VM[User|small-extend-4]
> 2013-02-15 19:28:59,953 DEBUG [cloud.vm.VirtualMachineManagerImpl] (catalina-exec-12:null)
Allocating nics for VM[User|small-extend-4]
> 2013-02-15 19:28:59,953 DEBUG [cloud.network.NetworkManagerImpl] (catalina-exec-12:null)
Allocating nic for vm VM[User|small-extend-4] in network Ntwk[208|Guest|7] with reque
> sted profile NicProfile[0-0-null-null-null
> 2013-02-15 19:28:59,963 DEBUG [db.Transaction.Transaction] (catalina-exec-12:null) Rolling
back the transaction: Time = 13 Name =  createVirtualMachine; called by -Transactio
> n.rollback:882-Transaction.removeUpTo:825-Transaction.close:649-DatabaseCallback.interceptComplete:71-DatabaseCallback.intercept:36-VirtualMachineManagerImpl.allocate:294-Dat
> abaseCallback.intercept:34-UserVmManagerImpl.createVirtualMachine:2486-ComponentLocator$InterceptorDispatcher.intercept:1262-UserVmManagerImpl.createAdvancedVirtualMachine:22
> 24-DeployVMCmd.create:433-ApiDispatcher.dispatchCreateCmd:102
> 2013-02-15 19:28:59,983 ERROR [cloud.api.ApiDispatcher] (catalina-exec-12:null) Exception
while executing DeployVMCmd:
> java.lang.NullPointerException
>         at com.cloud.utils.net.NetUtils.countIp6InRange(NetUtils.java:1219)
>         at com.cloud.network.NetworkModelImpl.isIP6AddressAvailableInVlan(NetworkModelImpl.java:556)
>         at com.cloud.network.NetworkModelImpl.isIP6AddressAvailableInNetwork(NetworkModelImpl.java:544)
>         at com.cloud.network.Ipv6AddressManagerImpl.assignDirectIp6Address(Ipv6AddressManagerImpl.java:106)
>         at com.cloud.network.NetworkManagerImpl.allocateDirectIp(NetworkManagerImpl.java:3404)
>         at com.cloud.network.guru.DirectNetworkGuru.allocate(DirectNetworkGuru.java:193)
>         at com.cloud.network.NetworkManagerImpl.allocateNic(NetworkManagerImpl.java:1294)
>         at com.cloud.utils.db.DatabaseCallback.intercept(DatabaseCallback.java:34)
>         at com.cloud.network.NetworkManagerImpl.allocate(NetworkManagerImpl.java:1235)
>         at com.cloud.utils.db.DatabaseCallback.intercept(DatabaseCallback.java:34)
>         at com.cloud.vm.VirtualMachineManagerImpl.allocate(VirtualMachineManagerImpl.java:294)
>         at com.cloud.utils.db.DatabaseCallback.intercept(DatabaseCallback.java:34)
>         at com.cloud.vm.UserVmManagerImpl.createVirtualMachine(UserVmManagerImpl.java:2486)
>         at com.cloud.utils.component.ComponentLocator$InterceptorDispatcher.intercept(ComponentLocator.java:1262)
>         at com.cloud.vm.UserVmManagerImpl.createAdvancedVirtualMachine(UserVmManagerImpl.java:2224)
>         at com.cloud.api.commands.DeployVMCmd.create(DeployVMCmd.java:433)
>         at com.cloud.api.ApiDispatcher.dispatchCreateCmd(ApiDispatcher.java:102)
>         at com.cloud.api.ApiServer.queueCommand(ApiServer.java:486)
>         at com.cloud.api.ApiServer.handleRequest(ApiServer.java:424)
>         at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:312)
>         at com.cloud.api.ApiServlet.doGet(ApiServlet.java:64)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
>         at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
>         at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
>         at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2268)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:679)
> 2013-02-15 19:28:59,985 DEBUG [cloud.api.ApiServlet] (catalina-exec-12:null) ===END===
 10.217.252.59 -- GET  command=deployVirtualMachine&zoneId=fa60468a-c5d1-42a2-92e8-23cc
> 5a62b935&templateId=2b2faf4e-12e6-4c94-9bf5-8647aaaa5e8c&hypervisor=KVM&serviceOfferingId=ac380d95-8016-4761-bc14-e6a764a15b51&networkIds=5f53c588-2324-4f4a-900b-a62e08fd77e6
> &displayname=small-extend-4&name=small-extend-4&response=json&sessionkey=ZF9ctKFpv2BhlQxrC2Y8wvTlGMU%3D

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message