/srv/irclogs.ubuntu.com/2021/12/01/#netplan.txt

morantronhi! i'm trying to run "netplan try" on a server, but i keep getting the following error "subprocess.CalledProcessError: Command '['udevadm', 'settle']' returned non-zero exit status 1.", any tips on how to debug this? thanks!11:40
schopinmorantron: does netplan --debug try give you any more info?11:41
morantronjust tried, not sure it's giving more relevant info -> https://gist.github.com/Morantron/bf7e01de9d273e9d5f517cd779ab5da911:51
morantronudevadm settle does indeed return 1, but i think that's what it is expected to do11:52
schopinWe really should systematically capture stdout/stderr on our external calls...12:14
schopinmorantron: what I'd do is just insert `import pdb; pdb.set_trace()` in /usr/share/netplan/netplan/cli/commands/apply.py just above the `subprocess.check_call(['udevadm', 'settle'])`, and when the trace point triggers, just run the command manually in another shell. That should give you more info.12:18
morantronthanks schopin, i'm gonna give it a try13:22
morantronyep, running "udevadm settle" or even "uvedadm --debug settle" does not give any extra info, it just takes 2 minutes, timesout and exits with code 113:29
schopinnothing in journactl?13:30
morantronoh well, i think i might have an unrelated hardware proble or something, that is messing with the udev queue13:31
morantron*problem13:32
morantronthanks for your help schopin13:32
schopinYou're welcome.13:35
ChurchHey folks, qq. When configuring the routes under a tunnel, for the via param. Can I just pass the name of the device? Or leave that param blank?16:41
ChurchI often write the static route as: `sudo ip r a 10.134.4.0/22 dev ipsec0`16:42
schopinChurch: you mean that your subnet is reachable directly via your tunnel, without having to do a hop? Omitting the via should work. You might have to add on-link: true, thoug.16:52
ChurchYep, I'll give that a try then.16:55
Churchschopin: Hmm secondary qq, is there an example of using the key param to the tunnel type?17:04
schopinChurch: I believe you'll find what you need there: https://netplan.io/reference/#properties-for-device-type-tunnels%3A17:05

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!