Comment 4 for bug 1884248

Revision history for this message
Phil Turmel (pturmel-lp) wrote : Re: networkd-dispatcher gives corrupted information

I'm a recent upgrader from bionic to focal thanks to a new System76 laptop that came with 20.04 pre-installed. I've been moving my netplan/dnsmasq configuration over to the new laptop and ran into this bug (I use a networkd-dispatcher script to pass DNS to dnsmasq via openresolv). I added a temporary script to save the entire environment to file. This is what I get:

ADDR=
AdministrativeState=configuring
BASH=/bin/bash
BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath
BASH_ALIASES=()
BASH_ARGC=()
BASH_ARGV=()
BASH_CMDS=()
BASH_LINENO=([0]="0")
BASH_SOURCE=([0]="/etc/networkd-dispatcher/routable.d/03-env.sh")
BASH_VERSINFO=([0]="5" [1]="0" [2]="17" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu")
BASH_VERSION='5.0.17(1)-release'
DIRSTACK=()
ESSID=
EUID=0
GROUPS=()
HOSTNAME=porthos
HOSTTYPE=x86_64
IFACE=br1
IFS=$' \t\n'
INVOCATION_ID=1218902d49134c42b318bb8557f2f3d3
IP6_ADDRS=
IP_ADDRS=
JOURNAL_STREAM=9:31399
LANG=en_US.UTF-8
MACHTYPE=x86_64-pc-linux-gnu
NOTIFY_SOCKET=/run/systemd/notify
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu
OperationalState=routable
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
PPID=1184
PS4='+ '
PWD=/
SHELL=/bin/bash
SHELLOPTS=braceexpand:hashall:interactive-comments
SHLVL=1
STATE=routable
TERM=dumb
UID=0
_=/bin/bash
json='{"AdministrativeState": "configuring", "Age": ["g Time: 5min", "iority: 32768", "STP: no"], "Aug 10 14:19:23": ["rthos systemd-networkd[8359]: br1: netdev ready", "rthos systemd-networkd[8359]: br1: Gained IPv6LL", "rthos systemd-networkd[8359]: br1: netdev exists, using existing without changing its parameters", "rthos systemd-networkd[8359]: br1: IPv6 successfully enabled"], "Aug 10 14:20:27": ["rthos systemd-networkd[8692]: br1: netdev ready", "rthos systemd-networkd[8692]: br1: Gained IPv6LL", "rthos systemd-networkd[8692]: br1: netdev exists, using existing without changing its parameters", "rthos systemd-networkd[8692]: br1: IPv6 successfully enabled"], "Aug 10 14:20:30": ["rthos systemd-networkd[8692]: br1: Gained carrier"], "Aug 10 14:21:05": ["rthos systemd-networkd[8692]: br1: DHCPv4 address 192.168.19.160/24 via 192.168.19.1"], "Forwa": ["Delay: 15s"], "HW": ["ddress: 00:30:93:12:08:d9 (Sonnet Technologies, Inc)", "MTU: 1500 (min: 68, max: 65535)"], "He": ["o Time: 2s", "ax Age: 20s"], "InterfaceName": "br1", "L": ["k File: n/a"], "Multicast IGMP": ["ersion: 2"], "Netw": ["k File: /run/systemd/network/10-netplan-br1.network", "Type: bridge", "State: routable (configured)", "Driver: bridge"], "OperationalState": "routable", "Queue Length": ["Tx/Rx): 1/1", "ddress: 192.168.19.160 (DHCP4)", "fe80::b0cd:9aff:fe37:c785", "ateway: 192.168.19.1", "DNS: 192.168.19.1", "NTP: 192.168.19.1", ""], "State": "routable (configuring)", "Type": "bridge"}'
networkd_dispatcher_args=--run-startup-triggers