need to give valid error when allocation pool is outside of subnet

Bug #1329822 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Committed
Medium
Prakash Bailkeri

Bug Description

We need to give valid error when allocation pool is outside of subnet

root@nodec22:~# neutron subnet-create --name small_subnet --gateway 13.1.1.254 --allocation-pool start=14.1.1.0,end=14.1.1.10 vn1 13.1.1.0/24
Request Failed: internal server error while processing your request.
root@nodec22:~#

---------
server.log:

2014-06-13 21:19:14.206 ERROR [neutron.api.v2.resource] create failed
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/neutron/api/v2/resource.py", line 84, in resource
    result = method(request=request, **args)
  File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 405, in create
    obj = obj_creator(request.context, **kwargs)
  File "/usr/lib/python2.7/dist-packages/neutron_plugin_contrail/plugins/opencontrail/contrailplugin.py", line 361, in create_subnet
    raise e
HttpError: HTTP Status: 500 Content: subnet(default-domain:project1:vn1:13.1.1.0/24) allocation pool ({u'start': u'14.1.1.0', u'end': u'14.1.1.10'}) is out of cidr

Tags: config
Revision history for this message
Vedamurthy Joshi (vedujoshi) wrote :

Found on Build 1.06-38

Revision history for this message
Sachin Bansal (sbansal) wrote :

Fixed in mainline

Changed in juniperopenstack:
status: New → Fix Committed
Revision history for this message
Ashish Ranjan (aranjan-n) wrote :

No need to backport in 1.06

information type: Proprietary → Public
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.