-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Service shown in mesh status does not indicate when the service's host is offline #28
Comments
There are use cases where a LAN host is configured with a static IP address and does not receive a lease from the mesh node. This static IP device would never obtain a lease and would not be able to advertise a service if these symptoms were addressed by triggering off the dhcp lease. I've updated the title to zero in on the problem or undesirable behavior. Maybe there are alternative options to implement without requiring all LAN devices use DHCP to obtain an address. |
@ae6xe, Also, I am not sure I understand the second paragraph of your reply regarding the title. |
My bad, I actually didn't get the title changed. Will change now... Idea being to focus on stating the failure. It's a common pit fall to state up front how to fix something, get focused on that fix, then overlook that there might be better ways to implement. |
One option would be for the node that advertises a service, to 'ping' the host on its LAN and remove the service advertisement from OLSR accordingly. Check, say every 5 minutes. Alternatively, try to do a telnet (TCP) or nc (UDP/TCP) to the service port of this LAN host to see if it responds. A ping may be blocked by the host's firewall. |
As Joe said in that last sentence... What about Windows Hosts? (RMS Relay) I think "peer pressure" (or Nagios and the like) is a better answer for this, there are just too many variables to contend with. Also, to me this seems the same as issue aredn/aredn_ar71xx#106 |
The service on the localnode could be tested: curl -s localhost:80 >/dev/null && echo Success. || echo Fail. If fail, we know the service is down and can update service advertisement in OLSR, e.g. put - (dead) in the name. If success, we can ensure the advertisement is live again. |
Currently, the list of advertised services are published and propagated to the OLSR based on being added to the services list on a given node.
Sometimes host for a service is no longer connected to a node and hence it shows false information to the network that a host is there but un-reachable.
I suggest that once a host is dropped from the DHCP leases' list, that such service "or host" is no longer published (or propagated) as a service to the network.
or if really has to be populated, maybe give an indicator (red/green dots) showing if the host has a current active lease.
73 de AL0Y
The text was updated successfully, but these errors were encountered: