-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Vagrant: Ensure IP Subnet not in use by localhost #12332
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
Vagrant: Ensure IP Subnet not in use by localhost #12332
Conversation
Welcome @munchtoast! |
Hi @munchtoast. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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-sigs/prow repository. |
/ok-to-test |
I don't see anything immediatly wrong with this. You'll need to rebase on master to catch-up with ansible and CI changes though |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: munchtoast, VannTen 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 |
815ae3c
to
aec120c
Compare
/label ci-extended |
Thank you! This is also a good point regarding the vagrant licensing changes. I have some bandwidth so I will try and see if I can get some MVP PR with Lima.. |
Hum the retest does not seem to work 🤔 ( @ant31 ) Could you re-push to retrigger the tests please ?
Would be great ! Another option I've been thinking about is using opentofu with the libvirt provider, but it covers a narrower range of hypervisors (not sure what contributors usually use) |
This commit ensures that Vagrantfile supplied $subnet is not in use by the localhost. Previously, if the subnet is in use by localhost (i.e. bridge network), Vagrant VM boxes can not communicate.
This commit reverts the usage of Ruby .scan() which may result in failure if program is not provided. Instead, this commit refactors to use Socket library to determine interfaces in use, then proceeds to compare with Vagrantfile supplied subnets. Additionally, the commit supports IPv6 comparisons.
aec120c
to
0e7081c
Compare
/retest-failed |
/lgtm |
What this PR does / why we need it:
If Vagrantfile targets a subnet in use by localhost, VMs will not be able to deploy successfully. This PR checks localhost subnets in use and determines if Vagrantfile subnet is non-conflicting.
Which issue(s) this PR fixes:
Fixes #12331
Special notes for your reviewer:
Does this PR introduce a user-facing change?: