Sanjeev N created CLOUDSTACK-2732:
-------------------------------------
Summary: [Multiple_IP_Ranges] Deleting guest IP range is not
throwing any error message to user while the ip addresses are being used
Key: CLOUDSTACK-2732
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2732
Project: CloudStack
Issue Type: Bug
Security Level: Public (Anyone can view this level - this is the default.)
Components: Management Server
Affects Versions: 4.2.0
Environment: latest build from master
Zone: Advanced with SG
Hypervisor: KVM
Reporter: Sanjeev N
Fix For: 4.2.0
Deleting guest IP range is not throwing any error message to user while the ip
addresses are being used
Steps to Reproduce:
================
1.Bring up CS with SG enabled advanced zone with kvm hypervisor
2.Exhaust all the guest ip ranges from the primary ip range
3.Add another ip range in the existing CIDR
4.Deploy guest vm
5.Try to delete the ip range added at step3
Expected Result:
==============
Deleting ip range when the ip addresses are being used, should throw a valid
error message to user
Actual Result:
===========
No error message popped up for the user
Observations:
===========
API fired:
http://10.147.59.126:8080/client/api?command=deleteVlanIpRange&id=de89f23e-8a17-4b4e-8b9c-8c89c11ec5a1&response=json&sessionkey=ySm8CvuVNkVVRASycbmxD0Lfby4%3D&_=1369826364206
{ "deletevlaniprangeresponse" :
{"uuidList":[],"errorcode":530,"cserrorcode":9999} }
Also observed NPE:
2013-05-29 12:48:27,646 DEBUG [cloud.api.ApiServlet] (catalina-exec-19:null)
===START=== 10.146.0.15 -- GET
command=deleteVlanIpRange&id=de89f23e-8a17-4b4e-8b9c-8c89c11ec5a1&response=json&sessionkey=ySm8CvuVNkVVRASycbmxD0Lfby4%3D&_=1369826364206
2013-05-29 12:48:27,781 DEBUG [agent.manager.AgentManagerImpl]
(AgentManager-Handler-6:null) Ping from 3
2013-05-29 12:48:27,789 ERROR [cloud.api.ApiServer] (catalina-exec-19:null)
unhandled exception executing api command: deleteVlanIpRange
java.lang.NullPointerException
at
com.cloud.configuration.ConfigurationManagerImpl.deleteVlanAndPublicIpRange(ConfigurationManagerImpl.java:2951)
at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at
com.cloud.configuration.ConfigurationManagerImpl.deleteVlanIpRange(ConfigurationManagerImpl.java:3476)
at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at
org.apache.cloudstack.api.command.admin.vlan.DeleteVlanIpRangeCmd.execute(DeleteVlanIpRangeCmd.java:69)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:527)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:370)
at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:304)
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: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-05-29 12:48:27,793 DEBUG [cloud.api.ApiServlet] (catalina-exec-19:null)
===END=== 10.146.0.15 -- GET
command=deleteVlanIpRange&id=de89f23e-8a17-4b4e-8b9c-8c89c11ec5a1&response=json&sessionkey=ySm8CvuVNkVVRASycbmxD0Lfby4%3D&_=1369826364206
--
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