Skip to content
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

RFE-2962: Set interface name from node-ip-configuration to configure-ovs #183

Closed
wants to merge 1 commit into from

Conversation

tsorya
Copy link
Contributor

@tsorya tsorya commented Jul 5, 2022

node-ip-configuration will set env file for configure-ovs when it will
set kubelet ip, this will allow to configure ovs with the bridge on the
same interface that kubelet will use

unitests were not fixed, will do it if we decide this idea is good to go

openshift/machine-config-operator#3222

node-ip-configuration will set env file for configure-ovs when it will
set kubelet ip, this will allow to configure ovs with the bridge on the
same interface that kubelet will use
@tsorya
Copy link
Contributor Author

tsorya commented Jul 5, 2022

/test all

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 5, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 5, 2022

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@tsorya
Copy link
Contributor Author

tsorya commented Jul 5, 2022

/cc @cybertron

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 5, 2022

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: tsorya
To complete the pull request process, please assign dougsland after the PR has been reviewed.
You can assign the PR to them by writing /assign @dougsland in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

crioSvcOverridePath = "/etc/systemd/system/crio.service.d/20-nodenet.conf"
kubeletSvcOverridePath = "/etc/systemd/system/kubelet.service.d/20-nodenet.conf"
crioSvcOverridePath = "/etc/systemd/system/crio.service.d/20-nodenet.conf"
ovsConfigurationSvcOverridePath = "/etc/systemd/system/ovs-configuration.service.d//20-nodenet.conf"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra /

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 5, 2022

@tsorya: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/unit 3e3ae1e link true /test unit
ci/prow/e2e-metal-ipi 3e3ae1e link false /test e2e-metal-ipi
ci/prow/e2e-metal-ipi-ovn-ipv6 3e3ae1e link true /test e2e-metal-ipi-ovn-ipv6

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

Copy link
Contributor

@dougsland dougsland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The patch looks sane, few comments only.

log.Infof("Writing CRI-O service override with content %s", cOverrideContent)
_, err = cOverride.WriteString(cOverrideContent)
if err != nil {
return err
}

// OVN
// Set kubelet interface in case it is not br-ex that means that it was already configured and node is rebooting
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra space in "already configured"

// OVN
// Set kubelet interface in case it is not br-ex that means that it was already configured and node is rebooting
// in that case don't change the previous written interface
if chosenAddresses[0].LinkName != "br-ex" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"br-ex" a candidate for const?

// in that case don't change the previous written interface
if chosenAddresses[0].LinkName != "br-ex" {
ovsConfigurationDir := filepath.Dir(ovsConfigurationSvcOverridePath)
err = os.MkdirAll(ovsConfigurationDir, 0755)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we check if the dir exists and avoid getting an error creating it?

// OVN
// Set kubelet interface in case it is not br-ex that means that it was already configured and node is rebooting
// in that case don't change the previous written interface
if chosenAddresses[0].LinkName != "br-ex" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from line 144 until 160 could be converted to a helper function?

@tsorya
Copy link
Contributor Author

tsorya commented Aug 28, 2022

it was decided to go with ip address and not setting interface

@tsorya tsorya closed this Aug 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants