-
Notifications
You must be signed in to change notification settings - Fork 90
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
Skip linux-bridge filtering if no "bridge" section #690
Conversation
/cherry-pick release-0.37 |
@qinqon: cannot cherry-pick an unmerged PR In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/cherry-pick release-0.37 |
@qinqon: once the present PR merges, I will cherry-pick it on top of release-0.37 in a new PR and assign it to you. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
pkg/nmstatectl/remote.go
Outdated
@@ -0,0 +1,68 @@ | |||
package nmstatectl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be a part of this PR, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed, this is from the PoC.
e3265bf
to
cedbf10
Compare
pkg/state/filter.go
Outdated
@@ -58,9 +58,24 @@ func filterOutDynamicAttributes(iface map[string]interface{}) { | |||
return | |||
} | |||
|
|||
bridge := iface["bridge"].(map[string]interface{}) | |||
bridgeIface, ok := iface["bridge"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use hasBridge
instead of ok
. Then the following condition makes more sense.
1f44fd3
to
2139727
Compare
2139727
to
c85db66
Compare
c85db66
to
2d3b0bd
Compare
We have found that at some envs the "bridge" section from linux-bridge is not present in case the bridge is down, this change ignore the filtering in this is the case to preveng a segmentation fault. Signed-off-by: Quique Llorente <[email protected]>
2d3b0bd
to
ef79eff
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
Looks good. Would you lgtm @rhrazdil if all seems fine to you?
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: phoracek The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/retest |
@qinqon: new pull request created: #691 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Is this a BUG FIX or a FEATURE ?:
We have found that at some envs the "bridge" section from linux-bridge
is not present in case the bridge is down, this change ignore the
filtering in this is the case to preveng a segmentation fault.
/kind bug
What this PR does / why we need it:
Special notes for your reviewer:
Release note: