diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-05-08 23:46:36 +0200 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2026-05-14 08:13:52 +0200 |
| commit | 6df7ca2f61ce1aa8352e8dbb1fc6e9c5d6d42937 (patch) | |
| tree | 7f51bf751141c8733f5202dd711be0cc8a1e83bf /interface-definitions | |
| parent | bdd0ed181e7b6515398462abc07390dabb50b68e (diff) | |
| download | vyos-1x-6df7ca2f61ce1aa8352e8dbb1fc6e9c5d6d42937.tar.gz vyos-1x-6df7ca2f61ce1aa8352e8dbb1fc6e9c5d6d42937.zip | |
T8831: smoketests: irregular PermissionError caused by systemctl stop
Failures appear during PPPoEIf.remove() -> flush_addrs() -> set_dhcpv6(False),
where disable uses self._cmd(f'systemctl stop ...'), which raises on any
non-zero exit code of cmd().
PermissionError: [Errno 1] is misleading: cmd() raises OSError(exit_code,
feedback); exit code 1 maps to PermissionError in Python 3, so logs point at
"permissions" while the real signal is systemctl stop returned 1 (job failure,
timeout, restart contention with Restart=always on dhcp6c@.service.
Add a small systemd teardown helper stop_systemd_unit() validating the return
codes from the "systemctl stop" calls.
Diffstat (limited to 'interface-definitions')
0 files changed, 0 insertions, 0 deletions
