Bug 1352457 - unable to clear gateway of existing subnets
Summary: unable to clear gateway of existing subnets
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-neutronclient
Version: 5.0 (RHEL 7)
Hardware: All
OS: Linux
low
medium
Target Milestone: async
: 5.0 (RHEL 7)
Assignee: Hynek Mlnarik
QA Contact: Toni Freger
URL:
Whiteboard:
Depends On:
Blocks: 1359650
TreeView+ depends on / blocked
 
Reported: 2016-07-04 08:21 UTC by Pratik Pravin Bandarkar
Modified: 2020-03-11 15:09 UTC (History)
8 users (show)

Fixed In Version: python-neutronclient-2.3.4-4.el7ost
Doc Type: Bug Fix
Doc Text:
Prior to this update, certain options were unavailable in the neutron client, although they were available in neutron server `PUT` operations. Consequently, it was not possible to clear the defined gateway by using the `--no-gateway` option with the `subnet-update` neutron client command. This update adds the ability to update the attributes which are allowed in a `PUT` operation. As a result, it is possible to clear the defined gateway with `neutron subnet-update --no-gateway UUID`.
Clone Of:
: 1359650 (view as bug list)
Environment:
Last Closed: 2016-10-05 19:17:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1324189 0 None None None 2016-07-22 15:35:56 UTC
OpenStack gerrit 96199 0 None None None 2016-07-22 15:35:11 UTC
Red Hat Product Errata RHBA-2016:2020 0 normal SHIPPED_LIVE openstack-neutron bug fix advisory 2016-10-05 23:12:29 UTC

Description Pratik Pravin Bandarkar 2016-07-04 08:21:05 UTC
Description of problem:
We can create subnet without specifying gateway.
[root@rhos8 ~(keystone_admin)]# neutron subnet-create internal --no-gateway 10.10.10.0/24
Created a new subnet:
+-------------------+------------------------------------------------+
| Field             | Value                                          |
+-------------------+------------------------------------------------+
| allocation_pools  | {"start": "10.10.10.1", "end": "10.10.10.254"} |
| cidr              | 10.10.10.0/24                                  |
| dns_nameservers   |                                                |
| enable_dhcp       | True                                           |
| gateway_ip        |                                                | <=======
| host_routes       |                                                |
| id                | 1dc144d1-b9a8-4259-bd01-56799eb0badf           |
| ip_version        | 4                                              |
| ipv6_address_mode |                                                |
| ipv6_ra_mode      |                                                |
| name              |                                                |
| network_id        | 2288ad3f-963a-4eec-8680-c6c2e93f0910           |
| subnetpool_id     |                                                |
| tenant_id         | ea39022238084e03a02441451dbb0466               |
+-------------------+------------------------------------------------+



But, for existing subnets, we don't have --no-gateway equivalent option to set the gateway to null.

[root@rhos8 ~(keystone_admin)]# neutron subnet-show -F gateway_ip fd284aef-e6da-4bb3-b4df-d78bcabadc5c
+------------+-------------+
| Field      | Value       |
+------------+-------------+
| gateway_ip | 192.168.1.1 | <== we cant clear this field of existing network.
+------------+-------------+

Version-Release number of selected component (if applicable):
RHOS5,6,7,8

How reproducible:
100%

Steps to Reproduce:
1.create subnet with specifying gateway.
2.try to clear the gateway
3.

Actual results:
unable to clear gateway of existing subnets

Expected results:
There should be someway to clear gateway of existing subnets.

Additional info:

Comment 1 Assaf Muller 2016-07-22 14:22:16 UTC
This is on master:

neutron subnet-show tmp -F gateway_ip --format=value
10.0.0.1

neutron subnet-update --no-gateway tmp
Updated subnet: tmp

neutron subnet-show tmp -F gateway_ip --format=value
<blank>

Can you please check this on OSP 8?

Comment 5 Assaf Muller 2016-07-22 15:35:56 UTC
The issue is with the client, not the server. I found the relevant patch. It seems to be from the client we shipped in Kilo+ but not in Icehouse.

Comment 10 Toni Freger 2016-09-26 12:42:43 UTC
Tested on OSP5 python-neutronclient-2.3.4-4.el7ost.noarch
The command <neutron subnet-update <subnet-id> --no-gateway> worked for me  perfectly

Comment 12 errata-xmlrpc 2016-10-05 19:17:04 UTC
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.

https://rhn.redhat.com/errata/RHBA-2016-2020.html


Note You need to log in before you can comment on or make changes to this bug.