GUI Share List for Object Level Access not Working

Bug #1706331 reported by Bogdan Ratiu
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
New
Undecided
Suresh Akula
OpenContrail
New
Undecided
Suresh Akula

Bug Description

Hi,

On a setup with 3 nodes (running Centos 7.2):
-Openstack node (Mitaka)
-Contrail config, controller, analytics node (Contrail 3.2)
-compute node
The Openstack was installed first, then Contrail was installed and provisioned using the fab tool.

1. Create new projects named: second and third.
2. In the GUI, create different networks as follows:
One default network, just type a name and hit save.
One global network, under permissions, global share permissions, choose: read, write, refer.
One shared network, under permissions, shared list, chose the different projects and assign read-write-refer rights. Please see attachment: first-step.
3. In the GUI change to see the second project.
4. Expected results:
 - The default network is not be visible because it is not shared with other projects. This is correct
 - The global network is visible because it is shared globally. This is correct. Under the second project, the network can be deleted, but there is no "wheel" icon to modify this network in the second project. I believe that this is an issue. Please see attachment: second-step
 - Biggest issue: the shared network is not visible. Since the network was created and was chosen to be shared with the other projects, it should be visible.
As reference I am using:
http://www.juniper.net/documentation/en_US/contrail3.2/information-products/pathway-pages/contrail-feature-guide-pwp.pdf page 86, figure 12: Edit Object Level Access.

Other information: I have tried the above scenario when having aaa_mode set to no-auth and also when aaa_mode is set to rbac. The behavior is the same

Tags: config
Revision history for this message
Bogdan Ratiu (bratiu) wrote :
Revision history for this message
Bogdan Ratiu (bratiu) wrote :
Revision history for this message
Bogdan Ratiu (bratiu) wrote :

I have provided an example for Networks, but this is a general issue affecting all Objects.

Revision history for this message
Bogdan Ratiu (bratiu) wrote :

Any update on this issue?

Regards

Bogdan Ratiu (bratiu)
affects: opencontrail → juniperopenstack
Naga Kiran (nagakiran)
Changed in juniperopenstack:
assignee: nobody → Siva Bavanasi (kbsiva)
Changed in opencontrail:
assignee: nobody → Siva Bavanasi (kbsiva)
Revision history for this message
Siva Bavanasi (kbsiva) wrote :

fetching virtual-networks from Api Server by using parent_id filter doesn't list shared virtual-networks

Below scenario is verified

1)user1(with _member_ role) is associated to two projects project1 and project2
2)vn_local created in project1 is shared to project2 using object level permissions sharing
3)curl request to fetch project2 virtual-networks doesn't include vn_local

curl -X GET -H "X-Auth-Token:eb7cfc3c60d4468eb7c1a473eb7782cb" -H "Content-Type: application/json; charset=UTF-8" "http://127.0.0.1:8082/virtual-networks?detail=true&parent_id=da694b06-61c5-40aa-8bc2-9aa520b99d33" | python -m json.tool
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 24 100 24 0 0 3139 0 --:--:-- --:--:-- --:--:-- 3428
{
    "virtual-networks": []
}

Changed in juniperopenstack:
assignee: Siva Bavanasi (kbsiva) → Sachin Bansal (sbansal)
Changed in opencontrail:
assignee: Siva Bavanasi (kbsiva) → Sachin Bansal (sbansal)
tags: added: config
tags: removed: ui
Revision history for this message
Lukas Stehlik (stelucz) wrote :

Maybe something related, if user without access to Contrail GUI or API would like to share networks/fip pools via neutron api: https://bugs.launchpad.net/opencontrail/+bug/1712501

Revision history for this message
Sachin Bansal (sbansal) wrote :

You need to request network list without any parent id. If you filter by parent id, it will only return networks with that project as parent.

Changed in juniperopenstack:
assignee: Sachin Bansal (sbansal) → Suresh Akula (surakula)
Changed in opencontrail:
assignee: Sachin Bansal (sbansal) → Suresh Akula (surakula)
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.