Skip to content

Zenoh never advertise localhost locator even if it's the only one available #1989

@Hugal31

Description

@Hugal31

Describe the bug

When Zenoh runs on an offline computer, no locator are advertised when gossiping with peers. This leads to peer not connecting with each others and the router doing failover brokering.

To reproduce

  1. Disconnect the computer from any network.
  2. Run zenohd --listen tcp/0.0.0.0:7447
  3. Run z_put --listen tcp/0.0.0.0:0 --connect tcp/127.0.0.1:7447
  4. Run z_sub --listen tcp/0.0.0.0:0 --connect tcp/127.0.0.1:7447

If you look at the network or the trace logs, you can see the router is doing failover brokering.

Connect the computer to a network and locators (e.g. the private address 192.168.X.X) are advertised, and the peers can connect to each others.

System info

  • Platform: Ubuntu 20.04 64-bit
  • Zenoh 1.4.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions