-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Only start the SDN controller if an openshift network plugin is configured #16060
Conversation
/lgtm |
"FAILURE: PROVISION TEST CLUSTER" |
Yikes. Wish this was easy to test automatically. |
@@ -13,5 +13,6 @@ type SDNControllerConfig struct { | |||
} | |||
|
|||
func (c *SDNControllerConfig) RunController(ctx ControllerContext) (bool, error) { | |||
return false, fmt.Errorf("SDN not supported on this platform") | |||
glog.Errorf("SDN not supported on this platform") |
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.
Oops, I was thinking this only even got called if the config specified networkPluginName: redhat/openshift-ovs-multitenant
, etc. But that's checked elsewhere.
I think this should do:
if sdn.IsOpenShiftNetworkPlugin(c.NetworkConfig.NetworkPluginName) {
return false, fmt.Errorf("SDN not supported on this platform")
} else {
return false, nil
}
(where sdn
is "github.com/openshift/origin/pkg/sdn"
)
Then if master-config.yaml says to use the SDN plugin, it will fail to start. But otherwise it will just log Skipping "openshift.io/sdn"
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.
the linux controller doesn't check sdn.IsOpenShiftNetworkPlugin
... should it?
turns out, the linux controller wasn't checking if the configured network plugin required the sdn controller, so this is now a bugfix. @danwinship PTAL |
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.
turns out, the linux controller wasn't checking if the configured network plugin required the sdn controller
yeah, sdnmaster.Start() checks that itself. But this is better since the "return false" will make it log that it's skipping that controller
/lgtm |
neeeeeds..... reeeeebaaaaasssseeeeee |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: danwinship, deads2k, liggitt The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/retest
Idling is the bane of my existence
|
/retest
Deployment invariant violated
|
/retest Please review the full test history for this PR and help us cut down flakes. |
16 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
Automatic merge from submit-queue |
Returning an error causes a process exit. This logs and skips instead.