Project

General

Profile

Bug #11677

foreman-debug: netstat to print also ESTABLISHED connections

Added by Pavel Moravec almost 4 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
foreman-debug
Target version:
Difficulty:
trivial
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Description of problem:
foreman-debug generates netstat file as an output of "netstat -tulpn" command. -l means only listening sockets are displayed. While it is often important to see also established connections, i.e. celery connected to CDN:443 during repo sync, goferd on a content host to 5647, dispatch router on capsule to 5646, etc. If some such connection is missing, it is a symptom of some problem - but netstat in foreman-debug does not provide that info.

Please provide "netstat -putna" output rather (-l --> -a, print all sockets).

Version-Release number of selected component (if applicable):
foreman-debug-1.7.2.34-1.el7sat.noarch

How reproducible:
100%

Steps to Reproduce:
1. foreman-debug
2. (in extracted tarball): grep ESTAB netstat

Actual results:
no established TCP connection

Expected results:
many established connections, like:

tcp 0 0 1.2.3.4:40912 1.2.3.4:5671 ESTABLISHED 25428/qdrouterd

Additional info:
Same applies to "ss" command as an alternative to netstat

Associated revisions

Revision ee3275af (diff)
Added by Pavel Moravec almost 4 years ago

Fixes #11677 - foreman-debug: netstat to print all connections

netstat and ss to be called with "-a" instead of "-l" option to collect
all sockets and not only listening

Signed-off-by: Pavel Moravec <>

History

#1 Updated by The Foreman Bot almost 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2668 added
  • Pull request deleted ()

#2 Updated by Dominic Cleal almost 4 years ago

  • Legacy Backlogs Release (now unused) set to 63

#3 Updated by Pavel Moravec almost 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF