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

OKD-4.4 install, FCOS does not persist NIC settings provided as kernel args #425

Closed
cgruver opened this issue Mar 17, 2020 · 5 comments
Closed
Assignees

Comments

@cgruver
Copy link

cgruver commented Mar 17, 2020

I will attempt to grab rpm-ostree status and post it below.

FCOS version: 31.20200210.3.0-metal-x86_64

I am trying to get an OKD-4.4 cluster to bootstrap with 2 NICs in the master and worker nodes. However, FCOS appears to be overriding the IP configuration that I am setting in the iPXE boot file, and reverting the second NIC to DHCP. It is then trying to set a route on the second NIC and is therefore unable to communicate with the bootstrap node. The same configuration will successfully install with just one NIC, (DHCP Reservation on eth0).

The iPXE file is named for the MAC of the primary NIC and has the following kernel config:

kernel path/to/fcos/vmlinuz ip=:::::eth0:dhcp ip=10.11.12.100:::255.255.255.0::eth1:none rd.neednet=1 coreos.inst=yes coreos.inst.install_dev=sda coreos.inst.image_url=path/to/fcos/install.xz coreos.inst.ignition_url=path/to/fcos/ignition/master.ign coreos.inst.platform_id=qemu console=ttyS0

During the initial boot, and subsequent install of FCOS it is honoring the ip configuration. But then appears to revert to DHCP for eth1 after performing its first-boot. I have also tried DHCP for eth1 with IP reservations, but it still tries to use it as a route-able network, and thus cannot bootstrap.

Suspect that dracut is not persisting the network config that is provided by the initial kernel args.

I am very new to RHCOS/FCOS so let me know what additional information will be useful.

@vrutkovs
Copy link
Member

Seems related to #394

@cgwalters
Copy link
Member

Yep, RHCOS today carries this code but the intention is that once we have NM in the initrd, NM will honor kernel arguments for the firstboot and subsequent.

@cgruver
Copy link
Author

cgruver commented Mar 17, 2020

Thanks!

I'll monitor the progress. Let me know when there is an FCOS image ready to test. I'll give it a shot.

@dustymabe
Copy link
Member

We are now using NetworkManager in the initramfs and also propagating network information from the initramfs (kargs) when appropriate, which we think fixes this issue.

See #394 (comment) and the preceding discussion for more details.

@cgruver
Copy link
Author

cgruver commented Mar 27, 2020

Excellent!

I will run an OKD deployment with fixed IPs and test it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants