Skip to contentSkip to conversation

doc: Fix bind address example for lttng-relayd

PATCH Mathieu Desnoyers 3 participants 4 messages Jan 6, 2020 – Jan 15, 2020 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 1 line · ----- On Jan 6, 2020, at 12:19 AM, Benjamin Poirier [email protected]…

INADDR_ANY is 0.0.0.0

Hi Benjamin,

Double-checking this seems to confirm what the man page states:

% lttng-relayd -b
% netstat -lnp | grep lttng-relayd

tcp        0      0 0.0.0.0:5342            0.0.0.0:*               LISTEN      4445/lttng-relayd   
tcp        0      0 0.0.0.0:5343            0.0.0.0:*               LISTEN      4445/lttng-relayd   
tcp        0      0 127.0.0.1:5344          0.0.0.0:*               LISTEN      4445/lttng-relayd   
unix  2      [ ACC ]     STREAM     LISTENING     56508    4445/lttng-relayd    /home/compudj/.lttng/relayd/health-4445

Based on this output, the "live" port of the relayd daemon appears to be listening only on 127.0.0.1 by default.

What makes you think the man page needs to be updated ?

Thanks,

Mathieu

Quoted 28 lines
Fixes c93eadade277 ("doc/man: use propagated default values in man pages")

---
doc/man/lttng-relayd.8.txt | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
doc/man/lttng-relayd.8.txt +0 -0
index be59675d..bf88a535 100644
@@ -40,7 +40,7 @@ it can write to the output directory and listen on the

configured ports.
If a user is within a secured network and/or has proper firewall
settings, lttng-relayd can listen to LTTng live connections from _all_ network interfaces by specifying -+--live-port=tcp://{default_network_viewer_bind_address}:{default_network_viewer_port}+. ++--live-port=tcp://0.0.0.0:{default_network_viewer_port}+.

Once a trace has been streamed completely, the trace can be processed by any tool that can process an LTTng trace located on the local --
2.25.0.rc0

_______________________________________________
lttng-dev mailing list
[email protected]
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

Signature · 3 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 10 lines · Mathieu Desnoyers
Quoted 1 line · ----- On Jan 6, 2020, at 12:19 AM, Benjamin Poirier [email protected]…

INADDR_ANY is 0.0.0.0

Hi Benjamin,

Double-checking this seems to confirm what the man page states:

% lttng-relayd -b
% netstat -lnp | grep lttng-relayd

Quoted 7 lines
tcp        0      0 0.0.0.0:5342            0.0.0.0:*               LISTEN      4445/lttng-relayd   
tcp        0      0 0.0.0.0:5343            0.0.0.0:*               LISTEN      4445/lttng-relayd   
tcp        0      0 127.0.0.1:5344          0.0.0.0:*               LISTEN      4445/lttng-relayd   
unix  2      [ ACC ]     STREAM     LISTENING     56508    4445/lttng-relayd    /home/compudj/.lttng/relayd/health-4445

Based on this output, the "live" port of the relayd daemon appears to be listening only on 127.0.0.1 by default.

That's right but not relevant to this patch. The part of the man page changed by this patch is not stating the defaults.

Quoted 2 lines

What makes you think the man page needs to be updated ?

The part of the man page changed by this patch is:
If a user is within a secured network and/or has proper firewall settings, lttng-relayd can listen to LTTng live connections from all network interfaces by specifying --live-port=tcp://localhost:5344.

That is incorrect. To listen for connections to all addresses on the host, the socket has to be bound to INADDR_ANY, 0.0.0.0.

A message that is not in the archive (sent off-list or not yet received): 20200107015843.GA159599@f3

author Acked-by
#5 lore raw
Quoted 31 lines · ----- On Jan 6, 2020, at 8:58 PM, Benjamin Poirier [email protected]…
Quoted 20 lines · Mathieu Desnoyers

----- On Jan 6, 2020, at 12:19 AM, Benjamin Poirier [email protected]

Quoted 1 line · wrote:

INADDR_ANY is 0.0.0.0

Hi Benjamin,

Double-checking this seems to confirm what the man page states:

% lttng-relayd -b
% netstat -lnp | grep lttng-relayd
tcp 0 0 0.0.0.0:5342 0.0.0.0:* LISTEN
4445/lttng-relayd
tcp 0 0 0.0.0.0:5343 0.0.0.0:* LISTEN
4445/lttng-relayd
tcp 0 0 127.0.0.1:5344 0.0.0.0:* LISTEN
4445/lttng-relayd
unix 2 [ ACC ] STREAM LISTENING 56508 4445/lttng-relayd
/home/compudj/.lttng/relayd/health-4445

Quoted 3 lines

Based on this output, the "live" port of the relayd daemon appears to be listening
only on 127.0.0.1 by default.

That's right but not relevant to this patch. The part of the man page changed by this patch is not stating the defaults.

Quoted 2 lines

What makes you think the man page needs to be updated ?

Quoted 8 lines

The part of the man page changed by this patch is:
If a user is within a secured network and/or has proper firewall settings, lttng-relayd can listen to LTTng live connections from all network interfaces by specifying --live-port=tcp://localhost:5344.

That is incorrect. To listen for connections to all addresses on the host, the socket has to be bound to INADDR_ANY, 0.0.0.0.

Oh! Good point. I was missing the context. Yes this change makes sense.

Jérémie is on vacation this week, so we can expect it to be merged somewhere next week.

Thanks,

Mathieu

Signature · 7 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
_______________________________________________
lttng-dev mailing list
[email protected]
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
#6 lore raw
In reply to a message not in the archive

Merged in master, stable-2.11, and stable-2.10.

Thanks!
Jérémie

Quoted 28 lines · Benjamin Poirier

INADDR_ANY is 0.0.0.0

Fixes c93eadade277 ("doc/man: use propagated default values in man pages")
---
 doc/man/lttng-relayd.8.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
doc/man/lttng-relayd.8.txt +1 -1
index be59675d..bf88a535 100644
@@ -40,7 +40,7 @@ it can write to the output directory and listen on the configured ports.
 If a user is within a secured network and/or has proper firewall
 settings, `lttng-relayd` can listen to LTTng live connections from _all_
 network interfaces by specifying
-+--live-port=tcp://{default_network_viewer_bind_address}:{default_network_viewer_port}+.
++--live-port=tcp://0.0.0.0:{default_network_viewer_port}+.
 
 Once a trace has been streamed completely, the trace can be processed by
 any tool that can process an LTTng trace located on the local
Signature · 6 lines
2.25.0.rc0

_______________________________________________
lttng-dev mailing list
[email protected]
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev