morantron | hi! 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 |
---|---|---|
schopin | morantron: does netplan --debug try give you any more info? | 11:41 |
morantron | just tried, not sure it's giving more relevant info -> https://gist.github.com/Morantron/bf7e01de9d273e9d5f517cd779ab5da9 | 11:51 |
morantron | udevadm settle does indeed return 1, but i think that's what it is expected to do | 11:52 |
schopin | We really should systematically capture stdout/stderr on our external calls... | 12:14 |
schopin | morantron: 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 |
morantron | thanks schopin, i'm gonna give it a try | 13:22 |
morantron | yep, running "udevadm settle" or even "uvedadm --debug settle" does not give any extra info, it just takes 2 minutes, timesout and exits with code 1 | 13:29 |
schopin | nothing in journactl? | 13:30 |
morantron | oh well, i think i might have an unrelated hardware proble or something, that is messing with the udev queue | 13:31 |
morantron | *problem | 13:32 |
morantron | thanks for your help schopin | 13:32 |
schopin | You're welcome. | 13:35 |
Church | Hey 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 |
Church | I often write the static route as: `sudo ip r a 10.134.4.0/22 dev ipsec0` | 16:42 |
schopin | Church: 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 |
Church | Yep, I'll give that a try then. | 16:55 |
Church | schopin: Hmm secondary qq, is there an example of using the key param to the tunnel type? | 17:04 |
schopin | Church: I believe you'll find what you need there: https://netplan.io/reference/#properties-for-device-type-tunnels%3A | 17:05 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!