UI is getting logged out before the expire time

Bug #1781341 reported by musharani on 2018-07-12
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R5.0
Fix Committed
Critical
Biswajit Mandal
Trunk
Fix Committed
Critical
Biswajit Mandal

Bug Description

In 5.0. WebUI is getting logged out after 40 mins(approximately) while running the sanity. Actually the timeout value is set as “config.session.timeout = 86400 * 1000;” in /etc/contrail/config.global.js. and “expiration=86400” in /etc/keystone/keystone.conf. But still it is getting logged out before the timer what I set.

Hitting this issue in the same time for every run. This happens while running the testcase 2_1_7_attach_network_route_table_to_VN. In this testcase network route table is attached to vn. After attaching Configure->Networking->Networks is clicked. Then clicked again Configure->Networking->Networks->default domain. It is getting logged out while clicking the dropdown to select the project.

Setup is available. nodek12(root/c0ntrail123)

07/12/2018 11:28:34 AM - error: TypeError: Cannot read property 'name' of null
    at getAllDomainAsync (/usr/src/contrail/contrail-web-controller/webroot/config/common/api/projectconfig.api.js:264:37)
    at /usr/lib64/node_modules/async/lib/async.js:249:17
    at /usr/lib64/node_modules/async/lib/async.js:125:13
    at Array.forEach (native)
    at _each (/usr/lib64/node_modules/async/lib/async.js:46:24)
    at async.each (/usr/lib64/node_modules/async/lib/async.js:124:9)
    at _asyncMap (/usr/lib64/node_modules/async/lib/async.js:248:13)
    at Object.map (/usr/lib64/node_modules/async/lib/async.js:219:23)
    at listAllDomains (/usr/src/contrail/contrail-web-controller/webroot/config/common/api/projectconfig.api.js:188:11)
    at Object.processPendingReq (/usr/src/contrail/contrail-web-core/src/serverroot/web/core/longPolling.api.js:141:3)
07/12/2018 11:28:34 AM - error: URL [http://10.204.216.232:8082/domain/?exclude_children=true&exclude_back_refs=true] returned error ["Not found: '/domain/'"]

/usr/src/contrail/contrail-web-controller/webroot/config/common/api/projectconfig.api.js:260
                                 'Domain Sync failed for ' + domainObj.name);
                                                                      ^

Build number:ocata-5.0-129

Review in progress for https://review.opencontrail.org/44612
Submitter: Biswajit Mandal (<email address hidden>)

OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/44613
Submitter: Biswajit Mandal (<email address hidden>)

Reviewed: https://review.opencontrail.org/44612
Committed: http://github.com/Juniper/contrail-web-core/commit/dccf19365ff9f2d010cfb08968214676945fb070
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit dccf19365ff9f2d010cfb08968214676945fb070
Author: Biswajit Mandal <email address hidden>
Date: Fri Jul 13 18:33:36 2018 +0000

Add project also while serializing v3 token to v2 data.

Add whole token data except catalog (as it may be huge data) while computing v3 token. Add project(v3) and tenant(v2.0) key inside token.

Change-Id: I82c22fda9fbaea24587f6f1712d4861fc930ca34
Partial-Bug: #1781341

OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/44613
Committed: http://github.com/Juniper/contrail-web-controller/commit/8392a436003ab6df6f41a3f870bcf9d3403603c4
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit 8392a436003ab6df6f41a3f870bcf9d3403603c4
Author: Biswajit Mandal <email address hidden>
Date: Fri Jul 13 18:38:37 2018 +0000

Check null before accessing name inside domainObj while in all-domain computation.

Change-Id: I5ea3f79db79c265817ae50d3d1cf02d190c0d7c9
Closes-Bug: #1781341

Review in progress for https://review.opencontrail.org/44860
Submitter: Biswajit Mandal (<email address hidden>)

OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/44861
Submitter: Biswajit Mandal (<email address hidden>)

Reviewed: https://review.opencontrail.org/44860
Committed: http://github.com/Juniper/contrail-web-core/commit/430fc44b6618a8c1245566a747a8d0e8f983db81
Submitter: Zuul v3 CI (<email address hidden>)
Branch: R5.0

commit 430fc44b6618a8c1245566a747a8d0e8f983db81
Author: Biswajit Mandal <email address hidden>
Date: Fri Jul 13 18:33:36 2018 +0000

Add project also while serializing v3 token to v2 data.

Add whole token data except catalog (as it may be huge data) while computing v3 token. Add project(v3) and tenant(v2.0) key inside token.

Change-Id: I82c22fda9fbaea24587f6f1712d4861fc930ca34
Partial-Bug: #1781341
(cherry picked from commit dccf19365ff9f2d010cfb08968214676945fb070)

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

commit f9872aee11acf7fabf1b6005b3be1f29d372ff9e
Author: Biswajit Mandal <email address hidden>
Date: Fri Jul 13 18:38:37 2018 +0000

Check null before accessing name inside domainObj while in all-domain computation.

Change-Id: I5ea3f79db79c265817ae50d3d1cf02d190c0d7c9
Closes-Bug: #1781341
(cherry picked from commit 8392a436003ab6df6f41a3f870bcf9d3403603c4)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers