contrail-webui: some pages don't work

Bug #1811976 reported by Gleb Zimin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenContrail
New
Undecided
Unassigned

Bug Description

When i tried to open some pages in contrail-webui i got error: REST Server Error: [SyntaxError: Failed to parse JSON body: Unexpected token v]. For example, when i want to get Configure -> Networking -> Ports, and port list is empty. Full trace look like this.

Jan 16 10:35:17 ntw03 node[30441]: 01/16/2019 10:35:17 AM - error: REST Server Error: [SyntaxError: Failed to parse JSON body: Unexpected token v]
Jan 16 10:35:17 ntw03 node[30441]: at APIServer.API.APIServer.retryMakeCall (/var/lib/contrail-webui/contrail-web-core/src/serverroot/common/rest.api.js:206:13)
Jan 16 10:35:17 ntw03 node[30441]: at Request.<anonymous> (/var/lib/contrail-webui/contrail-web-core/src/serverroot/common/rest.api.js:338:18)
Jan 16 10:35:17 ntw03 node[30441]: at emitTwo (events.js:87:13)
Jan 16 10:35:17 ntw03 node[30441]: at Request.emit (events.js:172:7)
Jan 16 10:35:17 ntw03 node[30441]: at Request.mixin._fireError (/var/lib/contrail-webui/node_modules/restler/lib/restler.js:230:10)
Jan 16 10:35:17 ntw03 node[30441]: at /var/lib/contrail-webui/node_modules/restler/lib/restler.js:180:20
Jan 16 10:35:17 ntw03 node[30441]: at IncomingMessage.parsers.json (/var/lib/contrail-webui/node_modules/restler/lib/restler.js:426:9)
Jan 16 10:35:17 ntw03 node[30441]: at IncomingMessage.parsers.auto (/var/lib/contrail-webui/node_modules/restler/lib/restler.js:414:21)
Jan 16 10:35:17 ntw03 node[30441]: at Request.mixin._encode (/var/lib/contrail-webui/node_modules/restler/lib/restler.js:220:29)
Jan 16 10:35:17 ntw03 node[30441]: at /var/lib/contrail-webui/node_modules/restler/lib/restler.js:178:16

Another example is trying to uses Config Editor, I got error in browser Error : [SyntaxError: Failed to parse JSON body: Unexpected end of input]
Full trace:
Jan 16 10:43:44 ntw03 node[30441]: SyntaxError: Failed to parse JSON body: Unexpected end of input
Jan 16 10:43:44 ntw03 node[30441]: at Object.parse (native)
Jan 16 10:43:44 ntw03 node[30441]: at IncomingMessage.parsers.json (/var/lib/contrail-webui/node_modules/restler/lib/restler.js:423:29)
Jan 16 10:43:44 ntw03 node[30441]: at IncomingMessage.parsers.auto (/var/lib/contrail-webui/node_modules/restler/lib/restler.js:414:21)
Jan 16 10:43:44 ntw03 node[30441]: at Request.mixin._encode (/var/lib/contrail-webui/node_modules/restler/lib/restler.js:220:29)
Jan 16 10:43:44 ntw03 node[30441]: at /var/lib/contrail-webui/node_modules/restler/lib/restler.js:178:16
Jan 16 10:43:44 ntw03 node[30441]: at Request.mixin._decode (/var/lib/contrail-webui/node_modules/restler/lib/restler.js:194:7)
Jan 16 10:43:44 ntw03 node[30441]: at IncomingMessage.<anonymous> (/var/lib/contrail-webui/node_modules/restler/lib/restler.js:171:14)
Jan 16 10:43:44 ntw03 node[30441]: at emitNone (events.js:72:20)
Jan 16 10:43:44 ntw03 node[30441]: at IncomingMessage.emit (events.js:166:7)
Jan 16 10:43:44 ntw03 node[30441]: at endReadableNT (_stream_readable.js:905:12)
Jan 16 10:43:44 ntw03 node[30441]: 01/16/2019 10:43:44 AM - error: URL [http://172.17.96.150:8082/] returned error [{}]
Jan 16 10:43:44 ntw03 node[30441]: 01/16/2019 10:43:44 AM - error: REST Server Error: [SyntaxError: Failed to parse JSON body: Unexpected end of input]
Jan 16 10:43:44 ntw03 node[30441]: at APIServer.API.APIServer.retryMakeCall (/var/lib/contrail-webui/contrail-web-core/src/serverroot/common/rest.api.js:206:13)
Jan 16 10:43:44 ntw03 node[30441]: at Request.<anonymous> (/var/lib/contrail-webui/contrail-web-core/src/serverroot/common/rest.api.js:338:18)
Jan 16 10:43:44 ntw03 node[30441]: at emitTwo (events.js:87:13)
Jan 16 10:43:44 ntw03 node[30441]: at Request.emit (events.js:172:7)
Jan 16 10:43:44 ntw03 node[30441]: at Request.mixin._fireError (/var/lib/contrail-webui/node_modules/restler/lib/restler.js:230:10)
Jan 16 10:43:44 ntw03 node[30441]: at /var/lib/contrail-webui/node_modules/restler/lib/restler.js:180:20
Jan 16 10:43:44 ntw03 node[30441]: at IncomingMessage.parsers.json (/var/lib/contrail-webui/node_modules/restler/lib/restler.js:426:9)
Jan 16 10:43:44 ntw03 node[30441]: at IncomingMessage.parsers.auto (/var/lib/contrail-webui/node_modules/restler/lib/restler.js:414:21)
Jan 16 10:43:44 ntw03 node[30441]: at Request.mixin._encode (/var/lib/contrail-webui/node_modules/restler/lib/restler.js:220:29)
Jan 16 10:43:44 ntw03 node[30441]: at /var/lib/contrail-webui/node_modules/restler/lib/restler.js:178:16

Enviroment: OC 4.1

Sergey Kreys (skreys)
summary: - contrail-webui some pages doesn't work
+ contrail-webui: some pages don't work
Revision history for this message
Gleb Zimin (gzimin) wrote :

The problem was with HAproxy and VIP.

Revision history for this message
Gleb Zimin (gzimin) wrote :

This bug can be closed.

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.