cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vinod Nair (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-5681) Contrail:MS:API: Create network fails with NPE due to missing CIDR
Date Tue, 14 Jan 2014 09:12:59 GMT

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

Vinod Nair commented on CLOUDSTACK-5681:
----------------------------------------

Root cause is that ACS is allowing to create a VN without a net mask value, Whereas list networks
command is checking for if cidr value is present or not for a network while iterating all
networks. If it finds a network without cidr it throws Exception and  returns empty

This issue exists in ACS4.3 also .. 

> Contrail:MS:API: Create network fails with NPE due to missing CIDR
> ------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-5681
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5681
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: API, Contrail, Management Server
>    Affects Versions: 4.2.0
>         Environment: Contrail
>            Reporter: Parth Jagirdar
>            Assignee: Santhosh Kumar Edukulla
>            Priority: Critical
>
> CIDR is not required param in API, but without CIDR exceptions are thrown.
> 2013-12-27 16:44:14,088 ERROR [cloud.api.ApiServer] (catalina-exec-3:null) unhandled
exception executing api command: createNetwork
> java.lang.NullPointerException
> 	at com.cloud.network.NetworkModelImpl.getAvailableIps(NetworkModelImpl.java:1694)
> 	at com.cloud.network.NetworkModelImpl.canUseForDeploy(NetworkModelImpl.java:585)
> 	at com.cloud.api.ApiDBUtils.canUseForDeploy(ApiDBUtils.java:1147)
> 	at com.cloud.api.ApiResponseHelper.createNetworkResponse(ApiResponseHelper.java:2259)
> 	at org.apache.cloudstack.api.command.user.network.CreateNetworkCmd.execute(CreateNetworkCmd.java:288)
> 	at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
> 	at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
> 	at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
> 	at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
> 	at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66)
> 	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:2266)
> 	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:724)
> 2013-12-27 16:44:14,093 DEBUG [cloud.api.ApiServlet] (catalina-exec-3:null) ===END===
 10.215.2.19 -- GET  command=createNetwork&response=json&sessionkey=ijYX%2B4fZ2EjdBMgdrTgGLJU2e60%3D&networkOfferingId=c9298387-30ec-40be-a0b7-cf54829fa5f8&name=temp&displayText=temp&zoneId=37b6d96d-5b66-429b-8e8e-b7bd6d12ae96&_=1388191455496
> 2013-12-27 16:44:18,776 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-2:null)
SeqA 2-11511: Processing Seq 2-11511:  { Cmd , MgmtId: -1, via: 2, Ver: v1, Flags: 11, [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":2,"_loadInfo":"{\n
 \"connections\": []\n}","wait":0}}] }
> 2013-12-27 16:44:18,780 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-2:null)
SeqA 2-11511: Sending Seq 2-11511:  { Ans: , MgmtId: 86780043846508, via: 2, Ver: v1, Flags:
100010, [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
> 2013-12-27 16:44:18,909 DEBUG [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null)
Zone 1 is ready to launch secondary storage VM
> 2013-12-27 16:44:19,091 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null)
Zone 1 is ready to launch console proxy
> 2013-12-27 16:44:20,476 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null)
Found 0 routers to update status. 
> 2013-12-27 16:44:20,478 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null)
Found 0 networks to update RvR status. 
> 2013-12-27 16:44:20,510 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null)
Found 0 routers to update status. 
> 2013-12-27 16:44:20,511 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null)
Found 0 networks to update RvR status. 



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message