action #152365
closedos-autoinst-openvswitch.service fails on start-up size:S
Description
On oss-cobbler-03
(remote worker), after a reboot, os-autoinst-openvswitch.service fails with:
× os-autoinst-openvswitch.service - os-autoinst openvswitch helper
Loaded: loaded (/usr/lib/systemd/system/os-autoinst-openvswitch.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2023-12-11 08:00:43 GMT; 2min 49s ago
Process: 1820 ExecStart=/usr/lib/os-autoinst/os-autoinst-openvswitch (code=exited, status=255/EXCEPTION)
Main PID: 1820 (code=exited, status=255/EXCEPTION)
Dec 11 08:00:37 oss-cobbler-03 os-autoinst-openvswitch[1820]: Waiting for IP on bridge 'br1', 7s left ...
Dec 11 08:00:38 oss-cobbler-03 os-autoinst-openvswitch[1820]: Waiting for IP on bridge 'br1', 6s left ...
Dec 11 08:00:39 oss-cobbler-03 os-autoinst-openvswitch[1820]: Waiting for IP on bridge 'br1', 5s left ...
Dec 11 08:00:40 oss-cobbler-03 os-autoinst-openvswitch[1820]: Waiting for IP on bridge 'br1', 4s left ...
Dec 11 08:00:41 oss-cobbler-03 os-autoinst-openvswitch[1820]: Waiting for IP on bridge 'br1', 3s left ...
Dec 11 08:00:42 oss-cobbler-03 os-autoinst-openvswitch[1820]: Waiting for IP on bridge 'br1', 2s left ...
Dec 11 08:00:43 oss-cobbler-03 os-autoinst-openvswitch[1820]: can't parse bridge local port IP at /usr/lib/os-autoinst/os-autoinst-openvswitch line 68.
Dec 11 08:00:43 oss-cobbler-03 os-autoinst-openvswitch[1820]: Waiting for IP on bridge 'br1', 1s left ...
Dec 11 08:00:43 oss-cobbler-03 systemd[1]: os-autoinst-openvswitch.service: Main process exited, code=exited, status=255/EXCEPTION
Dec 11 08:00:43 oss-cobbler-03 systemd[1]: os-autoinst-openvswitch.service: Failed with result 'exit-code'.
A simple systemctl status os-autoinst-openvswitch.service
fix the problem:
● os-autoinst-openvswitch.service - os-autoinst openvswitch helper
Loaded: loaded (/usr/lib/systemd/system/os-autoinst-openvswitch.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2023-12-11 08:03:36 GMT; 862ms ago
Main PID: 16090 (os-autoinst-ope)
Tasks: 1 (limit: 4915)
CGroup: /system.slice/os-autoinst-openvswitch.service
└─ 16090 /usr/bin/perl /usr/lib/os-autoinst/os-autoinst-openvswitch
Dec 11 08:03:36 oss-cobbler-03 systemd[1]: Starting os-autoinst openvswitch helper...
Dec 11 08:03:36 oss-cobbler-03 systemd[1]: Started os-autoinst openvswitch helper.
Any idea how to fix this issue properly?
Updated by livdywan 11 months ago
- Status changed from Feedback to New
okurz wrote in #note-2:
If the network configuration on that machine is slow to start up you could set an environment variable, forgot the name, which waits longer for the startup. But on a properly configured system it shouldn't take that long to have a valid network configuration
There is OS_AUTOINST_OPENVSWITCH_INIT_TIMEOUT
which defaults to 60
Updated by okurz 11 months ago
- Related to action #75274: [osd-admins][alert][learning] Failed systemd services alert (workers): os-autoinst-openvswitch.service aborts retries after 60s and is not easily configurable added
Updated by okurz 11 months ago
- Due date deleted (
2023-12-25) - Status changed from Feedback to Resolved
https://github.com/os-autoinst/os-autoinst/pull/2421 merged.
@ggardet_arm so new versions should have the default timeout of 5m. If that's still not the case for you please check that the systemd file was also updated assuming you use that.