If gateway allocated on subnet is not in cidr then allocation pools are invalid

Bug #1046192 reported by Gary Kotton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Gary Kotton

Bug Description

gkotton@gkotton-ubuntu12:~/devstack$ quantum subnet-create --gateway 1.1.1.1 xxx 192.168.111.0/24
Created a new subnet:
+------------------+------------------------------------------------+
| Field | Value |
+------------------+------------------------------------------------+
| allocation_pools | {"start": "1.1.1.2", "end": "192.168.111.254"} |
| cidr | 192.168.111.0/24 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 1.1.1.1 |
| host_routes | |
| id | 2f2d067d-2b59-4c60-aaa5-796f27149fef |
| ip_version | 4 |
| name | |
| network_id | 1ad6737c-6c29-420e-88df-35c07986d172 |
| tenant_id | 0a03ba05e0c34fc2ab0862316d88d9ea |
+------------------+------------------------------------------------+

Gary Kotton (garyk)
Changed in quantum:
importance: Undecided → Critical
assignee: nobody → Gary Kotton (garyk)
milestone: none → folsom-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to quantum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/12401

Changed in quantum:
status: New → In Progress
dan wendlandt (danwent)
Changed in quantum:
importance: Critical → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to quantum (master)

Reviewed: https://review.openstack.org/12401
Committed: http://github.com/openstack/quantum/commit/f25b4f17fbd56fb0b78943d0e828fac80a5aa7fe
Submitter: Jenkins
Branch: master

commit f25b4f17fbd56fb0b78943d0e828fac80a5aa7fe
Author: Gary Kotton <email address hidden>
Date: Wed Sep 5 04:19:40 2012 -0400

    Allocation pool creation should check if gateway is in subnet

    Fixes bug 1046192

    If the configured gateway is not in the subnet then it should not be
    used for the allocation pool creation.

    Change-Id: Ifba766a13d860b58d21034db278c6b24d4c126e7

Changed in quantum:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in quantum:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in quantum:
milestone: folsom-rc1 → 2012.2
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.