gateway_ip change event in DNAT

Bug #1563835 reported by Yuli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DragonFlow
Fix Released
High
Unassigned

Bug Description

The DNAT patch needs to handle subnet update call when gateway_ip is changed:

Here is a command to change gateway_ip

neutron subnet-update public-subnet --gateway_ip 10.200.100.1

The following rules are not changed:

 cookie=0x0, duration=6411.445s, table=15, n_packets=0, n_bytes=0, priority=100,arp,arp_spa=10.100.0.1,arp_tpa=10.100.201.200,arp_op=2 actions=CONTROLLER:65535
 cookie=0x0, duration=6411.445s, table=15, n_packets=0, n_bytes=0, priority=100,arp,arp_spa=10.100.0.1,arp_tpa=10.100.0.1,arp_op=1 actions=CONTROLLER:65535

Revision history for this message
Yuli (stremovsky) wrote :

df-db dump | grep 10.100.0.1
Key = 40348c8c-aae3-4831-a292-80472cfa5439 , Value = {"router_id": "e6c8cdd4-1bdc-4947-ae51-e9f81df26a45", "status": "ACTIVE", "name": "40348c8c-aae3-4831-a292-80472cfa5439", "floating_port_id": "871352b4-d1da-48b9-92b5-d141c062e877", "floating_mac_address": "fa:16:3e:42:4a:8e", "floating_network_id": "cb3f53f3-2694-4924-8b31-a7735906610c", "topic": "85104976665e47cfaefe8ad50e7de019", "fixed_ip_address": "10.0.0.3", "floating_ip_address": "10.100.201.200", "external_cidr": "10.100.0.0/16", "port_id": "91693805-d02d-4e0d-8091-1f4918cab08e", "external_gateway_ip": "10.100.0.1"}

Changed in dragonflow:
importance: Undecided → High
Revision history for this message
Yuli (stremovsky) wrote :

------------------------------------------------------------
Table = floatingip
------------------------------------------------------------
Key = 40348c8c-aae3-4831-a292-80472cfa5439 , Value = {"router_id": "e6c8cdd4-1bdc-4947-ae51-e9f81df26a45", "status": "ACTIVE", "name": "40348c8c-aae3-4831-a292-80472cfa5439", "floating_port_id": "871352b4-d1da-48b9-92b5-d141c062e877", "floating_mac_address": "fa:16:3e:42:4a:8e", "floating_network_id": "cb3f53f3-2694-4924-8b31-a7735906610c", "topic": "85104976665e47cfaefe8ad50e7de019", "fixed_ip_address": "10.0.0.3", "floating_ip_address": "10.100.201.200", "external_cidr": "10.100.0.0/16", "port_id": "91693805-d02d-4e0d-8091-1f4918cab08e", "external_gateway_ip": "10.100.0.1"}

Revision history for this message
Yuli (stremovsky) wrote :

neutron floatingip-list

+--------------------------------------+------------------+---------------------+--------------------------------------+
| id | fixed_ip_address | floating_ip_address | port_id |
+--------------------------------------+------------------+---------------------+--------------------------------------+
| 40348c8c-aae3-4831-a292-80472cfa5439 | 10.0.0.3 | 10.100.201.200 | 91693805-d02d-4e0d-8091-1f4918cab08e |
+--------------------------------------+------------------+---------------------+--------------------------------------+

neutron floatingip-show 40348c8c-aae3-4831-a292-80472cfa5439
+---------------------+--------------------------------------+
| Field | Value |
+---------------------+--------------------------------------+
| description | |
| fixed_ip_address | 10.0.0.3 |
| floating_ip_address | 10.100.201.200 |
| floating_network_id | cb3f53f3-2694-4924-8b31-a7735906610c |
| id | 40348c8c-aae3-4831-a292-80472cfa5439 |
| port_id | 91693805-d02d-4e0d-8091-1f4918cab08e |
| router_id | e6c8cdd4-1bdc-4947-ae51-e9f81df26a45 |
| status | ACTIVE |
| tenant_id | 85104976665e47cfaefe8ad50e7de019 |
+---------------------+--------------------------------------+

Revision history for this message
Yuli (stremovsky) wrote :

    @lock_db.wrap_db_lock()
    def create_floatingip(self, context, floatingip):
............
        self.nb_api.create_floatingip(
.........
                external_gateway_ip=floatingip_subnet['gateway_ip'],

Revision history for this message
Yuli (stremovsky) wrote :

This bug was fixed

Changed in dragonflow:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.