← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1081877] Re: Update router gateway successful with existed floatingip association

 

** Changed in: quantum/folsom
       Status: Fix Committed => Fix Released

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

Title:
  Update router gateway successful with existed floatingip association

Status in OpenStack Quantum (virtual network service):
  Fix Released
Status in quantum folsom series:
  Fix Released

Bug description:
  Clear router gateway successful with existed floatingip association.

  1.Create net1 with router:external=True and subnet
  2.Create net2 and subnet
  3.Create router1
  4.Set router1 gateway to net1
  5.Add net2 interface to router1
  6.Create floatingip on net1
  7.Create port on net2
  8.Associate floatingip and port
  9.Clear router1 gateway successful

  Expect status code 409

  --------------------------------------------------------
  soulxu1204@soulxu1204-ThinkPad-T410:/home/soulxu$ quantum net-create net1 --router:external=True
  Created a new network:
  +---------------------------+--------------------------------------+
  | Field                     | Value                                |
  +---------------------------+--------------------------------------+
  | admin_state_up            | True                                 |
  | id                        | 427ec70b-d27f-46e6-a0b0-5bd427fe7f3e |
  | name                      | net1                                 |
  | provider:network_type     | local                                |
  | provider:physical_network |                                      |
  | provider:segmentation_id  |                                      |
  | router:external           | True                                 |
  | shared                    | False                                |
  | status                    | ACTIVE                               |
  | subnets                   |                                      |
  | tenant_id                 | 4ce055fb0c67429c9ec7d668cad6f9bf     |
  +---------------------------+--------------------------------------+
  soulxu1204@soulxu1204-ThinkPad-T410:/home/soulxu$ quantum subnet-create net1 192.168.0.0/24
  Created a new subnet:
  +------------------+--------------------------------------------------+
  | Field            | Value                                            |
  +------------------+--------------------------------------------------+
  | allocation_pools | {"start": "192.168.0.2", "end": "192.168.0.254"} |
  | cidr             | 192.168.0.0/24                                   |
  | dns_nameservers  |                                                  |
  | enable_dhcp      | True                                             |
  | gateway_ip       | 192.168.0.1                                      |
  | host_routes      |                                                  |
  | id               | 414e4049-ac93-4105-a915-01e5d4a7139b             |
  | ip_version       | 4                                                |
  | name             |                                                  |
  | network_id       | 427ec70b-d27f-46e6-a0b0-5bd427fe7f3e             |
  | tenant_id        | 4ce055fb0c67429c9ec7d668cad6f9bf                 |
  +------------------+--------------------------------------------------+

  
  soulxu1204@soulxu1204-ThinkPad-T410:/home/soulxu$ quantum net-create net2
  Created a new network:
  +---------------------------+--------------------------------------+
  | Field                     | Value                                |
  +---------------------------+--------------------------------------+
  | admin_state_up            | True                                 |
  | id                        | 9defc9ba-44b0-4700-ad01-8f3b9a5ffeba |
  | name                      | net2                                 |
  | provider:network_type     | local                                |
  | provider:physical_network |                                      |
  | provider:segmentation_id  |                                      |
  | router:external           | False                                |
  | shared                    | False                                |
  | status                    | ACTIVE                               |
  | subnets                   |                                      |
  | tenant_id                 | 4ce055fb0c67429c9ec7d668cad6f9bf     |
  +---------------------------+--------------------------------------+
  soulxu1204@soulxu1204-ThinkPad-T410:/home/soulxu$ quantum subnet-create net2 10.0.0.0/24
  Created a new subnet:
  +------------------+--------------------------------------------+
  | Field            | Value                                      |
  +------------------+--------------------------------------------+
  | allocation_pools | {"start": "10.0.0.2", "end": "10.0.0.254"} |
  | cidr             | 10.0.0.0/24                                |
  | dns_nameservers  |                                            |
  | enable_dhcp      | True                                       |
  | gateway_ip       | 10.0.0.1                                   |
  | host_routes      |                                            |
  | id               | d288c8ea-47d9-4cc6-bffb-b9f8b7d1f224       |
  | ip_version       | 4                                          |
  | name             |                                            |
  | network_id       | 9defc9ba-44b0-4700-ad01-8f3b9a5ffeba       |
  | tenant_id        | 4ce055fb0c67429c9ec7d668cad6f9bf           |
  +------------------+--------------------------------------------+


  soulxu1204@soulxu1204-ThinkPad-T410:/home/soulxu$ quantum router-create router1
  Created a new router:
  +-----------------------+--------------------------------------+
  | Field                 | Value                                |
  +-----------------------+--------------------------------------+
  | admin_state_up        | True                                 |
  | external_gateway_info |                                      |
  | id                    | cabb6828-a642-4c4e-8709-fcf9322baa1f |
  | name                  | router1                              |
  | status                | ACTIVE                               |
  | tenant_id             | 4ce055fb0c67429c9ec7d668cad6f9bf     |
  +-----------------------+--------------------------------------+

  
  soulxu1204@soulxu1204-ThinkPad-T410:/home/soulxu$ quantum router-interface-add router1 d288c8ea-47d9-4cc6-bffb-b9f8b7d1f224
  Added interface to router router1

  soulxu1204@soulxu1204-ThinkPad-T410:/home/soulxu$ quantum router-gateway-set router1 net1
  Set gateway for router router1

  
  soulxu1204@soulxu1204-ThinkPad-T410:/home/soulxu$ quantum floatingip-create net1
  Created a new floatingip:
  +---------------------+--------------------------------------+
  | Field               | Value                                |
  +---------------------+--------------------------------------+
  | fixed_ip_address    |                                      |
  | floating_ip_address | 192.168.0.4                          |
  | floating_network_id | 427ec70b-d27f-46e6-a0b0-5bd427fe7f3e |
  | id                  | 89ad931c-19da-4b96-9d47-67e8fd5f7f2a |
  | port_id             |                                      |
  | router_id           |                                      |
  | tenant_id           | 4ce055fb0c67429c9ec7d668cad6f9bf     |
  +---------------------+--------------------------------------+

  soulxu1204@soulxu1204-ThinkPad-T410:/home/soulxu$ quantum port-create net2
  Created a new port:
  +----------------+---------------------------------------------------------------------------------+
  | Field          | Value                                                                           |
  +----------------+---------------------------------------------------------------------------------+
  | admin_state_up | True                                                                            |
  | device_id      |                                                                                 |
  | device_owner   |                                                                                 |
  | fixed_ips      | {"subnet_id": "d288c8ea-47d9-4cc6-bffb-b9f8b7d1f224", "ip_address": "10.0.0.3"} |
  | id             | 8a3b7af7-4a49-41a4-bc4e-5a2a8f51dce8                                            |
  | mac_address    | fa:16:3e:10:b1:23                                                               |
  | name           |                                                                                 |
  | network_id     | 9defc9ba-44b0-4700-ad01-8f3b9a5ffeba                                            |
  | status         | ACTIVE                                                                          |
  | tenant_id      | 4ce055fb0c67429c9ec7d668cad6f9bf                                                |
  +----------------+---------------------------------------------------------------------------------+

  soulxu1204@soulxu1204-ThinkPad-T410:/home/soulxu$ quantum floatingip-associate 89ad931c-19da-4b96-9d47-67e8fd5f7f2a 8a3b7af7-4a49-41a4-bc4e-5a2a8f51dce8
  Associated floatingip 89ad931c-19da-4b96-9d47-67e8fd5f7f2a

  soulxu1204@soulxu1204-ThinkPad-T410:/home/soulxu$ quantum router-gateway-clear router1
  Removed gateway from router router1

  soulxu1204@soulxu1204-ThinkPad-T410:/home/soulxu$ quantum floatingip-list
  +--------------------------------------+------------------+---------------------+--------------------------------------+
  | id                                   | fixed_ip_address | floating_ip_address | port_id                              |
  +--------------------------------------+------------------+---------------------+--------------------------------------+
  | 89ad931c-19da-4b96-9d47-67e8fd5f7f2a | 10.0.0.3         | 192.168.0.4         | 8a3b7af7-4a49-41a4-bc4e-5a2a8f51dce8 |
  +--------------------------------------+------------------+---------------------+--------------------------------------+

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