← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1132849] Re: Wrong result of listing network with filter router:external=True and pagination

 

** Changed in: quantum
       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/1132849

Title:
  Wrong result of listing network with filter router:external=True and
  pagination

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

Bug description:
  soulxu1204@soulxu1204-ThinkPad-T410:/home/soulxu/work-code/openstack/quantum$ quantum net-list
  +--------------------------------------+------+---------+
  | id                                   | name | subnets |
  +--------------------------------------+------+---------+
  | 1833f0c3-e2c2-4870-946c-e93f7489fdaa | net1 |         |
  | 362fc10a-2d28-43a9-8470-84dff4085630 | net2 |         |
  | cbfee9a5-6a41-40b6-8e25-8a62d6d014d4 | net3 |         |
  +--------------------------------------+------+---------+

  *net1 and net3 was external network

  soulxu1204@soulxu1204-ThinkPad-T410:/home/soulxu/work-code/openstack/quantum$ quantum net-external-list --sort-key name --sort-dir asc
  +--------------------------------------+------+---------+
  | id                                   | name | subnets |
  +--------------------------------------+------+---------+
  | 1833f0c3-e2c2-4870-946c-e93f7489fdaa | net1 |         |
  | cbfee9a5-6a41-40b6-8e25-8a62d6d014d4 | net3 |         |
  +--------------------------------------+------+---------+

  soulxu1204@soulxu1204-ThinkPad-T410:/home/soulxu/work-code/openstack/quantum$ quantum net-external-list --page-size 1 --sort-key name --sort-dir asc
  +--------------------------------------+------+---------+
  | id                                   | name | subnets |
  +--------------------------------------+------+---------+
  | 1833f0c3-e2c2-4870-946c-e93f7489fdaa | net1 |         |
  +--------------------------------------+------+---------+

  The reason was filter router:external after db query.

  We should filter it in db query as core resource.

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