Cannot list correctly floating IP pools

Bug #1300908 reported by Édouard Thuleau
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenContrail
Invalid
Undecided
Praneet Bachheti

Bug Description

With the last release of Neutron Contrail fork and commit 4ab26dbd698401c07d94b2f75ed177db84a23a78 (branch contrail/havana), I've got some trouble to list floating IP pools.

I run OpenStack with Contrail with devstack (dsetia repo).
2 tenants are created : 'admin' and 'demo' with 2 user 'admin' and 'demo'.
Admin user is admin on tenant 'admin' and 'demo'.
Demo is only member of tenant 'demo'

I set a software gateway (vgw) to create an external network and configure a floating IP pool on that network:
ubuntu@controller:~/devstack$ python /opt/stack/contrail/controller/src/config/utils/create_floating_pool.py --public_vn_name default-domain:admin:public --floating_ip_pool_name floatingip_pool
ubuntu@controller:~/devstack$ python /opt/stack/contrail/controller/src/config/utils/use_floating_pool.py --project_name default-domain:admin --floating_ip_pool_name default-domain:admin:public:floatingip_pool
ubuntu@controller:~/devstack$ python /opt/stack/contrail/controller/src/config/utils/use_floating_pool.py --project_name default-domain:demo --floating_ip_pool_name default-domain:admin:public:floatingip_pool

I've got two problems:

1/ If the user 'admin' tries to list networks with external flags (ie. floating IP pools) on tenant 'demo' or 'admin', he gets a list of two identical networks (ie. public):
ubuntu@controller:~/devstack$ . openrc admin admin
ubuntu@controller:~/devstack$ neutron net-list --router:external=True
+--------------------------------------+--------+----------------------------------------------------+
| id | name | subnets |
+--------------------------------------+--------+----------------------------------------------------+
| aca73a83-43a5-4dac-a090-b9982105429c | public | 80c6e036-e6d7-4bf4-a236-20cce126e55e 172.16.1.0/24 |
| aca73a83-43a5-4dac-a090-b9982105429c | public | 80c6e036-e6d7-4bf4-a236-20cce126e55e 172.16.1.0/24 |
+--------------------------------------+--------+----------------------------------------------------+
ubuntu@controller:~/devstack$ . openrc admin demo
ubuntu@controller:~/devstack$ neutron net-list --router:external=True
+--------------------------------------+--------+----------------------------------------------------+
| id | name | subnets |
+--------------------------------------+--------+----------------------------------------------------+
| aca73a83-43a5-4dac-a090-b9982105429c | public | 80c6e036-e6d7-4bf4-a236-20cce126e55e 172.16.1.0/24 |
| aca73a83-43a5-4dac-a090-b9982105429c | public | 80c6e036-e6d7-4bf4-a236-20cce126e55e 172.16.1.0/24 |
+--------------------------------------+--------+----------------------------------------------------+
ubuntu@controller:~/devstack$

2/ If a user without admin rights tries to list networks with external flags (ie. floating IP pools), he gets an empty list:
ubuntu@controller:~/devstack$ neutron net-list --router:external=True

ubuntu@controller:~/devstack$

Pedro Marques (5-roque)
Changed in opencontrail:
assignee: nobody → Praneet Bachheti (praneetb)
tags: added: config neutronapi
Revision history for this message
Édouard Thuleau (ethuleau) wrote :

Not more reproducible

Changed in opencontrail:
status: New → Invalid
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.