yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #47323
[Bug 1531401] Re: internal server error returned when create a subnet via subnetpool for which prefixlen 32 is specified
Reviewed: https://review.openstack.org/264086
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=8da632a22d140dfdacc52b658471a7432f7d35a1
Submitter: Jenkins
Branch: master
commit 8da632a22d140dfdacc52b658471a7432f7d35a1
Author: Yalei Wang <yalei.wang@xxxxxxxxx>
Date: Wed Jan 6 17:07:31 2016 +0800
Change the exception type from ValueError to IpamValueInvalid
The current ValueError in _validate_with_subnet will return an unfriendly
"Internal Server Error" to user who wrong configured the subnet and pool. This
patch introduces a new exception IpamValueInvalid and it will be mapped to an
meaningful webob exception.
Closes-Bug: #1531401
Change-Id: Ib50a4b3cd1881a0c364d354728fc43040c3ed520
** Changed in: neutron
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1531401
Title:
internal server error returned when create a subnet via subnetpool for
which prefixlen 32 is specified
Status in neutron:
Fix Released
Bug description:
[Summary]
internal server error returned when create a subnet via subnetpool
for which prefixlen 32 is specified
[Topo]
devstack all-in-one node
[Description and expect result]
no error returned when create a subnet via subnetpool for
which prefixlen 32 is specified
[Reproduceable or not]
reproduceable
[Recreate Steps]
1) create a subnetpool:
root@45-59:/opt/stack/devstack# neutron subnetpool-show pool1
+-------------------+--------------------------------------+
| Field | Value |
+-------------------+--------------------------------------+
| address_scope_id | |
| default_prefixlen | 27 |
| default_quota | |
| id | bfc49547-7883-47d5-af43-1d7825ef6fbf |
| ip_version | 4 |
| is_default | False |
| max_prefixlen | 32 |
| min_prefixlen | 8 |
| name | pool1 |
| prefixes | 100.0.0.0/24 |
| shared | False |
| tenant_id | 72a70635fa0c42a2bcba67edd760d516 |
+-------------------+--------------------------------------+
2) create a subnet via subnetpool while prefixlen 32 is specified:
root@45-59:/opt/stack/devstack# neutron subnet-create --subnetpool pool1
--prefixlen 32 net2 --name sub10
Request Failed: internal server error while processing your request. >>>ISSUE
root@45-59:/opt/stack/devstack#
root@45-59:/opt/stack/devstack#
[Configration]
reproduceable bug, no need
[logs]
reproduceable bug, no need
[Root cause anlyze or debug inf]
reproduceable bug
[Attachment]
None
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1531401/+subscriptions
References