You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Daan Hoogland (JIRA)" <ji...@apache.org> on 2013/06/12 20:10:19 UTC
[jira] [Commented] (CLOUDSTACK-2967) createVlanIpRangeCmd broken in
master
[ https://issues.apache.org/jira/browse/CLOUDSTACK-2967?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13681451#comment-13681451 ]
Daan Hoogland commented on CLOUDSTACK-2967:
-------------------------------------------
ERROR [cloud.api.ApiServer] (127223499@qtp-385844170-2:) unhandled exception executing api command: createVlanIpRange
java.lang.NullPointerException
at com.cloud.configuration.ConfigurationManagerImpl.createVlanAndPublicIpRange(ConfigurationManagerImpl.java:2531)
at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at org.apache.cloudstack.api.command.admin.vlan.CreateVlanIpRangeCmd.execute(CreateVlanIpRangeCmd.java:211)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:528)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:371)
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:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
> createVlanIpRangeCmd broken in master
> -------------------------------------
>
> Key: CLOUDSTACK-2967
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2967
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the default.)
> Affects Versions: 4.2.0
> Reporter: Daan Hoogland
>
> calling the following peace of code has worked ever since 4.0 but is now breaking:
> # Add public network ip range
> createVlan = createVlanIpRange.createVlanIpRangeCmd()
> createVlan.zoneid = zone.id
> createVlan.vlan = 317
> createVlan.gateway = "195.66.90.193"
> createVlan.netmask = "255.255.255.224"
> createVlan.startip = "195.66.90.212"
> createVlan.endip = "195.66.90.216"
> createVlan.forvirtualnetwork = True
> try:
> resp = conn.make_request(createVlan)
> vlan = resp.vlan
> except urllib2.HTTPError, e:
> print "createVlanIpRangeCmd Failed : " + str(e.msg)
> print "Vlan for public internet created on vlanid " + vlan.vlan
--
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