root@ii:~# ./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-0ubuntu7.2 from impish-proposed and attached the official autopkgtest logs, all passed.
root@ii:~# dpkg -l | grep netplan
ii libnetplan0:amd64 0.103-0ubuntu7.2
ii netplan.io 0.103-0ubuntu7.2
root@ii:~# ./netplan- dbus-perculiar2 .sh .746850 sender=:1.19 -> destination=:1.20 serial=6 reply_serial=2 .468015 sender=:1.19 -> destination=:1.21 serial=8 reply_serial=2 .532484 sender=:1.19 -> destination=:1.24 serial=11 reply_serial=2
method return time=1638359097
boolean true
method return time=1638359098
boolean true
method return time=1638359099
boolean true
root@ii:~# ./repro.sh 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
=== 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.