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 #186

Conversation

tsorya
Copy link
Contributor

@tsorya tsorya commented Jul 19, 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

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
@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 19, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 19, 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

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 19, 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

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 is draft but it's in my queue for review, looks good but I have few comments.

// in that case don't change the previous written interface
if chosenAddresses[0].LinkName != "br-ex" {
interfaceDir := filepath.Dir(interfaceFile)
err = os.MkdirAll(interfaceDir, 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 interfaceDir exists before trying to create?


// Set 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 seems a good candidate for const ?

err = os.MkdirAll(interfaceDir, 0755)
if err != nil {
return err
}
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 to 160 can be a helper function IMHO

@dougsland
Copy link
Contributor

Similar to #183 ?

@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.

None yet

2 participants