netplan apply always exits with status 0
Bug #1701434 reported by
Witold Krecicki
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
Fix Released
|
High
|
Mathieu Trudel-Lapierre | ||
nplan (Ubuntu) |
Fix Released
|
High
|
Mathieu Trudel-Lapierre |
Bug Description
netplan apply returns with status 0 even if it failed:
$ netplan apply && echo "Success!"
Cannot replug eno1: [Errno 13] Permission denied: '/sys/bus/
Success!
I believe that's an undesider behaviour.
Changed in netplan: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in nplan (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Mathieu Trudel-Lapierre (cyphermox) |
tags: | added: id-5966b86bf4d6cb1ad360527b |
To post a comment you must log in.
Was there any config provided when you did this? Seems like there are also all the service stop/start commands that should get attempted and fail (and these do throw exceptions). I don't think failing to unbind because of a missing file, for example, is critical enough to warrant to completing the apply, but failing to restart NM or systemd would definitely be.
I think this will at the very least need more information about the configuration that was used for netplan.