-
Notifications
You must be signed in to change notification settings - Fork 364
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
Automated cherry pick of #4126: Add OFSwitch connection check to Agent's liveness probes #4447
Automated cherry pick of #4126: Add OFSwitch connection check to Agent's liveness probes #4447
Conversation
748df8c
to
239c28f
Compare
Codecov Report
@@ Coverage Diff @@
## release-1.7 #4447 +/- ##
===============================================
- Coverage 64.06% 62.44% -1.62%
===============================================
Files 293 298 +5
Lines 43417 44428 +1011
===============================================
- Hits 27815 27743 -72
- Misses 13362 14464 +1102
+ Partials 2240 2221 -19
Flags with carried forward coverage won't be shown. Click here to find out more.
|
The unit test case "TestOFBridgeIsConnected" is failed, because ofnet is stuck at waiting for tlvMap reply in the versions earlier than this patch is merged antrea-io/ofnet#31 . To resolve the ut failure, we should modify some functions like this,
OFBridge.Connected is called automatically in funciton |
Thanks @wenyingd for the suggestion, will apply it. |
This helps automatic recovery if some issues cause OFSwitch reconnection to not work properly. It also fixes a race condition between the IsConnected and SwitchConnected methods of OFBridge and makes necessary changes to the constructor of APIServer to allow testing. For antrea-io#4092 Signed-off-by: Quan Tian <[email protected]>
239c28f
to
00d545e
Compare
/test-latest-all |
/test-latest-e2e |
e2e failed on #4477, which should be unrelated to the backport. |
Cherry pick of #4126 on release-1.7.
#4126: Add OFSwitch connection check to Agent's liveness probes
For details on the cherry pick process, see the cherry pick requests page.