UI:vcenter project not showing in contrail vcenter UI

Bug #1550290 reported by Sandip Dey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.20
Fix Committed
High
Naga Kiran
R2.21.x
Fix Committed
High
Naga Kiran
R2.22.x
Fix Committed
High
Naga Kiran
R3.0
Fix Committed
High
Naga Kiran
Trunk
Fix Committed
High
Naga Kiran

Bug Description

Build:R2.21.x

Shown to Nagakiran

Tags: vmware
Revision history for this message
Sandip Dey (sandipd) wrote :

To update more

We cannot create any vn using contrail vcenter ui since project is not there in UI.

Revision history for this message
Naga Kiran (nagakiran) wrote :

Found the issue is that API server is returning only the "default-project" if we send "X_API_ROLE" role as null.
From UI, We send "X_API_ROLE" as null in case of vcenter as it's not applicable.

API server response if we don't send any headers:
root@nodec4:~# curl http://localhost:8082/projects
{"projects": [{"href": "http://localhost:8082/project/00ee9933-b75c-4bb6-afd1-fa05899ff5cf", "fq_name": ["default-domain", "default-project"], "uuid": "00ee9933-b75c-4bb6-afd1-fa05899ff5cf"}, {"href": "http://localhost:8082/project/e22e663f-f608-4250-9063-e95165e0eac8", "fq_name": ["default-domain", "vCenter"], "uuid": "e22e663f-f608-4250-9063-e95165e0eac8"}]}

API server request issued from UI
root@nodec4:~# curl -H 'X-Auth-Token:null' -H 'X_API_ROLE:null' http://localhost:8082/projects
{"projects": [{"href": "http://localhost:8082/project/00ee9933-b75c-4bb6-afd1-fa05899ff5cf", "fq_name": ["default-domain", "default-project"], "uuid": "00ee9933-b75c-4bb6-afd1-fa05899ff5cf"}]}

In 3.0, for the same curl request, API server responds with all the projects.

root@b4s375:~# curl -H 'X-Auth-Token:null' -H 'X_API_ROLE:null' http://localhost:8082/projects
{"projects": [{"href": "http://localhost:8082/project/6566fd24-7096-42c2-9545-358db86726e6", "fq_name": ["default-domain", "vCenter"], "uuid": "6566fd24-7096-42c2-9545-358db86726e6"}, {"href": "http://localhost:8082/project/13bca581-a562-49b9-a765-39e2bb06b2a8", "fq_name": ["default-domain", "default-project"], "uuid": "13bca581-a562-49b9-a765-39e2bb06b2a8"}]}

Revision history for this message
Raj Reddy (rajreddy) wrote :
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.21.x

Review in progress for https://review.opencontrail.org/17929
Submitter: Naga Kiran (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/17929
Committed: http://github.org/Juniper/contrail-web-core/commit/4094810b3f83faa9f8fb29ae6fe362b760d9dd67
Submitter: Zuul
Branch: R2.21.x

commit 4094810b3f83faa9f8fb29ae6fe362b760d9dd67
Author: Naga Kiran <email address hidden>
Date: Sat Feb 27 01:44:58 2016 +0530

Closes-Bug: #1550290
Don't send X-Auth-Token & X_API_ROLE headers in request to API server if
multitenancy is disabled

Change-Id: I428114d8e83acfa6952ef901751fe2c0c9c9b0d0

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

Review in progress for https://review.opencontrail.org/17948
Submitter: Naga Kiran (<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/17951
Submitter: Naga Kiran (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/17951
Committed: http://github.org/Juniper/contrail-web-core/commit/6450cc6a595683d57aa2b0fbf043e65a6fed57f4
Submitter: Zuul
Branch: master

commit 6450cc6a595683d57aa2b0fbf043e65a6fed57f4
Author: Naga Kiran <email address hidden>
Date: Sat Feb 27 12:41:04 2016 +0530

Closes-Bug: #1550290
Don't send X-Auth-Token & X_API_ROLE headers in request to API server if
multitenancy is disabled

Change-Id: I9bae4cd1e2abee23f994bb3480a4fc82f13b5afa
(cherry picked from commit 70ecb1039bcc8c19cc93ebb51543943e22d67ddf)

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

Reviewed: https://review.opencontrail.org/17948
Committed: http://github.org/Juniper/contrail-web-core/commit/70ecb1039bcc8c19cc93ebb51543943e22d67ddf
Submitter: Zuul
Branch: R3.0

commit 70ecb1039bcc8c19cc93ebb51543943e22d67ddf
Author: Naga Kiran <email address hidden>
Date: Sat Feb 27 12:41:04 2016 +0530

Closes-Bug: #1550290
Don't send X-Auth-Token & X_API_ROLE headers in request to API server if
multitenancy is disabled

Change-Id: I9bae4cd1e2abee23f994bb3480a4fc82f13b5afa

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.22.x

Review in progress for https://review.opencontrail.org/18342
Submitter: Naga Kiran (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/18343
Submitter: Naga Kiran (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/18343
Committed: http://github.org/Juniper/contrail-web-core/commit/4f660be8177ed0669349246671d2c40f0ab8ba13
Submitter: Zuul
Branch: R2.20

commit 4f660be8177ed0669349246671d2c40f0ab8ba13
Author: Naga Kiran <email address hidden>
Date: Sat Feb 27 01:44:58 2016 +0530

Closes-Bug: #1550290
Don't send X-Auth-Token & X_API_ROLE headers in request to API server if
multitenancy is disabled

Change-Id: I428114d8e83acfa6952ef901751fe2c0c9c9b0d0
(cherry picked from commit 4094810b3f83faa9f8fb29ae6fe362b760d9dd67)

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

Reviewed: https://review.opencontrail.org/18342
Committed: http://github.org/Juniper/contrail-web-core/commit/d7b158af06ee64fb77fb16d121cc1fcf10e305ce
Submitter: Zuul
Branch: R2.22.x

commit d7b158af06ee64fb77fb16d121cc1fcf10e305ce
Author: Naga Kiran <email address hidden>
Date: Sat Feb 27 01:44:58 2016 +0530

Closes-Bug: #1550290
Don't send X-Auth-Token & X_API_ROLE headers in request to API server if
multitenancy is disabled

Change-Id: I428114d8e83acfa6952ef901751fe2c0c9c9b0d0
(cherry picked from commit 4094810b3f83faa9f8fb29ae6fe362b760d9dd67)

information type: Proprietary → Public
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.