[UI] Timeout error when trying to delete multiple physical and logical intfs

Bug #1420455 reported by Vedamurthy Joshi
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Committed
High
Rahul
R2.1
Fix Committed
High
Rahul

Bug Description

R2.1 Build 26 Ubuntu 14.04 Multi-node setup

I had 3 pairs of (physical intf, logical intf) on a physical device br0 (Attached)

I selected 4 of these 6 ports and chose delete.
-----------
/var/log/contrail/contrail-webui-stdout.log has this and in the UI, after few seconds, i get a Timeout error (attached)

TypeError: Failed to parse JSON body: Cannot read property 'physical-interface' of null
    at /usr/src/contrail/contrail-web-controller/webroot/config/physicaldevices/physicalinterfaces/api/physicalinterfacesconfig.api.js:90:56
    at _asyncMap (/usr/lib64/node_modules/async/lib/async.js:190:13)
    at async.forEach (/usr/lib64/node_modules/async/lib/async.js:94:25)
    at _asyncMap (/usr/lib64/node_modules/async/lib/async.js:187:17)
    at doPostJsonCb (/usr/src/contrail/contrail-web-core/src/serverroot/utils/common.utils.js:760:9)
    at /usr/src/contrail/contrail-web-core/src/serverroot/utils/common.utils.js:902:13
    at /usr/src/contrail/contrail-web-core/src/serverroot/common/configServer.api.js:23:9
    at /usr/src/contrail/contrail-web-core/src/serverroot/web/api/configServer.main.api.js:97:13
    at APIServer.sendParsedDataToApp (/usr/src/contrail/contrail-web-core/src/serverroot/common/rest.api.js:199:17)
    at parsers.xml (/usr/lib64/node_modules/restler/lib/restler.js:440:9)
2015-02-10T19:22:56.939Z - ^[[31merror^[[39m: URL [http://10.204.217.7:9100/physical-interface/6f50c3b7-cf48-417a-89a4-8ffffbe7180c] returned error [{}]
2015-02-10T19:22:56.939Z - ^[[31merror^[[39m: Encountered broken link: /physical-interface/6f50c3b7-cf48-417a-89a4-8ffffbe7180c
2015-02-10T19:22:56.939Z - ^[[31merror^[[39m: REST Server Error: [TypeError: Failed to parse JSON body: Cannot read property 'physical-interface' of null]
    at APIServer.retryMakeCall (/usr/src/contrail/contrail-web-core/src/serverroot/common/rest.api.js:169:13)
    at Request.APIServer.makeCall (/usr/src/contrail/contrail-web-core/src/serverroot/common/rest.api.js:280:18)
    at Request.EventEmitter.emit (events.js:99:17)
    at Request.mixin._fireError (/usr/lib64/node_modules/restler/lib/restler.js:204:10)
    at mixin._responseHandler (/usr/lib64/node_modules/restler/lib/restler.js:155:20)
    at IncomingMessage.parsers.json (/usr/lib64/node_modules/restler/lib/restler.js:399:9)
    at IncomingMessage.parsers.auto (/usr/lib64/node_modules/restler/lib/restler.js:388:21)
    at Request.mixin._encode (/usr/lib64/node_modules/restler/lib/restler.js:194:29)
    at mixin._responseHandler (/usr/lib64/node_modules/restler/lib/restler.js:153:16)
    at Request.mixin._decode (/usr/lib64/node_modules/restler/lib/restler.js:169:7)
2015-02-10T19:23:43.102Z - ^[[34mdebug^[[39m: DiscService Response Updated by process:21838 {"ApiServer":[{"port":"9100","ip-address":"10.204.217.70"},{"port":"9100","ip-address":"10.204.217.69"},{"port":"9100","ip-address":"10.204.217.7"}],"ttl":6}

Tags: blocker ui
Revision history for this message
Vedamurthy Joshi (vedujoshi) wrote :
Revision history for this message
Vedamurthy Joshi (vedujoshi) wrote :
Revision history for this message
Vedamurthy Joshi (vedujoshi) wrote :

Now on build 2.10 28, when we do the same thing, we get 'Error in getting interfaces'

contrail-webui-stdout.log :

2015-02-13T13:51:26.151Z - ^[[31merror^[[39m: URL [http://10.204.217.7:8082/virtual-machine-interface/4ee9f86a-de45-40dd-b0d4-ae1ab1736e24] returned error [{}]

/usr/src/contrail/contrail-web-controller/webroot/config/ports/api/portsconfig.api.js:1916
    var uuid = vmiData['virtual-machine-interface']['uuid'];
                                                   ^
TypeError: Cannot read property 'uuid' of undefined
    at getReadDelVMICb (/usr/src/contrail/contrail-web-controller/webroot/config/ports/api/portsconfig.api.js:1916:52)
    at /usr/src/contrail/contrail-web-controller/webroot/config/ports/api/portsconfig.api.js:1728:9
    at /usr/src/contrail/contrail-web-controller/webroot/config/ports/api/portsconfig.api.js:1745:9
    at /usr/src/contrail/contrail-web-core/src/serverroot/common/configServer.api.js:23:9
    at /usr/src/contrail/contrail-web-core/src/serverroot/web/api/configServer.main.api.js:95:13
    at APIServer.retryMakeCall (/usr/src/contrail/contrail-web-core/src/serverroot/common/rest.api.js:176:5)
    at Request.APIServer.makeCall (/usr/src/contrail/contrail-web-core/src/serverroot/common/rest.api.js:280:18)
    at Request.EventEmitter.emit (events.js:99:17)
    at Request.mixin._fireError (/usr/lib64/node_modules/restler/lib/restler.js:204:10)
    at mixin._responseHandler (/usr/lib64/node_modules/restler/lib/restler.js:155:20)

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

Reviewed: https://review.opencontrail.org/7486
Committed: http://github.org/Juniper/contrail-web-controller/commit/1f48ae5f53601088ba2fb3cb94f0ad3f25355377
Submitter: Zuul
Branch: master

commit 1f48ae5f53601088ba2fb3cb94f0ad3f25355377
Author: Siva Bavanasi <email address hidden>
Date: Mon Feb 16 18:52:11 2015 +0530

Closes-Bug:#1420455 - Timeout error when trying to delete multiple physical and logical intfs

Change-Id: I7a4eb79a45f93641d15973115784b86119e52098

Changed in juniperopenstack:
status: New → Fix Committed
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/7488
Committed: http://github.org/Juniper/contrail-web-controller/commit/aba721d24ee3ac213a4fc5e558b0a52699ea33d0
Submitter: Zuul
Branch: R2.1

commit aba721d24ee3ac213a4fc5e558b0a52699ea33d0
Author: Siva Bavanasi <email address hidden>
Date: Mon Feb 16 19:11:15 2015 +0530

Closes-Bug:#1420455 - Timeout error when trying to delete multiple physical and logical intfs

Change-Id: I5c86f84337c50a8f2512a7f8ffc05d2d60a2f5af

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.