|
updated steps to reproduce bug:
source openrc admin admin
nova secgroup-create sec1 sec1
nova secgroup-add-rule sec1 udp 1 65535 0.0.0.0/0
neutron net-create net1
–
https://gist.github.com/f6cc1b6cc31782336685
POST /controller/nb/v2/neutron/security-groups HTTP/1.1
Host: 192.168.50.1:8080
Content-Length: 3683
Accept-Encoding: gzip, deflate, compress
Accept: /
User-Agent: python-requests/2.2.1 CPython/2.7.6 Linux/3.13.0-24-generic
Content-Type: application/json
Authorization: Basic YWRtaW46YWRtaW4=
{
"security_groups": [
{
"tenant_id": "ce6c217f09ba46e88bd0244eaf46023f",
"description": "sec1",
"id": "43659839-efdc-44ee-958e-3fd5145e60b1",
"security_group_rules": [
{
"remote_group_id": null,
"direction": "egress",
"remote_ip_prefix": null,
"protocol": null,
"ethertype": "IPv4",
"tenant_id": "ce6c217f09ba46e88bd0244eaf46023f",
"port_range_max": null,
"port_range_min": null,
"id": "5bd10137-92b0-41ac-9b7b-4ef400ce628b",
"security_group_id": "43659839-efdc-44ee-958e-3fd5145e60b1"
}
,
{
"remote_group_id": null,
"direction": "egress",
"remote_ip_prefix": null,
"protocol": null,
"ethertype": "IPv6",
"tenant_id": "ce6c217f09ba46e88bd0244eaf46023f",
"port_range_max": null,
"port_range_min": null,
"id": "655fad63-8d32-4bcb-a741-f241c6facf0d",
"security_group_id": "43659839-efdc-44ee-958e-3fd5145e60b1"
}
,
{
"remote_group_id": null,
"direction": "ingress",
"remote_ip_prefix": "0.0.0.0/0",
"protocol": "udp",
"ethertype": "IPv4",
"tenant_id": "ce6c217f09ba46e88bd0244eaf46023f",
"port_range_max": 65535,
"port_range_min": 1,
"id": "d6b44f07-2122-4754-ae6b-5d67dd3cca0d",
"security_group_id": "43659839-efdc-44ee-958e-3fd5145e60b1"
}
],
"name": "sec1"
},
{
"tenant_id": "ce6c217f09ba46e88bd0244eaf46023f",
"description": "Default security group",
"id": "facc851d-6694-4c13-be28-190372be4cb2",
"security_group_rules": [
{
"remote_group_id": null,
"direction": "egress",
"remote_ip_prefix": null,
"protocol": null,
"ethertype": "IPv6",
"tenant_id": "ce6c217f09ba46e88bd0244eaf46023f",
"port_range_max": null,
"port_range_min": null,
"id": "15496a29-35e7-4ee3-9b44-2b9d468b58c2",
"security_group_id": "facc851d-6694-4c13-be28-190372be4cb2"
}
,
{
"remote_group_id": "facc851d-6694-4c13-be28-190372be4cb2",
"direction": "ingress",
"remote_ip_prefix": null,
"protocol": null,
"ethertype": "IPv6",
"tenant_id": "ce6c217f09ba46e88bd0244eaf46023f",
"port_range_max": null,
"port_range_min": null,
"id": "293d90ed-c8bf-49bb-b82e-2fcac5d0f981",
"security_group_id": "facc851d-6694-4c13-be28-190372be4cb2"
}
,
{
"remote_group_id": "facc851d-6694-4c13-be28-190372be4cb2",
"direction": "ingress",
"remote_ip_prefix": null,
"protocol": null,
"ethertype": "IPv4",
"tenant_id": "ce6c217f09ba46e88bd0244eaf46023f",
"port_range_max": null,
"port_range_min": null,
"id": "60d1aeae-38fe-4818-95d8-908bfc14e764",
"security_group_id": "facc851d-6694-4c13-be28-190372be4cb2"
}
,
{
"remote_group_id": null,
"direction": "egress",
"remote_ip_prefix": null,
"protocol": null,
"ethertype": "IPv4",
"tenant_id": "ce6c217f09ba46e88bd0244eaf46023f",
"port_range_max": null,
"port_range_min": null,
"id": "8f1fd1bc-9a0d-47ba-8a23-2ff7221e4fb0",
"security_group_id": "facc851d-6694-4c13-be28-190372be4cb2"
}
],
"name": "default"
}
]
}HTTP/1.1 500 Server Error
Content-Type: text/html;charset=ISO-8859-1
Cache-Control: must-revalidate,no-cache,no-store
Content-Length: 6938
Server: Jetty(8.1.15.v20140411)
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 500 Server Error</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /controller/nb/v2/neutron/security-groups. Reason:
<pre> Server Error</pre></p><h3>Caused by:</h3><pre>java.lang.IllegalArgumentException: Cannot create IpAddress from 0.0.0.0/0
at org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.IpAddressBuilder.getDefaultInstance(IpAddressBuilder.java:41)
at org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.IpAddress.<init>(IpAddress.java:40)
at org.opendaylight.neutron.transcriber.NeutronSecurityRuleInterface.toMd(NeutronSecurityRuleInterface.java:198)
at org.opendaylight.neutron.transcriber.NeutronSecurityRuleInterface.toMd(NeutronSecurityRuleInterface.java:38)
at org.opendaylight.neutron.transcriber.AbstractNeutronInterface.addMd(AbstractNeutronInterface.java:47)
at org.opendaylight.neutron.transcriber.NeutronSecurityRuleInterface.addNeutronSecurityRule(NeutronSecurityRuleInterface.java:137)
at org.opendaylight.neutron.transcriber.NeutronSecurityGroupInterface.addNeutronSecurityGroup(NeutronSecurityGroupInterface.java:107)
at org.opendaylight.neutron.northbound.api.NeutronSecurityGroupsNorthbound.createSecurityGroups(NeutronSecurityGroupsNorthbound.java:248)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496)
at org.eclipse.jetty.servlets.CrossOriginFilter.handle(CrossOriginFilter.java:247)
at org.eclipse.jetty.servlets.CrossOriginFilter.doFilter(CrossOriginFilter.java:210)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1467)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:69)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:240)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:75)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:370)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:745)
</pre>
<hr /><i><small>Powered by Jetty://</small></i><br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
</body>
</html>
|