[3.2.1.0-20] UI : WebUI page is broken with analytics failures (TableSchema' object has no attribute '__dict__)

Bug #1659180 reported by Pavana
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.2
Fix Committed
Critical
Nikhil Bansal
Trunk
Fix Committed
Critical
Nikhil Bansal

Bug Description

Seen on [3.2.1.0-20] both on ubuntu-14-04 and centos71, on all openstack versions.

On the login page, the icons don't load fully and after logging in, the UI page doesn't load fully and no tabs/buttons work.

These errors are seen on the console -
POST https://nodek12:8143/api/admin/reports/query 500 (Internal Server Error)
send @ jquery.min.js?built_at=1485261247:4
ajax @ jquery.min.js?built_at=1485261247:4
Contrail.ajaxHandler @ core.bundle.js?built_at=1485261247:24987
initVLRequests @ core.bundle.js?built_at=1485261247:23526
pSuccessHandler @ core.bundle.js?built_at=1485261247:23422
(anonymous) @ core.bundle.js?built_at=1485261247:24988
i @ jquery.min.js?built_at=1485261247:2
fireWith @ jquery.min.js?built_at=1485261247:2
z @ jquery.min.js?built_at=1485261247:4
(anonymous) @ jquery.min.js?built_at=1485261247:4
jquery.min.js?built_at=1485261247:4 POST https://nodek12:8143/api/qe/query 500 (Internal Server Error)
send @ jquery.min.js?built_at=1485261247:4
ajax @ jquery.min.js?built_at=1485261247:4
Contrail.ajaxHandler @ core.bundle.js?built_at=1485261247:24987
initVLRequests @ core.bundle.js?built_at=1485261247:23526
pSuccessHandler @ core.bundle.js?built_at=1485261247:23422
(anonymous) @ core.bundle.js?built_at=1485261247:24988
i @ jquery.min.js?built_at=1485261247:2
fireWith @ jquery.min.js?built_at=1485261247:2
z @ jquery.min.js?built_at=1485261247:4
(anonymous) @ jquery.min.js?built_at=1485261247:4
jquery.min.js?built_at=1485261247:4 POST https://nodek12:8143/api/admin/reports/query 500 (Internal Server Error)
send @ jquery.min.js?built_at=1485261247:4
ajax @ jquery.min.js?built_at=1485261247:4
Contrail.ajaxHandler @ core.bundle.js?built_at=1485261247:24987
initVLRequests @ core.bundle.js?built_at=1485261247:23526
pSuccessHandler @ core.bundle.js?built_at=1485261247:23422
(anonymous) @ core.bundle.js?built_at=1485261247:24988
i @ jquery.min.js?built_at=1485261247:2
fireWith @ jquery.min.js?built_at=1485261247:2
z @ jquery.min.js?built_at=1485261247:4
(anonymous) @ jquery.min.js?built_at=1485261247:4
jquery.min.js?built_at=1485261247:4 POST https://nodek12:8143/api/admin/reports/query 500 (Internal Server Error)
send @ jquery.min.js?built_at=1485261247:4
ajax @ jquery.min.js?built_at=1485261247:4
Contrail.ajaxHandler @ core.bundle.js?built_at=1485261247:24987
initVLRequests @ core.bundle.js?built_at=1485261247:23526
pSuccessHandler @ core.bundle.js?built_at=1485261247:23422
(anonymous) @ core.bundle.js?built_at=1485261247:24988
i @ jquery.min.js?built_at=1485261247:2
fireWith @ jquery.min.js?built_at=1485261247:2
z @ jquery.min.js?built_at=1485261247:4
(anonymous) @ jquery.min.js?built_at=1485261247:4
jquery.min.js?built_at=1485261247:4 POST https://nodek12:8143/api/admin/reports/query 500 (Internal Server Error)
send @ jquery.min.js?built_at=1485261247:4
ajax @ jquery.min.js?built_at=1485261247:4
Contrail.ajaxHandler @ core.bundle.js?built_at=1485261247:24987
initVLRequests @ core.bundle.js?built_at=1485261247:23526
pSuccessHandler @ core.bundle.js?built_at=1485261247:23422
(anonymous) @ core.bundle.js?built_at=1485261247:24988
i @ jquery.min.js?built_at=1485261247:2
fireWith @ jquery.min.js?built_at=1485261247:2
z @ jquery.min.js?built_at=1485261247:4
(anonymous) @ jquery.min.js?built_at=1485261247:4
jquery.min.js?built_at=1485261247:4 POST https://nodek12:8143/api/qe/query 500 (Internal Server Error)
send @ jquery.min.js?built_at=1485261247:4
ajax @ jquery.min.js?built_at=1485261247:4
Contrail.ajaxHandler @ core.bundle.js?built_at=1485261247:24987
initVLRequests @ core.bundle.js?built_at=1485261247:23526
pSuccessHandler @ core.bundle.js?built_at=1485261247:23422
(anonymous) @ core.bundle.js?built_at=1485261247:24988
i @ jquery.min.js?built_at=1485261247:2
fireWith @ jquery.min.js?built_at=1485261247:2
z @ jquery.min.js?built_at=1485261247:4
(anonymous) @ jquery.min.js?built_at=1485261247:4
jquery.min.js?built_at=1485261247:4 POST https://nodek12:8143/api/admin/reports/query 500 (Internal Server Error)

Contrail WebUI logs -
01/25/2017 09:01:43 AM - debug: Query Request: {"pageSize":10000,"page":1,"tgUnits":"secs","tgValue":60,"fromTimeUTC":"now-15m","toTimeUTC":"now","async":true,"queryId":"DB03A30E-A6F3-4EF0-9B57-DB0BED77DE8F-1485315140386","reRunTimeRange":600,"select":"Source, name, T=, process_mem_cpu_usage.cpu_share, process_mem_cpu_usage.mem_res","table":"StatTable.NodeStatus.process_mem_cpu_usage","where":"(process_mem_cpu_usage.__key = contrail-vrouter-agent)"}
01/25/2017 09:01:43 AM - debug: Query sent to Opserver at Wed Jan 25 2017 09:01:43 GMT+0530 (IST) {"table":"StatTable.NodeStatus.process_mem_cpu_usage","start_time":"now-15m","end_time":"now","select_fields":["Source","name","T=60","process_mem_cpu_usage.cpu_share","process_mem_cpu_usage.mem_res","CLASS(T=)"],"filter":[],"limit":150000,"where":[[{"name":"process_mem_cpu_usage.__key","value":"contrail-vrouter-agent","op":1}]]}
01/25/2017 09:01:43 AM - error: URL [http://10.204.216.232:8081/analytics/query] returned error ["Error: 'TableSchema' object has no attribute '__dict__'"]
01/25/2017 09:01:43 AM - error: Error Run Query: REST Server Error: Error: 'TableSchema' object has no attribute '__dict__'
    at APIServer.retryMakeCall (/usr/src/contrail/contrail-web-core/src/serverroot/common/rest.api.js:203:13)
    at Request.<anonymous> (/usr/src/contrail/contrail-web-core/src/serverroot/common/rest.api.js:336:18)
    at Request.emit (events.js:98:17)
    at Request.mixin._fireSuccess (/usr/lib64/node_modules/restler/lib/restler.js:226:10)
    at /usr/lib64/node_modules/restler/lib/restler.js:157:20
    at IncomingMessage.parsers.auto (/usr/lib64/node_modules/restler/lib/restler.js:390:7)
    at Request.mixin._encode (/usr/lib64/node_modules/restler/lib/restler.js:194:29)
    at /usr/lib64/node_modules/restler/lib/restler.js:153:16
    at Request.mixin._decode (/usr/lib64/node_modules/restler/lib/restler.js:169:7)
    at IncomingMessage.<anonymous> (/usr/lib64/node_modules/restler/lib/restler.js:146:14)
01/25/2017 09:01:43 AM - error: REST Server Error: Error: 'TableSchema' object has no attribute '__dict__'
    at APIServer.retryMakeCall (/usr/src/contrail/contrail-web-core/src/serverroot/common/rest.api.js:203:13)
    at Request.<anonymous> (/usr/src/contrail/contrail-web-core/src/serverroot/common/rest.api.js:336:18)
    at Request.emit (events.js:98:17)
    at Request.mixin._fireSuccess (/usr/lib64/node_modules/restler/lib/restler.js:226:10)
    at /usr/lib64/node_modules/restler/lib/restler.js:157:20
    at IncomingMessage.parsers.auto (/usr/lib64/node_modules/restler/lib/restler.js:390:7)
    at Request.mixin._encode (/usr/lib64/node_modules/restler/lib/restler.js:194:29)
    at /usr/lib64/node_modules/restler/lib/restler.js:153:16
    at Request.mixin._decode (/usr/lib64/node_modules/restler/lib/restler.js:169:7)
    at IncomingMessage.<anonymous> (/usr/lib64/node_modules/restler/lib/restler.js:146:14)

Screenshot attached

Tags: blocker sanity ui
Revision history for this message
Pavana (pavanap) wrote :
summary: - [3.2.1.0-20] UI : WebUI page broken
+ [3.2.1.0-20] UI : WebUI page is broken
tags: added: blocker sanity
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.2

Review in progress for https://review.opencontrail.org/28170
Submitter: Nikhil Bansal (<email address hidden>)

Rahul (rahuls)
summary: - [3.2.1.0-20] UI : WebUI page is broken
+ [3.2.1.0-20] UI : WebUI page is broken with analytics failures
Changed in juniperopenstack:
assignee: nobody → Nikhil Bansal (nikhilb-u)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/28257
Submitter: Nikhil Bansal (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/28170
Committed: http://github.org/Juniper/contrail-controller/commit/d30cdc2049ea9e3d1e0ac397d2a9be9e876a1278
Submitter: Zuul (<email address hidden>)
Branch: R3.2

commit d30cdc2049ea9e3d1e0ac397d2a9be9e876a1278
Author: Nikhil B <email address hidden>
Date: Wed Jan 25 14:36:42 2017 +0530

Changes needed for old python version

It seems that a particular way to convert namedtuple to doct does not
work on old python versions (<= 2.7.5). Need to use a way which works
across the versions
Partial-Bug: #1659180

Change-Id: Iacf7fc4e0e1e23999734e45baadf950126898f1e

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

Reviewed: https://review.opencontrail.org/28257
Committed: http://github.org/Juniper/contrail-controller/commit/818558848838590c5ea0b1bc38c247d5941d8821
Submitter: Zuul (<email address hidden>)
Branch: master

commit 818558848838590c5ea0b1bc38c247d5941d8821
Author: Nikhil B <email address hidden>
Date: Wed Jan 25 14:36:42 2017 +0530

Changes needed for old python version

It seems that a particular way to convert namedtuple to doct does not
work on old python versions (<= 2.7.5). Need to use a way which works
across the versions
Partial-Bug: #1659180

Change-Id: Iacf7fc4e0e1e23999734e45baadf950126898f1e
(cherry picked from commit d30cdc2049ea9e3d1e0ac397d2a9be9e876a1278)

Fawad (fshaikh)
summary: [3.2.1.0-20] UI : WebUI page is broken with analytics failures
+ (TableSchema' object has no attribute '__dict__)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.