← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1384146] [NEW] Inconsistent enable_snat management

 

Public bug reported:

Neutron reset enable_snat on router-gateway-clear but not on router-
gateway-set which implies inconsistent behavior:


# pub1, pub2 are external networks and router1 is a router

(neutron) router-gateway-set router1 pub1 --disable-snat
Set gateway for router router
(neutron) router-show router1 -c external_gateway_info
+-----------------------+------------------------------------------------------------------------------+
| Field                 | Value                                                                        |
+-----------------------+------------------------------------------------------------------------------+
| external_gateway_info | {"network_id": "1682e4f4-7dc4-4ed0-bd10-e526ab2f6f81", "enable_snat": false} |
+-----------------------+------------------------------------------------------------------------------+
(neutron) router-gateway-clear router
Removed gateway from router router
(neutron) router-gateway-set router pub2 
Set gateway for router router
(neutron) router-show router1 -c external_gateway_info
+-----------------------+------------------------------------------------------------------------------+
| Field                 | Value                                                                        |
+-----------------------+------------------------------------------------------------------------------+
| external_gateway_info | {"network_id": "a32bcb44-165a-4de8-a8db-35f6ff8f2712", "enable_snat": true} |
+-----------------------+------------------------------------------------------------------------------+

==> enable_snat == False lost during router-gateway-clear


(neutron) router-gateway-set router1 pub1 --disable-snat
Set gateway for router router
(neutron) router-show router1 -c external_gateway_info
+-----------------------+------------------------------------------------------------------------------+
| Field                 | Value                                                                        |
+-----------------------+------------------------------------------------------------------------------+
| external_gateway_info | {"network_id": "1682e4f4-7dc4-4ed0-bd10-e526ab2f6f81", "enable_snat": false} |
+-----------------------+------------------------------------------------------------------------------+
(neutron) router-gateway-set router pub2 
Set gateway for router router
(neutron) router-show router1 -c external_gateway_info
+-----------------------+------------------------------------------------------------------------------+
| Field                 | Value                                                                        |
+-----------------------+------------------------------------------------------------------------------+
| external_gateway_info | {"network_id": "a32bcb44-165a-4de8-a8db-35f6ff8f2712", "enable_snat": false} |
+-----------------------+------------------------------------------------------------------------------+

==> enable_snat == False not lost during router-gateway-set

** Affects: neutron
     Importance: Undecided
     Assignee: Cedric Brandily (cbrandily)
         Status: In Progress


** Tags: l3-ipam-dhcp

** Changed in: neutron
       Status: New => In Progress

** Changed in: neutron
     Assignee: (unassigned) => Cedric Brandily (cbrandily)

** Tags added: l3-ipam-dhcp

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1384146

Title:
  Inconsistent enable_snat management

Status in OpenStack Neutron (virtual network service):
  In Progress

Bug description:
  Neutron reset enable_snat on router-gateway-clear but not on router-
  gateway-set which implies inconsistent behavior:

  
  # pub1, pub2 are external networks and router1 is a router

  (neutron) router-gateway-set router1 pub1 --disable-snat
  Set gateway for router router
  (neutron) router-show router1 -c external_gateway_info
  +-----------------------+------------------------------------------------------------------------------+
  | Field                 | Value                                                                        |
  +-----------------------+------------------------------------------------------------------------------+
  | external_gateway_info | {"network_id": "1682e4f4-7dc4-4ed0-bd10-e526ab2f6f81", "enable_snat": false} |
  +-----------------------+------------------------------------------------------------------------------+
  (neutron) router-gateway-clear router
  Removed gateway from router router
  (neutron) router-gateway-set router pub2 
  Set gateway for router router
  (neutron) router-show router1 -c external_gateway_info
  +-----------------------+------------------------------------------------------------------------------+
  | Field                 | Value                                                                        |
  +-----------------------+------------------------------------------------------------------------------+
  | external_gateway_info | {"network_id": "a32bcb44-165a-4de8-a8db-35f6ff8f2712", "enable_snat": true} |
  +-----------------------+------------------------------------------------------------------------------+

  ==> enable_snat == False lost during router-gateway-clear


  (neutron) router-gateway-set router1 pub1 --disable-snat
  Set gateway for router router
  (neutron) router-show router1 -c external_gateway_info
  +-----------------------+------------------------------------------------------------------------------+
  | Field                 | Value                                                                        |
  +-----------------------+------------------------------------------------------------------------------+
  | external_gateway_info | {"network_id": "1682e4f4-7dc4-4ed0-bd10-e526ab2f6f81", "enable_snat": false} |
  +-----------------------+------------------------------------------------------------------------------+
  (neutron) router-gateway-set router pub2 
  Set gateway for router router
  (neutron) router-show router1 -c external_gateway_info
  +-----------------------+------------------------------------------------------------------------------+
  | Field                 | Value                                                                        |
  +-----------------------+------------------------------------------------------------------------------+
  | external_gateway_info | {"network_id": "a32bcb44-165a-4de8-a8db-35f6ff8f2712", "enable_snat": false} |
  +-----------------------+------------------------------------------------------------------------------+

  ==> enable_snat == False not lost during router-gateway-set

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1384146/+subscriptions


Follow ups

References