Opened 13 months ago

Last modified 11 days ago

#1018 assigned enhancement

BCCD cluster discovery

Reported by: skylar Owned by: skylar
Priority: major Milestone: 3.4.0-build_ng
Component: Both Version: 3.4.0
Keywords: Cc:
Blocked By: Blocking:
Estimated Hours: 0 Total Hours: 4

Description

Is there a better way to do things? Avahi?

Change History (35)

comment:1 Changed 13 months ago by skylar

  • Status changed from new to assigned

avahi looks great until you realize that it has 0 documentation on its website.

maybe we can implement DNS-SD or mdns and only indirectly use avahi?

http://www.multicastdns.org/ http://www.dns-sd.org/ServerSetup.html https://www.ietf.org/rfc/rfc6763.txt

comment:5 Changed 11 months ago by skylar

for me for tomorrow: figure out why avahi-publish-address bccd 192.168.3.10 is giving "invalid host name"

comment:6 Changed 11 months ago by skylar

In 6144//cluster/svnroot:

install packages for zeroconf/mdns testing re #1018

comment:7 Changed 11 months ago by skylar

This works:

  1. avahi-publish-service node000 _bccd._tcp 22
  2. avahi-browse -rt _bccd._tcp reveals node000._bccd._tcp though only for IPv6

comment:8 Changed 11 months ago by skylar

publish address:

  1. avahi-publish -a -R node000.bccd.local 192.168.3.1
  2. avahi-resolve -a -n node000.bccd.local
Last edited 11 months ago by skylar (previous) (diff)

comment:9 Changed 11 months ago by skylar

Running a second address publication provides more address information in avahi-browse -rt, even though the service publication doesn't have that directly

comment:10 Changed 10 months ago by skylar

In 6145//cluster/svnroot:

remove custom networking for mdns testing re #1018

comment:11 Changed 10 months ago by skylar

In 6146//cluster/svnroot:

run dhcp client on all Ethernet interfaces re #1018

comment:12 Changed 10 months ago by skylar

for reason the service publication does not work (no resolution) though the address publication does work.

investigate more...

comment:13 Changed 10 months ago by skylar

never mind, typo'd

avahi-browse -p will produce parseable rather than ini-style output

comment:14 Changed 9 months ago by skylar

more things to decide:

  • How to integrate with systemd?
  • How to deal (or maybe not deal?) with name collisions?

comment:15 Changed 9 months ago by skylar

In 6147//cluster/svnroot:

add avahi-autoipd to allow IPv4LL zeroconf on networks w/o DHCP re #1018

comment:16 Changed 9 months ago by skylar

In 6148//cluster/svnroot:

adding avahi/mdns service for BCCD re #1018

comment:17 Changed 9 months ago by skylar

In 6149//cluster/svnroot:

add bccd-neighbors wrapper around avahi-browse re #1018

comment:18 Changed 9 months ago by skylar

In 6150//cluster/svnroot:

add dhcpcd to test IPv4LL re #1018

comment:19 Changed 9 months ago by skylar

In 6151//cluster/svnroot:

correct package name for dhcpcd5 re #1018

comment:20 Changed 8 months ago by skylar

systemd-networkd and dhcpcd run in tandem, but without coordination; getting one IP address from systemd-networkd:

Feb 10 19:53:23 bigfe.cluster.earlham.edu systemd-networkd[426]: eth1: DHCPv4 address 192.168.11.15/24

and one from dhcpcd:

Feb 11 03:53:35 bigfe.cluster.earlham.edu dhcpcd[1054]: eth1: leased 192.168.11.16 for 3600 seconds

seem if there's a way to get systemd-networkd to use dhcpcd or maybe just disable the former

comment:21 Changed 8 months ago by skylar

In 6152//cluster/svnroot:

systemd-networkd actually supports IPv4LL, no need for dhcpcd re #1018

comment:22 Changed 8 months ago by skylar

comment:23 Changed 8 months ago by skylar

In 6154//cluster/svnroot:

only print IP addreses in the APIPA range re #1018

comment:24 Changed 8 months ago by skylar

In 6155//cluster/svnroot:

install netcat re #1018

comment:25 Changed 8 months ago by skylar

In 6156//cluster/svnroot:

rewrite bccd-snarfhosts for bccd-neighbors re #1018

comment:26 Changed 8 months ago by skylar

Next todo: find a way to limit APIPA to only one interface, so we don't have to deal with routing the network between interfaces

comment:27 Changed 8 months ago by skylar

Looks like we can limit which IP addresses are published via allow-interfaces in the server stanza in /etc/avahi/avahi-daemon.conf

comment:28 Changed 8 months ago by skylar

Might be better to parse out the interface in bccd-neighbors - in theory, this would only have to be done (worst case) on the head node

comment:29 Changed 8 months ago by skylar

In 6157//cluster/svnroot:

allow setting of BCCD_NIC environment variable to limit which mDNS records are returned re #1018

comment:30 Changed 8 months ago by skylar

In 6158//cluster/svnroot:

filter empty lines in bccd-neighbors re #1018

comment:31 Changed 6 weeks ago by skylar

In 6162//cluster/svnroot:

remove bccd-networking, SSH updates will happen in a modified bccd-auto-ssh re #1018

comment:32 Changed 6 weeks ago by skylar

In 6163//cluster/svnroot:

move SSH known_hosts update into /bin/bccd-auto-ssh re #1018

comment:33 Changed 6 weeks ago by skylar

In 6164//cluster/svnroot:

run bccd-auto-ssh via cron re #1018

comment:34 Changed 11 days ago by skylar

In 6165//cluster/svnroot:

add bccd-avahi-browse script to centraize processing of _bccd._tcp records re #1018

comment:35 Changed 11 days ago by skylar

In 6166//cluster/svnroot:

add bccd-avahi-browse script to centraize processing of _bccd._tcp records re #1018

Note: See TracTickets for help on using tickets.