-
Notifications
You must be signed in to change notification settings - Fork 200
WIP: Static ip #1342
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
WIP: Static ip #1342
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
FYI I started looking at that via metal3-io/metal3-dev-env#902 (now merged) - with that we can do something like this: |
1323be9 to
507dc75
Compare
This configures static IP for the bootstrap external NIC
Set up a STATIC_IPS configuration flag that configures dev-scripts to use static IPs (v4 and/or v6) for the baremetal network. Co-Authored-By: Caleb Boylan <[email protected]> Co-Authored-By: Ian main <[email protected]>
|
Having a shortcut to use static ips is useful, but I'm more interested in an interface to provide arbitrary network configs for the nodes so we can test things like bridge and bond configs. This is fairly important so we can duplicate (as close as possible, anyway) qe and customer network configurations. Since networkConfigs are all multi-line, I don't think we want to try to pass them as env vars. I think we need an env var that points to a file or files containing the relevant networkConfigs. My first thought is to have the env var point to a directory (like ASSETS_EXTRA_FOLDER) and inside that there would be specific files - master-0.yaml, master-1.yaml, etc. containing the networkConfig for the respective node, as well as a vm_setup_extrahosts.yml for defining necessary DNS records. None of this eliminates the need for a static ip shortcut option, but I'm wondering if it makes more sense to implement the arbitrary interface and then do the static ip config using that instead of as a one-off like it is now. |
|
I tried this locally and for some reason my workers are stuck on the agent image. I see a few errors in the logs, but it mostly looks like optional stuff and the agent run seems to complete so I'm not sure what's going on there. It's not specific to this patch because when I manually configured static IPs it did the exact same thing. |
|
To wrap up my previous comment, I believe there was an actual bug with networkConfig causing the failure. That's fixed now. I pushed #1418 as an example of what I was thinking for a generic networkConfig interface. It still needs something to add DNS records for static IPs, but with a little vm_setup_vars hacking it worked well. There should be some way to get the dns_extrahosts from the same directory. |
|
@derekhiggins: PR needs rebase. DetailsInstructions 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. |
|
@derekhiggins: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
|
Closing as this was handled in #1418 |
Cluster eventually comes up and completes
Continuing the work started here
#1297
TODO:
need to make dhcp config configurable