-
Notifications
You must be signed in to change notification settings - Fork 519
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
'Failed to parse network config' error when using net.toml with VMware Variant #3685
Comments
Hello @justdan96, it looks like you might be missing the |
I might have just missed the version string when I copied to GitHub, I'll check that tomorrow morning. |
@yeazelm I've edited my top comment, the file does indeed specify |
I believe the issue is the |
I think maybe I have got a little further by removing
|
The file that it is saying doesn't exist is written here:
generate-network-confg actually still failed but made it far enough to get to this point. Do you get the same error if you use eno1 ?
|
The error above was with Is there any way to enable debug logging for the early boot process? Or any way to get the list of possible network interfaces printed out during boot? |
By recording the screen and stepping through the footage I can see the following sequence of messages, I've removed some I don't think are relevant:
Just in case it is my user data I'll paste the redacted version of that below:
|
I noticed that |
Thanks @justdan96 for that link. It reminded me of the critical piece here which is the next line configuring netdog. That should be forcing on DHCP for the first interface. I don't believe a net.toml will work in this case. I was caught off guard that it looks to be attempting to read it but the logic should be forcing DHCP. |
I guess we can say that static IP addressing for the VMware variant is just not possible. That's very disappointing for us, since we won't be in a position to have a DHCP server in place for our VMware environments for maybe another year. |
After looking at https://github.com/bottlerocket-os/bottlerocket/blob/develop/sources/api/netdog/src/cli/mod.rs#L182 which parses this configuration. Theoretically it should be able to use that
This has been a pain point with debugging bottlerocket on new installs and the issue I linked above (#2657) only solves half the problem. Getting that first boot can be challenging. One method that might work for you is to build the
Once it boots, you could see what interfaces are present and what they are named.
I'm not super familiar with VMware configurations but I believe you can also set up the configuration to provide statically assigned IP addresses via DHCP to each VM individually so you could "trick" the VM into getting DHCP when its actually static. This is defendant on a lot of the VMware configuration but might be a workaround to consider. For what it is worth:
Is stating that the file in invalid, so its still not parsing correctly, which is back to the original error. One trick I've tried is getting this error to go away with something simple for We still might not get you to a working state even with these workarounds but hopefully this helps. |
I removed the netdog line from the kernel parameters in the Cargo.toml, built a new variant and then tried to deploy from that new OVA with the net.toml file. The
For now I'll have to park this bit of work. I guess until something like https://docs.rs/serde-untagged/latest/serde_untagged/ is integrated into netdog we won't know why it isn't recognising the interface, and I don't want to continue down a rabbit hole of investigation if this is a setup that isn't supported. |
Image I'm using:
vmware-k8s-1.24-v1.17.0
What I expected to happen:
Provide a
net.toml
file with the below contents, allowing the imaage to use static IP addressing to come online. I have also usedeno1
instead of the MAC address:What actually happened:
The OS fails to start up correctly, it fails with the following error message:
How to reproduce the problem:
Spin up a VMware VM from the OVA. Use a live CD to add a
net.toml
file to the 12th partition with the contents above, assuming they are correct. Remove the CD and boot the VM.It initially appears as if Bottlerocket can't find the network interface correctly, but as it happens so early in the boot process I'm not even sure how to troubleshoot this further. I tried addressing by interface name and MAC address and neither works.
The text was updated successfully, but these errors were encountered: