So it looks like the timeout in dbus.c that is hardcoded to 5s is the problem. 
I patched dbus.c to use a 15s timeout (values was arbitrary) and run the 
reproducer I get:
""""
# time ./repo.sh 
+ cut -d" -f2
+ grep object path
+ dbus-send --type=method_call --system --print-reply --dest=io.netplan.Netplan 
/io/netplan/Netplan io.netplan.Netplan.Config
+ objpath=/io/netplan/Netplan/config/ENTPK1
+ dbus-send --type=method_call --system --print-reply --dest=io.netplan.Netplan 
/io/netplan/Netplan/config/ENTPK1 io.netplan.Netplan.Config.Set 
string:bridges.br54.dhcp4=true string:90-foo
method return time=1649663748.713135 sender=:1.93 -> destination=:1.95 serial=6 
reply_serial=2
   boolean true
+ dbus-send --type=method_call --system --print-reply --dest=io.netplan.Netplan 
/io/netplan/Netplan/config/ENTPK1 io.netplan.Netplan.Config.Try uint32:300
method return time=1649663754.663485 sender=:1.93 -> destination=:1.96 serial=8 
reply_serial=2
   boolean true

real    0m6.054s
user    0m0.008s
sys     0m0.001s
"""

So it seems like the timeout just needs to be bigger, probably a lot
bigger given that it takes 6s on a reasonable fast amd64 VM. This code
will run on pi2 like ARM or RISCV systems :)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1967084

Title:
  netplan dbus returns "false" in io.netplan.Netplan.Config.Set

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/1967084/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to