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

Cache leases IP's and do not use them on the machine creation #157

Merged

Conversation

cynepco3hahue
Copy link
Contributor

Workers got IP's from DHCP, by default first machine will get IP x.x.x.51,
the second x.x.x.52... But if machine-controllers deployment restarted, it
will start again from x.x.x.51 for new machines. To avoid it, we will cache
IP leases on the first Create() call and will generate new IP until we get
IP that does not exist under the cache.

Fixes #134

@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jun 10, 2019
@ingvagabund
Copy link
Member

/test e2e-libvirt

2 similar comments
@ingvagabund
Copy link
Member

/test e2e-libvirt

@ingvagabund
Copy link
Member

/test e2e-libvirt

@petr-muller
Copy link
Member

/test e2e-libvirt

@zeenix
Copy link
Contributor

zeenix commented Jun 20, 2019

No clue what's with the docker image not containing the needed files. Let's try again before we investigate:

/test e2e-libvirt

)

// Leases contains list of Lease
Copy link
Contributor

Choose a reason for hiding this comment

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

Not the most useful comment. :) Contains list of DHCP leases would be better IMO.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@zeenix
Copy link
Contributor

zeenix commented Jul 15, 2019

other than that lgtm.

Workers got IP's from DHCP, by default first machine will get IP x.x.x.51,
the second x.x.x.52... But if machine-controllers deployment restarted, it
will start again from x.x.x.51 for new machines. To avoid it, we will cache
IP leases on the first `Create()` call, and will generate new IP until we get
IP that does not exist under the cache.
@openshift-ci-robot
Copy link
Contributor

@cynepco3hahue: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/jenkins/e2e db4bca1 link /test e2e
ci/prow/e2e-libvirt 0dddf86 link /test e2e-libvirt
ci/prow/actuator-pkg-staleness 0dddf86 link /test actuator-pkg-staleness

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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.

@zeenix
Copy link
Contributor

zeenix commented Jul 16, 2019

/lgtm
/approve

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 16, 2019
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: zeenix

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-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 16, 2019
@openshift-merge-robot openshift-merge-robot merged commit c1799bf into openshift:master Jul 16, 2019
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. lgtm Indicates that a PR is ready to be merged. 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.

Redeploy of the machine-controller will reset cidrOffset
6 participants