← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1574462] Re: No prompt message to the user when router-gateway-clear and routes existed

 

The message "the nexthop is not connected with router" might be
misleading, but what this means is that the 'nexthop' must be on the
same (subnet) CIDR and for that you don't need the router's external
gateway to reach it.

** Changed in: neutron
       Status: Incomplete => Invalid

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

Title:
  No prompt message to the user when router-gateway-clear and routes
  existed

Status in neutron:
  Invalid

Bug description:
  When neutron router-gateway-clear ,routes(nexthop and gw_port ip are
  in the same cidr) are not be deleted,and no any error reports to the
  user that the gw_port is required by routes.

  See the following procedure to reproduce this issue:

  [root@opencos2 ~(keystone_admin)]# neutron router-gateway-set r1 ext-net1
  Set gateway for router r1
  [root@opencos2 ~(keystone_admin)]# neutron router-port-list r1
  +--------------------------------------+------+-------------------+----------------------------------------------------------------------------------+
  | id                                   | name | mac_address       | fixed_ips                                                                        |
  +--------------------------------------+------+-------------------+----------------------------------------------------------------------------------+
  | af7bf274-92cb-46b8-a0fc-aaf8c0da40d6 |      | fa:16:3e:01:1f:3a | {"subnet_id": "15c110ec-62c5-44aa-9f80-0b455ced331c", "ip_address": "12.0.0.81"} |
  +--------------------------------------+------+-------------------+----------------------------------------------------------------------------------+
  [root@opencos2 ~(keystone_admin)]# 
  [root@opencos2 ~(keystone_admin)]# neutron router-update r1 --routes type=dict list=true destination=188.163.0.0/24,nexthop=12.0.0.5
  Updated router: r1
  [root@opencos2 ~(keystone_admin)]# 
  [root@opencos2 ~(keystone_admin)]# neutron router-gateway-clear r1
  Removed gateway from router r1
  [root@opencos2 ~(keystone_admin)]# 
  [root@opencos2 ~(keystone_admin)]# 
  [root@opencos2 ~(keystone_admin)]# neutron router-show r1
  +-----------------------+----------------------------------------------------------+
  | Field                 | Value                                                    |
  +-----------------------+----------------------------------------------------------+
  | admin_state_up        | True                                                     |
  | distributed           | False                                                    |
  | external_gateway_info |                                                          |
  | ha                    | False                                                    |
  | id                    | ba5bcb86-8c5a-4a3a-be48-5bf09288154b                     |
  | name                  | r1                                                       |
  | routes                | {"destination": "188.163.0.0/24", "nexthop": "12.0.0.5"} |
  | status                | ACTIVE                                                   |
  | tenant_id             | be58eaec789d44f296a65f96b944a9f5                         |
  +-----------------------+----------------------------------------------------------+
  [root@opencos2 ~(keystone_admin)]#

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


References