cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sangeetha Hariharan (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CLOUDSTACK-1303) Ipv6 - java.lang.NullPointerException when executing listnetworks() and deployVirtualMachine() after extending the Ipv4 range of a dual stack network.
Date Mon, 04 Mar 2013 19:11:12 GMT

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-1303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sangeetha Hariharan closed CLOUDSTACK-1303.
-------------------------------------------


Tested with latest build from networkrefactor branch:


Create dual stack network , by specifying both ipv4 and ipv6 params.

Deploy Vms and exhaust all the ipv4 address.

Attempting to deploy Vms fail.

Extend IPV4 range of this network.

After this  i am able to deploy Vms successfully.

List Network also succeeds.


{ "listnetworksresponse" : { "count":6 ,"network" : [  {"id":"e92e0fb5-c5e7-415e-9b86-fee1eb6de926","name":"1372","displaytext":"1372","broadcastdomaintype":"Vlan","traffictype":"Guest","gateway":"10.223.137.129","netmask":"255.255.255.192","cidr":"10.223.137.128/26","zoneid":"78d00583-322d-40f8-baf8-fd47b0329a76","zonename":"zone1","networkofferingid":"b9eee2a6-cfc6-4495-bf25-3e4afef1941a","networkofferingname":"DefaultSharedNetworkOffering","networkofferingdisplaytext":"Offering
for Shared networks","networkofferingavailability":"Optional","issystem":false,"state":"Setup","related":"e92e0fb5-c5e7-415e-9b86-fee1eb6de926","broadcasturi":"vlan://1372","dns1":"72.52.126.11","dns2":"72.52.126.12","type":"Shared","vlan":"1372","acltype":"Domain","subdomainaccess":true,"domainid":"048ada62-318a-4eab-b592-868384cd9375","domain":"ROOT","service":[{"name":"Dns","capability":[{"name":"AllowDnsSuffixModification","value":"true","canchooseservicecapability":false}]},{"name":"UserData"},{"name":"Dhcp"}],"networkdomain":"yoyo1372","physicalnetworkid":"31e62af7-bb32-4f0c-9948-3c82da3cb047","restartrequired":false,"specifyipranges":true,"canusefordeploy":true,"tags":[]},
{"id":"7373f119-70c0-4e6a-88e8-6b703911e6ff","name":"1373","displaytext":"1373","broadcastdomaintype":"Vlan","traffictype":"Guest","gateway":"10.223.137.193","netmask":"255.255.255.192","cidr":"10.223.137.192/26","zoneid":"78d00583-322d-40f8-baf8-fd47b0329a76","zonename":"zone1","networkofferingid":"b9eee2a6-cfc6-4495-bf25-3e4afef1941a","networkofferingname":"DefaultSharedNetworkOffering","networkofferingdisplaytext":"Offering
for Shared networks","networkofferingavailability":"Optional","issystem":false,"state":"Setup","related":"7373f119-70c0-4e6a-88e8-6b703911e6ff","broadcasturi":"vlan://1373","dns1":"72.52.126.11","dns2":"72.52.126.12","type":"Shared","vlan":"1373","acltype":"Domain","subdomainaccess":true,"domainid":"048ada62-318a-4eab-b592-868384cd9375","domain":"ROOT","service":[{"name":"Dns","capability":[{"name":"AllowDnsSuffixModification","value":"true","canchooseservicecapability":false}]},{"name":"UserData"},{"name":"Dhcp"}],"networkdomain":"yoyo1373","physicalnetworkid":"31e62af7-bb32-4f0c-9948-3c82da3cb047","restartrequired":false,"specifyipranges":true,"canusefordeploy":true,"tags":[]},
{"id":"8aeeb860-3c8c-4463-8924-cfa81181f4ef","name":"test1383","displaytext":"test1383","broadcastdomaintype":"Vlan","traffictype":"Guest","zoneid":"78d00583-322d-40f8-baf8-fd47b0329a76","zonename":"zone1","networkofferingid":"b9eee2a6-cfc6-4495-bf25-3e4afef1941a","networkofferingname":"DefaultSharedNetworkOffering","networkofferingdisplaytext":"Offering
for Shared networks","networkofferingavailability":"Optional","issystem":false,"state":"Setup","related":"8aeeb860-3c8c-4463-8924-cfa81181f4ef","broadcasturi":"vlan://1383","dns1":"72.52.126.11","dns2":"72.52.126.12","type":"Shared","vlan":"1383","acltype":"Domain","subdomainaccess":true,"domainid":"048ada62-318a-4eab-b592-868384cd9375","domain":"ROOT","service":[{"name":"Dns","capability":[{"name":"AllowDnsSuffixModification","value":"true","canchooseservicecapability":false}]},{"name":"UserData"},{"name":"Dhcp"}],"networkdomain":"hello1383","physicalnetworkid":"31e62af7-bb32-4f0c-9948-3c82da3cb047","restartrequired":false,"specifyipranges":true,"canusefordeploy":true,"tags":[],"ip6gateway":"fc00:3:1383::1","ip6cidr":"fc00:3:1383::1/64"},
{"id":"dee77160-ac1e-4ae6-a69e-6b69c77fae15","name":"test1382","displaytext":"test1382","broadcastdomaintype":"Vlan","traffictype":"Guest","zoneid":"78d00583-322d-40f8-baf8-fd47b0329a76","zonename":"zone1","networkofferingid":"b9eee2a6-cfc6-4495-bf25-3e4afef1941a","networkofferingname":"DefaultSharedNetworkOffering","networkofferingdisplaytext":"Offering
for Shared networks","networkofferingavailability":"Optional","issystem":false,"state":"Setup","related":"dee77160-ac1e-4ae6-a69e-6b69c77fae15","broadcasturi":"vlan://1382","dns1":"72.52.126.11","dns2":"72.52.126.12","type":"Shared","vlan":"1382","acltype":"Domain","subdomainaccess":true,"domainid":"048ada62-318a-4eab-b592-868384cd9375","domain":"ROOT","service":[{"name":"Dns","capability":[{"name":"AllowDnsSuffixModification","value":"true","canchooseservicecapability":false}]},{"name":"UserData"},{"name":"Dhcp"}],"networkdomain":"hello1382","physicalnetworkid":"31e62af7-bb32-4f0c-9948-3c82da3cb047","restartrequired":false,"specifyipranges":true,"canusefordeploy":true,"tags":[],"ip6gateway":"fc00:3:1382::1","ip6cidr":"fc00:3:1382::1/64"},
{"id":"ce7e6325-d851-41bd-a8b3-1817990f3495","name":"test1371-dual","displaytext":"test1371-dual","broadcastdomaintype":"Vlan","traffictype":"Guest","gateway":"10.223.137.65","netmask":"255.255.255.192","cidr":"10.223.137.64/26","zoneid":"78d00583-322d-40f8-baf8-fd47b0329a76","zonename":"zone1","networkofferingid":"b9eee2a6-cfc6-4495-bf25-3e4afef1941a","networkofferingname":"DefaultSharedNetworkOffering","networkofferingdisplaytext":"Offering
for Shared networks","networkofferingavailability":"Optional","issystem":false,"state":"Setup","related":"ce7e6325-d851-41bd-a8b3-1817990f3495","broadcasturi":"vlan://1371","dns1":"72.52.126.11","dns2":"72.52.126.12","type":"Shared","vlan":"1371","acltype":"Domain","subdomainaccess":true,"domainid":"048ada62-318a-4eab-b592-868384cd9375","domain":"ROOT","service":[{"name":"Dns","capability":[{"name":"AllowDnsSuffixModification","value":"true","canchooseservicecapability":false}]},{"name":"UserData"},{"name":"Dhcp"}],"networkdomain":"hello1371","physicalnetworkid":"31e62af7-bb32-4f0c-9948-3c82da3cb047","restartrequired":false,"specifyipranges":true,"canusefordeploy":true,"tags":[],"ip6gateway":"fc00:3:1371::1","ip6cidr":"fc00:3:1371::1/64"},
{"id":"a90b0c76-0468-4f24-969f-3c0958b1e518","name":"test1370-dual","displaytext":"test1370-dual","broadcastdomaintype":"Vlan","traffictype":"Guest","gateway":"10.223.137.1","netmask":"255.255.255.224","cidr":"10.223.137.0/27","zoneid":"78d00583-322d-40f8-baf8-fd47b0329a76","zonename":"zone1","networkofferingid":"b9eee2a6-cfc6-4495-bf25-3e4afef1941a","networkofferingname":"DefaultSharedNetworkOffering","networkofferingdisplaytext":"Offering
for Shared networks","networkofferingavailability":"Optional","issystem":false,"state":"Setup","related":"a90b0c76-0468-4f24-969f-3c0958b1e518","broadcasturi":"vlan://1370","dns1":"72.52.126.11","dns2":"72.52.126.12","type":"Shared","vlan":"1370","acltype":"Domain","subdomainaccess":true,"domainid":"048ada62-318a-4eab-b592-868384cd9375","domain":"ROOT","service":[{"name":"Dns","capability":[{"name":"AllowDnsSuffixModification","value":"true","canchooseservicecapability":false}]},{"name":"UserData"},{"name":"Dhcp"}],"networkdomain":"hello1370","physicalnetworkid":"31e62af7-bb32-4f0c-9948-3c82da3cb047","restartrequired":false,"specifyipranges":true,"canusefordeploy":true,"tags":[],"ip6gateway":"fc00:3:1370::1","ip6cidr":"fc00:3:1370::1/64"}
] } }


                
> 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