cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Santhosh Kumar Edukulla (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CLOUDSTACK-5681) Contrail:MS:API: Create network fails with NPE due to missing CIDR
Date Tue, 07 Jan 2014 10:37:58 GMT

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

Santhosh Kumar Edukulla edited comment on CLOUDSTACK-5681 at 1/7/14 10:37 AM:
------------------------------------------------------------------------------

Hi Parth,

I tried it with felton\4.3. I didn't see any exception here. Below are the steps i followed:

Note1:
1. Login to CS UI, navigate to Network->Add Isolated Network.
2. Filled in all other fields, Entered GatewayIp with out specifying netmask. 

It crated the network.

Note2:
1. Login to CS UI, navigate to Network->Add Guest Network.
2. Filled in all other * fields, Entered GatewayIp with out specifying netmask, startip,endip
etc. Clicking on "OK" thrown up a warning with information retrieved from API, mentioning
these fields are mandatory fields.

I didn't see any exception in either case. As well, it didn't created any entries in DB as
mentioned in mail thread @Dev list.  

Note3: I didn't verified it with 4.2 as 4.2.1 is already on vote for it to be out. Its not
reproducible with 4.3 atleast. If it is indeed reproducible with 4.3, please mention steps
to reproduce.


Thanks!
Santhosh


was (Author: santhoshe):
Hi Parth,

I tried it with felton\4.3. I didn't see any exception here. Below are the steps i followed:

Note1:
1. Network->Add Isolated Network.
2. Filled in all other fields, Entered GatewayIp with out specifying netmask. 

It crated the network.

Note2:
1. Network->Add Guest Network.
2. Filled in all other * fields, Entered GatewayIp with out specifying netmask, startip,endip
etc. Clicking on "OK" thrown up a warning with information retrieved from API, mentioning
these fields are mandatory fields.

I didn't see any exception in either case. As well, it didnt created any entries in DB as
mentioned in mail thread @Dev list.  

Note3: I didn't verified it with 4.2 as 4.2.1 is already on vote for it to be out. Its not
reproducible with 4.3 atleast. If it is indeed reproducible with 4.3, please mention steps
to reproduce.


Thanks!
Santhosh

> 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