Bug 889876
Summary: | quantum CIDR is not checked | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Ofer Blaut <oblaut> |
Component: | openstack-quantum | Assignee: | Gary Kotton <gkotton> |
Status: | CLOSED ERRATA | QA Contact: | Ofer Blaut <oblaut> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 2.0 (Folsom) | CC: | gkotton, ykaul |
Target Milestone: | snapshot3 | Keywords: | Rebase, Triaged |
Target Release: | 2.1 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | openstack-quantum-2012.2.3-2.el6ost | Doc Type: | Rebase: Bug Fixes and Enhancements |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-03-05 18:30:35 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Ofer Blaut
2012-12-23 19:06:03 UTC
A fix for upstream has been proposed - https://review.openstack.org/#/c/19048/ It is still not enforced [root@puma34 ~(keystone_admin)]$ quantum subnet-create net1 55.53.1.1/24 --gateway_ip 55.53.2.1 --tenant-id 85cb49f7ab1b4f4d89c33c07b74a967d Created a new subnet: +------------------+----------------------------------------------+ | Field | Value | +------------------+----------------------------------------------+ | allocation_pools | {"start": "55.53.1.1", "end": "55.53.1.254"} | | cidr | 55.53.1.1/24 | | dns_nameservers | | | enable_dhcp | True | | gateway_ip | 55.53.2.1 | | host_routes | | | id | e0043c88-678e-48a0-a0af-27fb0fcc0e48 | | ip_version | 4 | | name | | | network_id | 3991fec8-d178-47d3-8f54-72def3d889f8 | | tenant_id | 85cb49f7ab1b4f4d89c33c07b74a967d | +------------------+----------------------------------------------+ [root@puma34 ~(keystone_admin)]$ quantum subnet-create net1 55.54.1.1/24 --gateway_ip 60.53.2.1 --tenant-id 85cb49f7ab1b4f4d89c33c07b74a967d Created a new subnet: +------------------+----------------------------------------------+ | Field | Value | +------------------+----------------------------------------------+ | allocation_pools | {"start": "55.54.1.1", "end": "55.54.1.254"} | | cidr | 55.54.1.1/24 | | dns_nameservers | | | enable_dhcp | True | | gateway_ip | 60.53.2.1 | | host_routes | | | id | 5027c803-60b9-482f-8fd6-dbea4967b848 | | ip_version | 4 | | name | | | network_id | 3991fec8-d178-47d3-8f54-72def3d889f8 | | tenant_id | 85cb49f7ab1b4f4d89c33c07b74a967d | +------------------+----------------------------------------------+ [root@puma34 ~(keystone_admin)]$ rpm -qa | grep quantum python-quantum-2012.2.3-3.el6ost.noarch openstack-quantum-openvswitch-2012.2.3-3.el6ost.noarch python-quantumclient-2.1.10-3.el6ost.noarch openstack-quantum-2012.2.3-3.el6ost.noarch In the configuration file file quantum.conf there ia a new configuration vaiable - force_gateway_on_subnet. This is by default False. If you set this as True then the functionality that you require will be enforced. We can discuss whether or not True should be the default. At the moment is is False to ensure that we have backward compatibility. # Ensure that configured gateway is on subnet # force_gateway_on_subnet = False Thanks Gary please not that this should be in the DEFAULT section quantum subnet-create net1 78.54.1.0/24 --gateway_ip 78.54.1.15 --tenant-id 85cb49f7ab1b4f4d89c33c07b74a967d Created a new subnet: +------------------+-----------------------------------------------+ | Field | Value | +------------------+-----------------------------------------------+ | allocation_pools | {"start": "78.54.1.1", "end": "78.54.1.14"} | | | {"start": "78.54.1.16", "end": "78.54.1.254"} | | cidr | 78.54.1.0/24 | | dns_nameservers | | | enable_dhcp | True | | gateway_ip | 78.54.1.15 | | host_routes | | | id | 1ca4e943-b99a-4ab0-8b06-39756c34908f | | ip_version | 4 | | name | | | network_id | 3991fec8-d178-47d3-8f54-72def3d889f8 | | tenant_id | 85cb49f7ab1b4f4d89c33c07b74a967d | +------------------+-----------------------------------------------+ [root@puma34 ~(keystone_admin)]$ quantum subnet-create net1 78.55.1.0/24 --gateway_ip 78.57.1.15 --tenant-id 85cb49f7ab1b4f4d89c33c07b74a967d Invalid input for operation: Gateway is not valid on subnet. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-0593.html |