I tested netplan.io 0.103-0ubuntu5~21.04.4 from hirsute-proposed and attached the official autopkgtest logs, all passed.
root@hh:~# dpkg -l | grep netplan ii libnetplan0:amd64 0.103-0ubuntu5~21.04.4 ii netplan.io 0.103-0ubuntu5~21.04.4
root@hh:~# ./netplan-dbus-perculiar2.sh method return time=1638359822.189644 sender=:1.20 -> destination=:1.21 serial=6 reply_serial=2 boolean true method return time=1638359822.725752 sender=:1.20 -> destination=:1.22 serial=8 reply_serial=2 boolean true method return time=1638359823.743116 sender=:1.20 -> destination=:1.25 serial=11 reply_serial=2 boolean true root@hh:~# root@hh:~# root@hh:~# root@hh:~# ./repro.sh === Case 1 === br54: OK (br45 exists) === Case 2 === network: ethernets: eth0: dhcp4: true version: 2 rm: cannot remove '/etc/netplan/90-hint.yaml': No such file or directory OK (file already gone) === Case 3 === br54: OK (br45 exists) === Case 4 === network: ethernets: eth0: dhcp4: true version: 2 rm: cannot remove '/etc/netplan/90-hint.yaml': No such file or directory OK (file already gone) === Case 5 === br54: OK (br45 exists) === Case 6 === network: ethernets: eth0: dhcp4: true version: 2 rm: cannot remove '/etc/netplan/90-hint.yaml': No such file or directory OK (file already gone) === Case 7 === {} cat: '/etc/netplan/*.yaml': No such file or directory OK (all YAML gone) === Case 8 === network: bridges: br54: dhcp4: true ethernets: eth0: dhcp4: true version: 2 network: ethernets: eth0: dhcp4: true version: 2 rm: cannot remove '/etc/netplan/90-hint.yaml': No such file or directory OK 90-hint.yaml already gone === Case 9 === cat: /etc/netplan/00-not-exist.yaml: No such file or directory rm: cannot remove '/etc/netplan/00-not-exist.yaml': No such file or directory ./repro.sh: 57: OK file already gone: not found
=> No netplan CLI crash can be observed. All good.
I tested netplan.io 0.103-0ubuntu5~ 21.04.4 from hirsute-proposed and attached the official autopkgtest logs, all passed.
root@hh:~# dpkg -l | grep netplan 21.04.4 21.04.4
ii libnetplan0:amd64 0.103-0ubuntu5~
ii netplan.io 0.103-0ubuntu5~
root@hh:~# ./netplan- dbus-perculiar2 .sh .189644 sender=:1.20 -> destination=:1.21 serial=6 reply_serial=2 .725752 sender=:1.20 -> destination=:1.22 serial=8 reply_serial=2 .743116 sender=:1.20 -> destination=:1.25 serial=11 reply_serial=2 90-hint. yaml': No such file or directory 90-hint. yaml': No such file or directory 90-hint. yaml': No such file or directory *.yaml' : No such file or directory 90-hint. yaml': No such file or directory 00-not- exist.yaml: No such file or directory 00-not- exist.yaml' : No such file or directory
method return time=1638359822
boolean true
method return time=1638359822
boolean true
method return time=1638359823
boolean true
root@hh:~#
root@hh:~#
root@hh:~#
root@hh:~# ./repro.sh
=== Case 1 ===
br54:
OK (br45 exists)
=== Case 2 ===
network:
ethernets:
eth0:
dhcp4: true
version: 2
rm: cannot remove '/etc/netplan/
OK (file already gone)
=== Case 3 ===
br54:
OK (br45 exists)
=== Case 4 ===
network:
ethernets:
eth0:
dhcp4: true
version: 2
rm: cannot remove '/etc/netplan/
OK (file already gone)
=== Case 5 ===
br54:
OK (br45 exists)
=== Case 6 ===
network:
ethernets:
eth0:
dhcp4: true
version: 2
rm: cannot remove '/etc/netplan/
OK (file already gone)
=== Case 7 ===
{}
cat: '/etc/netplan/
OK (all YAML gone)
=== Case 8 ===
network:
bridges:
br54:
dhcp4: true
ethernets:
eth0:
dhcp4: true
version: 2
network:
ethernets:
eth0:
dhcp4: true
version: 2
rm: cannot remove '/etc/netplan/
OK 90-hint.yaml already gone
=== Case 9 ===
cat: /etc/netplan/
rm: cannot remove '/etc/netplan/
./repro.sh: 57: OK file already gone: not found
=> No netplan CLI crash can be observed. All good.