-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the no-wait argument to ovs-vsctl commands for hw-offload #418
Add the no-wait argument to ovs-vsctl commands for hw-offload #418
Conversation
The "no-wait" argument is needed for ovs-vsctl commands because there is a chance for ovs-vsctl to timeout. Adding "--no-wait" to the command line would make it such that ovs-vsctl doesn't wait for ovs-vswitchd to update "cur_cfg" An example of this timeout is shown here: ovs-vsctl[3265]: ovs|00001|vsctl|INFO|Called as /bin/ovs-vsctl set Open_vSwitch . other_config:hw-offload=true systemd[1]: ovs-vswitchd.service: start-pre operation timed out. Terminating. ovs-vsctl[3265]: 2023-02-22T22:00:20Z|00002|fatal_signal|WARN|terminating with signal 15 (Terminated) ovs-vsctl[3265]: ovs|00002|fatal_signal|WARN|terminating with signal 15 (Terminated) systemd[1]: ovs-vswitchd.service: Failed with result 'timeout'. systemd[1]: Failed to start Open vSwitch Forwarding Unit.
Thanks for your PR,
To skip the vendors CIs use one of:
|
/cc @bn222 |
Pull Request Test Coverage Report for Build 4378389223
💛 - Coveralls |
This is a great find. Thanks for figuring this one out. I like the idea of adding no-wait we avoid a timeout from systemd. However, I'm wondering what other implications this has. Afaict, not waiting to finish setting hwol to true isn't going to have an impact elsewhere. /lgtm |
@wizhaoredhat Is this the fix to the ovs-configuration service failure you found on openshift 4.13? |
Yes it was in OCP 4.12. |
The "no-wait" argument is needed for ovs-vsctl commands because there is a chance for ovs-vsctl to timeout.
Adding "--no-wait" to the command line would make it such that ovs-vsctl doesn't wait for ovs-vswitchd to update "cur_cfg"
An example of this timeout is shown here:
ovs-vsctl[3265]: ovs|00001|vsctl|INFO|Called as /bin/ovs-vsctl set Open_vSwitch . other_config:hw-offload=true systemd[1]: ovs-vswitchd.service: start-pre operation timed out. Terminating. ovs-vsctl[3265]: 2023-02-22T22:00:20Z|00002|fatal_signal|WARN|terminating with signal 15 (Terminated) ovs-vsctl[3265]: ovs|00002|fatal_signal|WARN|terminating with signal 15 (Terminated) systemd[1]: ovs-vswitchd.service: Failed with result 'timeout'. systemd[1]: Failed to start Open vSwitch Forwarding Unit.