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

HA for fully-automatic egress IPs #20485

Merged

Conversation

danwinship
Copy link
Contributor

Tracks node online/offline state and handles reassigning egress IPs as needed.

The tracking code is very similar to the semi-automatic tracking code, but couldn't easily be shared since we don't do the OVS flow tracking in this case. Like the semi-automatic code, it needs to be made more configurable at some point...

@openshift/sig-networking PTAL

@openshift-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 31, 2018
@danwinship
Copy link
Contributor Author

/retest

1 similar comment
@openshift-bot
Copy link
Contributor

/retest

@danwinship
Copy link
Contributor Author

/retest
@openshift/sig-networking poke

Copy link
Contributor

@dcbw dcbw left a comment

Choose a reason for hiding this comment

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

/lgtm
Just some nits.

select {
case <-stop:
return
default:
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be more idomatic to do something like:

var timeout time.Duration
select {
case <-stop:
	return
case <-time.After(timeout):
	start := time.Now()
	retry := eim.check(retry)
	if !retry {
		//  If less than pollInterval has passed since start, then sleep until it has
		timeout = time.Until(start.Add(pollInterval))
	}
}

@dcbw
Copy link
Contributor

dcbw commented Aug 28, 2018

/retest

@dcbw
Copy link
Contributor

dcbw commented Aug 28, 2018

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 28, 2018
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: danwinship, dcbw

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 40a937e into openshift:master Aug 28, 2018
@danwinship danwinship deleted the egress-ip-master-ha branch August 29, 2018 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. component/networking lgtm Indicates that a PR is ready to be merged. sig/networking size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants