← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1899502] [NEW] router_centralized_snat ports do not have project_id

 

Public bug reported:

When adding a subnet to a distributed router, two interfaces are created:
- one for gateway (network:router_interface_distributed)
- one for snat / instance communication (network:router_centralized_snat)

The gw one is having a project_id:

$ openstack port show 4348275a-64bd-439f-be5c-9b3cf1a9160d
...
| project_id              | 0819ce415874459dbd0d312cc15badee
...

While the snat one does not:

$ openstack port show 3258ebd9-2be4-4cf9-a110-c619906708ec
...
project_id              |             
...

Note that, both of them are visible by client:
$ openstack port list -c id -c device_owner
+--------------------------------------+--------------------------------------+----------------------------------+
| ID                                   | device_owner                         | project_id                       |
+--------------------------------------+--------------------------------------+----------------------------------+
| 2f972668-e47c-41c1-90a8-17592f69ff3f | compute:nova                         | 0819ce415874459dbd0d312cc15badee |
| 3258ebd9-2be4-4cf9-a110-c619906708ec | network:router_centralized_snat      |                                  |
| 4348275a-64bd-439f-be5c-9b3cf1a9160d | network:router_interface_distributed | 0819ce415874459dbd0d312cc15badee |
| 5ccb4325-b687-4d8c-82d3-ebe5e9f163d0 | network:dhcp                         | 0819ce415874459dbd0d312cc15badee |
| 93ae1897-7af2-49f3-bfb0-af6050e75ea4 | network:floatingip                   | 0819ce415874459dbd0d312cc15badee |
+--------------------------------------+--------------------------------------+----------------------------------+


Code in charge of creating the GW port:
https://github.com/openstack/neutron/blob/master/neutron/db/l3_db.py#L761-L799

Code in charge of creating the SNAT port:
https://github.com/openstack/neutron/blob/master/neutron/db/l3_dvr_db.py#L264-L278

** Affects: neutron
     Importance: Undecided
     Assignee: Arnaud Morin (arnaud-morin)
         Status: New

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

Title:
  router_centralized_snat ports do not have project_id

Status in neutron:
  New

Bug description:
  When adding a subnet to a distributed router, two interfaces are created:
  - one for gateway (network:router_interface_distributed)
  - one for snat / instance communication (network:router_centralized_snat)

  The gw one is having a project_id:

  $ openstack port show 4348275a-64bd-439f-be5c-9b3cf1a9160d
  ...
  | project_id              | 0819ce415874459dbd0d312cc15badee
  ...

  While the snat one does not:

  $ openstack port show 3258ebd9-2be4-4cf9-a110-c619906708ec
  ...
  project_id              |             
  ...

  Note that, both of them are visible by client:
  $ openstack port list -c id -c device_owner
  +--------------------------------------+--------------------------------------+----------------------------------+
  | ID                                   | device_owner                         | project_id                       |
  +--------------------------------------+--------------------------------------+----------------------------------+
  | 2f972668-e47c-41c1-90a8-17592f69ff3f | compute:nova                         | 0819ce415874459dbd0d312cc15badee |
  | 3258ebd9-2be4-4cf9-a110-c619906708ec | network:router_centralized_snat      |                                  |
  | 4348275a-64bd-439f-be5c-9b3cf1a9160d | network:router_interface_distributed | 0819ce415874459dbd0d312cc15badee |
  | 5ccb4325-b687-4d8c-82d3-ebe5e9f163d0 | network:dhcp                         | 0819ce415874459dbd0d312cc15badee |
  | 93ae1897-7af2-49f3-bfb0-af6050e75ea4 | network:floatingip                   | 0819ce415874459dbd0d312cc15badee |
  +--------------------------------------+--------------------------------------+----------------------------------+


  Code in charge of creating the GW port:
  https://github.com/openstack/neutron/blob/master/neutron/db/l3_db.py#L761-L799

  Code in charge of creating the SNAT port:
  https://github.com/openstack/neutron/blob/master/neutron/db/l3_dvr_db.py#L264-L278

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