Underlay-Analytics: contrail-snmp-collector restart failing as it tries to use the same port as contrail-snmp-scanner

Bug #1451687 reported by Sandip Dey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.20
Fix Committed
High
ted ghose
Trunk
Fix Committed
High
ted ghose

Bug Description

Build:R2.20 build 7

please excecute 'service contrail-snmp-collector restart'

Please see the log below

05/05/2015 11:58:58 AM [nodeg25:contrail-snmp-collector:Analytics:0]: @do_work(0):started (5)...
05/05/2015 12:01:54 PM [nodeg25:contrail-snmp-collector:Analytics:0]: SANDESH: CONNECT TO COLLECTOR: True
05/05/2015 12:01:54 PM [nodeg25:contrail-snmp-collector:Analytics:0]: SANDESH: Logging: LEVEL: [SYS_INFO] -> [SYS_DEBUG]
05/05/2015 12:01:54 PM [nodeg25:contrail-snmp-collector:Analytics:0]: SANDESH: Logging: FILE: [None] -> [<stdout>]
05/05/2015 12:01:54 PM [nodeg25:contrail-snmp-collector:Analytics:0]: SANDESH: Logging: SYSLOG: [None] -> [LOG_LOCAL0]
05/05/2015 12:01:54 PM [nodeg25:contrail-snmp-collector:Analytics:0]: Unable to open HTTP Port 5920, [Errno 98] Address already in use
05/05/2015 12:01:56 PM [nodeg25:contrail-snmp-collector:Analytics:0]: SANDESH: CONNECT TO COLLECTOR: True
05/05/2015 12:01:56 PM [nodeg25:contrail-snmp-collector:Analytics:0]: SANDESH: Logging: LEVEL: [SYS_INFO] -> [SYS_DEBUG]
05/05/2015 12:01:56 PM [nodeg25:contrail-snmp-collector:Analytics:0]: SANDESH: Logging: FILE: [None] -> [<stdout>]
05/05/2015 12:01:56 PM [nodeg25:contrail-snmp-collector:Analytics:0]: SANDESH: Logging: SYSLOG: [None] -> [LOG_LOCAL0]
05/05/2015 12:01:56 PM [nodeg25:contrail-snmp-collector:Analytics:0]: Unable to open HTTP Port 5920, [Errno 98] Address already in use
05/05/2015 12:01:59 PM [nodeg25:contrail-snmp-collector:Analytics:0]: SANDESH: CONNECT TO COLLECTOR: True
05/05/2015 12:01:59 PM [nodeg25:contrail-snmp-collector:Analytics:0]: SANDESH: Logging: LEVEL: [SYS_INFO] -> [SYS_DEBUG]
05/05/2015 12:01:59 PM [nodeg25:contrail-snmp-collector:Analytics:0]: SANDESH: Logging: FILE: [None] -> [<stdout>]
05/05/2015 12:01:59 PM [nodeg25:contrail-snmp-collector:Analytics:0]: SANDESH: Logging: SYSLOG: [None] -> [LOG_LOCAL0]
05/05/2015 12:01:59 PM [nodeg25:contrail-snmp-collector:Analytics:0]: Unable to open HTTP Port 5920, [Errno 98] Address already in use
05/05/2015 12:02:03 PM [nodeg25:contrail-snmp-collector:Analytics:0]: SANDESH: CONNECT TO COLLECTOR: True
05/05/2015 12:02:03 PM [nodeg25:contrail-snmp-collector:Analytics:0]: SANDESH: Logging: LEVEL: [SYS_INFO] -> [SYS_DEBUG]
05/05/2015 12:02:03 PM [nodeg25:contrail-snmp-collector:Analytics:0]: SANDESH: Logging: FILE: [None] -> [<stdout>]
05/05/2015 12:02:03 PM [nodeg25:contrail-snmp-collector:Analytics:0]: SANDESH: Logging: SYSLOG: [None] -> [LOG_LOCAL0]
05/05/2015 12:02:03 PM [nodeg25:contrail-snmp-collector:Analytics:0]: Unable to open HTTP Port 5920, [Errno 98] Address already in use

root@nodeg25:/usr/lib/python2.7/dist-packages# netstat -anp | grep 5920
tcp 0 0 0.0.0.0:5920 0.0.0.0:* LISTEN 27154/sh
root@nodeg25:/usr/lib/python2.7/dist-packages#
root@nodeg25:/usr/lib/python2.7/dist-packages# ps aux | grep 27154
contrail 27154 0.0 0.0 4408 612 ? S 12:19 0:00 /bin/sh -c contrail-snmp-scanner --input /tmp/tmpI4HhW9/in.data
root 27734 0.0 0.0 8112 940 pts/9 S+ 12:21 0:00 grep --color=auto 27154

Revision history for this message
Raj Reddy (rajreddy) wrote :

the issue seems to be that when parent dies, the child is not getting killed
please take a look from that angle..

Changed in juniperopenstack:
assignee: Raj Reddy (rajreddy) → ted ghose (rintu)
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : master

Review in progress for https://review.opencontrail.org/10189
Submitter: ted ghose (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/10190
Submitter: ted ghose (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/10190
Committed: http://github.org/Juniper/contrail-sandesh/commit/eae706eba2010700219c3b63e970743d110882c3
Submitter: Zuul
Branch: R2.20

commit eae706eba2010700219c3b63e970743d110882c3
Author: Ted Ghose <email address hidden>
Date: Mon May 11 11:19:34 2015 -0700

contrail-snmp-collector restart failing

Underlay-Analytics: contrail-snmp-collector restart failing as
it tries to use the same port as contrail-snmp-scanner
Closes-Bug: #1451687

Change-Id: Id313bc93ff9f2654fbfdff0db8f02e90e97ee668

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

Reviewed: https://review.opencontrail.org/10189
Committed: http://github.org/Juniper/contrail-sandesh/commit/dec97d98c32e82cf6ab9db4a96caf60524591d95
Submitter: Zuul
Branch: master

commit dec97d98c32e82cf6ab9db4a96caf60524591d95
Author: Ted Ghose <email address hidden>
Date: Mon May 11 11:19:34 2015 -0700

contrail-snmp-collector restart failing

Underlay-Analytics: contrail-snmp-collector restart failing as
it tries to use the same port as contrail-snmp-scanner
Closes-Bug: #1451687

Change-Id: I4dad3a0851a26037905417aa8423544a37373b87

Revision history for this message
Sandip Dey (sandipd) wrote :

Still seeing it in R2.20 build 23 Ubuntu 14.04,Juno

Revision history for this message
Raj Reddy (rajreddy) wrote :

Ted knows the fix, will commit soon..

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

Review in progress for https://review.opencontrail.org/10972
Submitter: ted ghose (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/10995
Submitter: ted ghose (<email address hidden>)

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

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

commit db7381a9dc6307ea47642b9496bdd4c3940e91cb
Author: Ted Ghose <email address hidden>
Date: Thu May 28 00:22:38 2015 -0700

Fix restart and empty prouter name

Change-Id: Idda0a2a5a9ecbae3a2b482178493e59a283b1849
Closes-Bug: #1456981
Closes-Bug: #1451687

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

Reviewed: https://review.opencontrail.org/10995
Committed: http://github.org/Juniper/contrail-controller/commit/5d664fb120fa4bd2d07b0fd083c9569015280e34
Submitter: Zuul
Branch: R2.20

commit 5d664fb120fa4bd2d07b0fd083c9569015280e34
Author: Ted Ghose <email address hidden>
Date: Thu May 28 00:22:38 2015 -0700

Fix restart and empty prouter name

Change-Id: I520d80e99811b1681bd21b7fb503cdf9f018ae0b
Closes-Bug: #1456981
Closes-Bug: #1451687

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.