if allocation-pool range is outside of cidr, internal server error is seen

Bug #1349375 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R1.1
Fix Committed
Medium
Atul Moghe
Trunk
Fix Committed
Medium
Atul Moghe

Bug Description

Build 1.10 2273

Start and end ips are outside of the cidr. Then subnet-create is throwing internal server error

root@nodec22:/usr/lib/python2.7/dist-packages/novaclient# neutron subnet-create vn2 50.1.1.0/24 --allocation-pool start=40.1.1.10,end=40.1.1.20
Request Failed: internal server error while processing your request.
root@nodec22:/usr/lib/python2.7/dist-packages/novaclient#

contrail-api-0.log :
=================

The above is a description of an error in a Python program. Here is
the original traceback:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/vnc_openstack/neutron_plugin_interface.py", line 241, in plugin_create_subnet
    net_info = cfgdb.subnet_create(subnet['resource'])
  File "/usr/lib/python2.7/dist-packages/vnc_openstack/neutron_plugin_db.py", line 2370, in subnet_create
    self._virtual_network_update(net_obj)
  File "/usr/lib/python2.7/dist-packages/vnc_openstack/neutron_plugin_db.py", line 562, in _virtual_network_update
    self._vnc_lib.virtual_network_update(net_obj)
  File "/usr/lib/python2.7/dist-packages/vnc_api/gen/vnc_api_client_gen.py", line 4853, in virtual_network_update
    content = self._request_server(rest.OP_PUT, uri, data = json_body)
  File "/usr/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 350, in _request_server
    raise HttpError(status, content)
HttpError: HTTP Status: 500 Content: subnet(default-domain:admin:vn2:50.1.1.0/24) allocation pool ({u'start': u'40.1.1.10', u'end': u'40.1.1.20'}) is out of cidr

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bottle.py", line 764, in _handle
    return route.call(**args)
  File "/usr/lib/python2.7/dist-packages/bottle.py", line 1575, in wrapper
    rv = callback(*a, **ka)
  File "/usr/lib/python2.7/dist-packages/vnc_openstack/neutron_plugin_interface.py", line 316, in plugin_http_post_subnet
    return self.plugin_create_subnet(context, subnet)
  File "/usr/lib/python2.7/dist-packages/vnc_openstack/neutron_plugin_interface.py", line 245, in plugin_create_subnet
    raise e
HttpError: HTTP Status: 500 Content: subnet(default-domain:admin:vn2:50.1.1.0/24) allocation pool ({u'start': u'40.1.1.10', u'end': u'40.1.1.20'}) is out of cidr
10.204.217.7 - - [2014-07-28 04:19:43] "POST /neutron/subnet HTTP/1.1" 500 156 0.059928

Sachin Bansal (sbansal)
Changed in juniperopenstack:
assignee: Sachin Bansal (bansalsachin) → Atul Moghe (moghea)
tags: added: neutronapi
information type: Proprietary → Public
Changed in juniperopenstack:
status: New → Confirmed
Atul Moghe (moghea)
Changed in juniperopenstack:
status: Confirmed → In Progress
Changed in juniperopenstack:
milestone: r1.10-fcs → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.