Re-creation of subnet with different gw/no-gw ends up with old parameter value
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R3.1 |
Fix Committed
|
Undecided
|
Unassigned | |||
R3.1.1.x |
Fix Committed
|
Undecided
|
Unassigned | |||
R3.2 |
Fix Committed
|
Undecided
|
Unassigned | |||
R3.2.3.x |
Fix Committed
|
Undecided
|
Unassigned | |||
R4.0 |
Fix Committed
|
Undecided
|
Unassigned | |||
R4.1 |
Fix Committed
|
Undecided
|
Unassigned | |||
Trunk |
Fix Committed
|
Undecided
|
Unassigned | |||
OpenContrail |
New
|
Undecided
|
Unassigned |
Bug Description
When you create the subnet with gateway and delete it and recreate it with no gateway, in some cases the recreated subnet is created with gateway.
This is the way to replicate the issue:
root@ctl01:~# neutron subnet-create --name net1 net1 192.168.22.0/24
Created a new subnet:
+------
| Field | Value |
+------
| allocation_pools | {"start": "192.168.22.2", "end": "192.168.22.254"} |
| cidr | 192.168.22.0/24 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 192.168.22.1 |
| host_routes | |
| id | 471308b2-
| ip_version | 4 |
| ipv6_address_mode | |
| ipv6_ra_mode | |
| name | net1 |
| network_id | 3b2aeefb-
| tenant_id | cfe5f2124ec046f
+------
root@ctl01:~# neutron subnet-delete net1
Deleted subnet(s): net1
root@ctl01:~# neutron subnet-create --no-gateway --name net1 net1 192.168.22.0/24
Created a new subnet:
+------
| Field | Value |
+------
| allocation_pools | {"start": "192.168.22.2", "end": "192.168.22.254"} |
| cidr | 192.168.22.0/24 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 192.168.22.1 |
| host_routes | |
| id | 848698be-
| ip_version | 4 |
| ipv6_address_mode | |
| ipv6_ra_mode | |
| name | net1 |
| network_id | 3b2aeefb-
| tenant_id | cfe5f2124ec046f
+------
root@ctl01:~# neutron subnet-create --no-gateway --name net2 net1 192.168.23.0/24
Created a new subnet:
+------
| Field | Value |
+------
| allocation_pools | {"start": "192.168.23.1", "end": "192.168.23.254"} |
| cidr | 192.168.23.0/24 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 0.0.0.0 |
| host_routes | |
| id | 46fe1f11-
| ip_version | 4 |
| ipv6_address_mode | |
| ipv6_ra_mode | |
| name | net2 |
| network_id | 3b2aeefb-
| tenant_id | cfe5f2124ec046f
+------
Review in progress for https:/ /review. opencontrail. org/36418
Submitter: Petr Jedin? (<email address hidden>)