[UI] On a tor scale setup, unable to edit a port('Error in getting port data')

Bug #1425426 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Committed
High
Balamurugan Gopal
R2.1
Fix Committed
High
Balamurugan Gopal
R2.20
Fix Committed
High
Balamurugan Gopal

Bug Description

R2.1 36 Ubuntu 12.04.3 Icehouse

This is a TOR scale setup with 11K ports.
In Configure> Networking> Ports page, I chose a port and opted to edit it.

After about 30 seconds, i get the error as shown in attachment (Error in getting port data)
Sometimes, this error dialog doesnt show up, but still the current port properties are not loaded in the dialog

contrail-webui-stdout log :
=======================

2015-02-25T06:52:48.997Z - debug: DiscService Response Updated by process:20990 {"ApiServer":[{"port":"9100","ip-address":"192.168.1.2"},{"port":"9100","ip-address":"192.168.1.3"}],"ttl":10}
Error: connect EMFILE
    at errnoException (net.js:769:11)
    at connect (net.js:645:19)
    at Socket.connect (net.js:710:9)
    at dns.js:71:18
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)
2015-02-25T06:52:54.723Z - error: URL [http://192.168.1.2:9100/virtual-machine-interface/ebcef198-70e0-49e5-900d-fad79617e2df] returned error [{"code":"EMFILE","errno":"EMFILE","syscall":"connect"}]

/usr/src/contrail/contrail-web-controller/webroot/config/ports/api/portsconfig.api.js:88
    if ( 'floating_ip_back_refs' in vmiData['virtual-machine-interface']) {
                                 ^
TypeError: Cannot use 'in' operator to search for 'floating_ip_back_refs' in undefined
    at getVirtualIachineInterfaceCb (/usr/src/contrail/contrail-web-controller/webroot/config/ports/api/portsconfig.api.js:88:44)
    at /usr/src/contrail/contrail-web-controller/webroot/config/ports/api/portsconfig.api.js:71: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 ClientRequest.mixin._makeRequest (/usr/lib64/node_modules/restler/lib/restler.js:243:14)
    at ClientRequest.EventEmitter.emit (events.js:96:17)
2015-02-25T06:52:54.753Z - debug: The worker #10 has disconnected.
2015-02-25T06:52:54.886Z - error: The worker #10 has exited with exit code 1
2015-02-25T06:52:54.887Z - debug: Worker #10 did not commit suicide.
2015-02-25T06:52:55.028Z - debug: Redis: connect

Tags: bms scale ui
Revision history for this message
Vedamurthy Joshi (vedujoshi) wrote :
tags: added: scale
Rahul (rahuls)
Changed in juniperopenstack:
assignee: Rahul (rahuls) → Siva Bavanasi (kbsiva)
Siva Bavanasi (kbsiva)
Changed in juniperopenstack:
assignee: Siva Bavanasi (kbsiva) → Balamurugan Gopal (gbala)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : R2.1

Review in progress for https://review.opencontrail.org/8648
Submitter: Balamurugan Gopal (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/8652
Submitter: Balamurugan Gopal (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/8719
Submitter: Balamurugan Gopal (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/8724
Submitter: Balamurugan Gopal (<email address hidden>)

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

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

commit e02cace22db51f57c460a8f58d693181022e3591
Author: balamurugang <email address hidden>
Date: Mon Mar 30 15:07:57 2015 +0530

using new api to read the vmi object in port popup.

Reading teh whole VMI object in the create/edit of popup was leading to block of
all available port in nodejs to avoid the new api is used to read only the
instance IP .

Also included map limit for Interface pages.
used global variable global.ASYNC_MAP_LIMIT_COUNT.

Change-Id: I9a5d3d27301f3410725d1153d29ee5fa3badb9fe
Partial-Bug:#1425426
(cherry picked from commit b66ad8abbaf08db67b4b380acb525cd11d66a60d)

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

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

commit b66ad8abbaf08db67b4b380acb525cd11d66a60d
Author: balamurugang <email address hidden>
Date: Mon Mar 30 15:07:57 2015 +0530

using new api to read the vmi object in port popup.

Reading teh whole VMI object in the create/edit of popup was leading to block of
all available port in nodejs to avoid the new api is used to read only the
instance IP .

Also included map limit for Interface pages.

Change-Id: I9a5d3d27301f3410725d1153d29ee5fa3badb9fe
Partial-Bug:#1425426

Rahul (rahuls)
tags: added: bms
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : master

Review in progress for https://review.opencontrail.org/9431
Submitter: Balamurugan Gopal (<email address hidden>)

Revision history for this message
Balamurugan Gopal (gbala) wrote :

#1442002 - Increase the time limit of the port response.
#1442118 - Remove the instance ip from VMI call in popup
#1442374 - port scaling issues
-> Single call to get current project's vn and shared vns.
-> In case of edit. We can just get port's parent vn. No need to get all vn's.

All the three bug specified above will be solving this bug.

Changed in juniperopenstack:
status: New → Fix Committed
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.