harvester / harvester

Open source hyperconverged infrastructure (HCI) software
https://harvesterhci.io/
Apache License 2.0
3.73k stars 312 forks source link

[BUG] Unrecognized nic when installing. 1.2.0-patch1 #4582

Open mkoperator opened 11 months ago

mkoperator commented 11 months ago

Describe the bug When installing, network card not detected correctly. Using the patched iso for USB via pikvm.

To Reproduce Via pikvm, but i assume via ilo or idrac would work similarly, upload patched iso. Boot from the iso. Try to select management network interface

  1. Go to '...'

Expected behavior nic is up and receives a dhcp ip.

Environment

Additional context Had ubuntu loaded on it before working and you can see the nic eth0 has an ip. goodonubuntu

Then on harvester, it is rename5. managementnic

mkoperator commented 11 months ago

Looks similar to https://github.com/harvester/harvester/issues/2084 and the motherboard firmware answer is pretty crap, ubuntu comes up just fine.

mkoperator commented 11 months ago

Update: worked around this issue. First, i followed the steps in the other ticket to manually bring up the rename5 (it renamed to rename4 on last run) interface and continue the installation.

Ctrl + Alt + F2
Login as rancher/rancher
ip link set dev rename4 up
Ctrl + Alt + F1 

However, on first boot, it got weirder. rename4 has now been renamed to eno1, it is up, but did not get DHCP address. Also, the other port on this server has now been renamed as rename3. manual_workaround

Rke2 failed to load along with rest of harvester due to localhost not really being reachable.

Turns out in /oem/90_custom.yaml in the networking session, the interface was not renamed from rename4 to eno1. I updated it to eno1, rebooted, and now harvester is up, and reboots properly. I guess I wont be using rename3 for anything.

Root cause guess: Looks like harvester is unable to handle more than 1 network port on a card or server in certain cases. Maybe (MicroOS?Harvester) [cannot depend on the firmware variable it is using as an id] based on the other post.

irishgordo commented 11 months ago

Hi @mkoperator - I was noticing this with SuperMicro X9DRD-IT as you linked earlier w/ #2084

With the kernel argument net.ifnames=0 - did rename5 ever become eth0?