Opened 22 months ago

Last modified 13 days ago

#1001 assigned enhancement

Configure BCCD networking

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

Description

Change bccd-reset-network for systemd

Change History (45)

comment:1 Changed 22 months ago by skylar

  • Milestone changed from 3.4.0 to 3.4.0-build_ng
  • Status changed from new to assigned

comment:2 Changed 22 months ago by skylar

In 5930//cluster/svnroot:

first pass at adding systemd to bccd-reset-network re #1001

comment:3 Changed 22 months ago by skylar

In 5931//cluster/svnroot:

run bccd-dhcp re #1001

comment:4 Changed 22 months ago by skylar

In 5933//cluster/svnroot:

add better debugging re #1001

comment:5 Changed 22 months ago by skylar

In 5934//cluster/svnroot:

fixing typo re #1001

comment:6 Changed 22 months ago by skylar

Current problem: need to get BCCD interface up with an alias for 192.168.3.1

comment:7 Changed 22 months ago by skylar

Need to set INTERFACESv4 in /etc/default/isc-dhcp-server to the BCCD interface the user chooses in the dialog

Last edited 22 months ago by skylar (previous) (diff)

comment:8 Changed 22 months ago by skylar

In 5935//cluster/svnroot:

invoke-rc.d is no more, long live systemd re #1001

comment:9 Changed 22 months ago by skylar

In 5936//cluster/svnroot:

set BCCD interface in /etc/default/isc-dhcp-server re #1001

comment:10 Changed 21 months ago by skylar

seems that bccd-nic-setup is allowing the BCCD NIC to have DHCP

comment:11 Changed 21 months ago by skylar

In 5941//cluster/svnroot:

removing unused conf_nics function re #1001

comment:12 Changed 21 months ago by skylar

In 5942//cluster/svnroot:

seems we need to keep :1 now re #950, #1001

comment:13 Changed 21 months ago by skylar

comment:14 Changed 21 months ago by skylar

In 5944//cluster/svnroot:

use iproute2 even for BCCD NIC re #1001

comment:15 Changed 21 months ago by skylar

next up: need to have DHCP come up even before bccd-reset-network

comment:16 Changed 21 months ago by skylar

In 5945//cluster/svnroot:

minor typos in bccd-dhcp re #1001

comment:17 Changed 21 months ago by skylar

need to fix bccd-dhcp more, and also make sure that the BCCD NIC comes up before DHCP

comment:18 Changed 6 months ago by skylar

In 6057//cluster/svnroot:

adding net-tools for (deprecated) ifconfig re #1001

comment:19 Changed 6 months ago by skylar

comment:20 Changed 3 months ago by skylar

/bin/bccd-reset-network or Bccd.pm produces a /etc/network/interfaces file with multiple configuration per interface, which breaks the new systemd networking unit

bccd@bigfe:~$ cat /etc/network/interfaces
iface lo inet loopback

iface eth1 inet dhcp

iface eth1 inet static
        address 192.168.3.1
        netmask 255.255.255.0
        broadcast 192.168.3.255
iface eth0 inet dhcp

iface eth0 inet static
        address 10.0.3.15
        netmask 255.255.255.0
auto eth0 eth1 lo

comment:21 Changed 3 months ago by skylar

In 6096//cluster/svnroot:

fix logic error w/ testmode re #1001

comment:22 Changed 3 months ago by skylar

In 6097//cluster/svnroot:

improving logging re #1001

comment:23 Changed 3 months ago by skylar

error appears to be around line 2783 in Bccd.pm and use of $temp variable

comment:24 Changed 2 months ago by skylar

In 6105//cluster/svnroot:

enable networkd on bccd package install re #1001

comment:25 Changed 8 weeks ago by skylar

In 6106//cluster/svnroot:

activate systemd networking re #1001

comment:26 Changed 8 weeks ago by skylar

in /etc/NetworkManager/NetworkManager.conf, try setting managed=true

comment:27 Changed 8 weeks ago by skylar

In 6107//cluster/svnroot:

divert NetworkManager?.conf to manage all wired connections re #1001

comment:28 Changed 8 weeks ago by skylar

In 6108//cluster/svnroot:

match parens re #1001,#1008

comment:29 Changed 8 weeks ago by skylar

Brainstorming for live mode:

  1. Via custom systemd unit, run dhclient -cf /etc/dhcp/dhclient.conf-bccd on each interface to discover other BCCD systems
    • If no other BCCD are found, then prompt and start DHCP on user-provided interface.
    • If a BCCD DHCP server responds, rename /etc/dhcp/dhclient.conf-bccd to /etc/dhcp/dhclient.conf
  2. Allow systemd-networkd to take over

comment:30 Changed 7 weeks ago by skylar

command to add IP address to interface:

ip addr add 192.168.3.1/24 dev eth1

sample bccd_net.conf

subnet 192.168.3.0 netmask 255.255.255.0 {
    authoritative;
    option subnet-mask 255.255.255.0;
    option broadcast-address 192.168.3.255;
    pool {
        range 192.168.3.10 192.168.3.100;
        deny members of "ignored-nodes";
        allow members of "bccd-nodes";
    }
}

comment:31 Changed 7 weeks ago by skylar

In 6112//cluster/svnroot:

install bridge-utils re #1001

comment:32 Changed 7 weeks ago by skylar

In 6114//cluster/svnroot:

setup script for head node networking re #1001

comment:33 Changed 7 weeks ago by skylar

next up - figure out how to get NetworkManager on non-head nodes to use dhclient.conf-bccd

comment:34 Changed 5 weeks ago by skylar

In 6115//cluster/svnroot:

node000 systemd networking configs re #1001

comment:35 Changed 5 weeks ago by skylar

comment:36 Changed 5 weeks ago by skylar

can we maybe have static files that are universal enough not to need bccd-setup-head-node?

comment:37 Changed 5 weeks ago by skylar

In 6117//cluster/svnroot:

use systemd-resolved re #1001

comment:38 Changed 5 weeks ago by skylar

if bridging ends up being too complicated, this will work for a single interface:

bccd@bigfe:/etc/dhcp$ cat /etc/systemd/network/eth1.network 
[Match]
Name=eth1

[Network]
DHCP=yes
Address=192.168.3.1/24

comment:39 Changed 5 weeks ago by skylar

In 6118//cluster/svnroot:

template re #1001

comment:40 Changed 13 days ago by skylar

In 6119//cluster/svnroot:

manual resolv.conf management for chroot re #1001

comment:41 Changed 13 days ago by skylar

In 6120//cluster/svnroot:

work in chroot re #1001

comment:42 Changed 13 days ago by skylar

In 6121//cluster/svnroot:

debug statements re #1001

comment:43 Changed 13 days ago by skylar

comment:44 Changed 13 days ago by skylar

In 6123//cluster/svnroot:

if statements for clarity re #1001

comment:45 Changed 13 days ago by skylar

In 6124//cluster/svnroot:

might be able to install apt packages before bccd to avoid resolv.conf problems re #1001

Note: See TracTickets for help on using tickets.