New ui is redirected to command-deployer ui after selecting the new project

Bug #1787949 reported by musharani
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R5.0
In Progress
High
Ignatious Johnson Christopher
Trunk
In Progress
High
Ignatious Johnson Christopher

Bug Description

Build - 214

Steps to repro:

1. Create a new project (as test) under IAM->Projects.
2. Click the project selection icon button to switch the project.

While clicking that project the page is redirected to contrail-command ui which will be used for provisioning.

It is not working in the same browser after that. Example if we tried this in chrome browser means it will show the contrail-command ui (provision page). After clearing the cache it is working fine.

It will work if you tried with another browser. The same issue is seen if you tried the same steps in that another browser.

setup details:
nodec59 (admin/contrail123)

Revision history for this message
musharani (musharani) wrote :
musharani (musharani)
Changed in juniperopenstack:
milestone: none → r5.1.0
Revision history for this message
Radosław Romaszewski (radoslaw.romaszewski) wrote :

Setup page is fired when for instance there are no clusters. Adding project shouldn't break anything. Something happened on the backend that caused provisioning page.

Revision history for this message
Sarin Kizhakkepurayil (sarink) wrote :

------------------
From: Sarin Kizhakkepurayil <email address hidden>
Date: Friday, September 7, 2018 at 1:25 PM
To: Usha Rani Mani <email address hidden>, Radosław Romaszewski <email address hidden>, Ignatious Johnson <email address hidden>
Cc: Sudheendra Rao <email address hidden>, Jeba Paulaiyan <email address hidden>, Nachi Ueno <email address hidden>, EXT-contrail-ui <email address hidden>
Subject: Re: On project switch showing up setup page bug

+Jeba

Moving this to Ignatious. With empty cluster list, we display setup wizard. Even if UI choose not to show based on role, we still need cluster UUID for proxy requests to work.

Thanks.

From: Sarin Kizhakkepurayil <email address hidden>
Date: Thursday, September 6, 2018 at 9:34 PM
To: Usha Rani Mani <email address hidden>, Radosław Romaszewski <email address hidden>, Ignatious Johnson <email address hidden>
Cc: Sudheendra Rao <email address hidden>, Nachi Ueno <email address hidden>, EXT-contrail-ui <email address hidden>
Subject: On project switch showing up setup page bug

Hi Usha,

Regarding https://bugs.launchpad.net/juniperopenstack/+bug/1787949 when you create new project are you adding admin user to that project as member role?
Problem is once you switch, second time user tries to login, we get the scoped token with that as the selected project. With this as token we proceed with resource requests. Looks like GET for contrail-cluster with the token returns empty which is why we display setup wizard.

Ignatious, Nachi,

User with member role should be able to list the resources under the tenant correct? Above bug seem to stem from the fact that contrail-cluster returns empty with a request using a scoped token of tenant with member role. Is this expected behavior?

Thanks,
Sarin

Changed in juniperopenstack:
assignee: Sarin Kizhakkepurayil (sarink) → Ignatious Johnson Christopher (ijohnson-x)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R5.0

Review in progress for https://review.opencontrail.org/46955
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/46964
Submitter: Ignatious Johnson Christopher (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/46955
Committed: http://github.com/Juniper/contrail/commit/f9aac3796579e16413462397b588c9b578910246
Submitter: Zuul v3 CI (<email address hidden>)
Branch: R5.0

commit f9aac3796579e16413462397b588c9b578910246
Author: Ignatious Johnson Christopher <email address hidden>
Date: Fri Oct 12 16:43:38 2018 +0000

User with member role in project should also

be able to access contrial_cluster and its
endpoints resources. frontend depednds on this
to decide to display setup wizard.

Marked as partial fix, as this fix is temporary.
Permanant fix is to implment global access with
global share table.

Change-Id: I2fe5db92dd9f8f1b126c0010e9510f56ae7417dd
Partial-Bug: 1787949

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/46964
Committed: http://github.com/Juniper/contrail/commit/7e0149e799792638fc0322289c51bac16ef26d45
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit 7e0149e799792638fc0322289c51bac16ef26d45
Author: Ignatious Johnson Christopher <email address hidden>
Date: Fri Oct 12 19:07:35 2018 +0000

User with member role in project should also

be able to access contrial_cluster and its
endpoints resources. frontend depednds on this
to decide to display setup wizard.

Marked as partial fix, as this fix is temporary.
Permanant fix is to implment global access with
global share table.

Change-Id: I2fe5db92dd9f8f1b126c0010e9510f56ae7417dd
Partial-Bug: 1787949

Jeba Paulaiyan (jebap)
tags: removed: beta-blocker
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.