harvester / harvester

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

[BUG] Installer halts after extracting to /usr/local/temp #4536

Open anthidote opened 1 year ago

anthidote commented 1 year ago

Describe the bug Installer halts after extracting to /usr/local/temp

To Reproduce Install harvester with 1.2.0 ISO, while using workaround in https://github.com/harvester/harvester/issues/4510

Expected behavior Installer doesn't freeze

Support bundle I cannot generate a bundle in the installer, but I can access a different tty and login with rancher:rancher if that helps

Environment

Additional context using workaround in https://github.com/harvester/harvester/issues/4510

iKVM_capture(4)

Vicente-Cheng commented 1 year ago

Hi @anthidote, could you login with rancher/rancher on another tty and then check the /usr/loca/tmp.3xxx (the above temp folder)? Then show the files in this folder. Thanks!

anthidote commented 1 year ago

usrlocal

The temp folder does not exist in /usr/local

anthidote commented 1 year ago

lsblk added lsblk output as well

bk201 commented 1 year ago

@anthidote Thanks, can you also dump /var/log/console.log?

anthidote commented 1 year ago

Not easily, no. The system doesn't detect the usb I plugged in, so I can't copy the log file. I'll try to run the whole installation again and see if this time the usb device appears...

anthidote commented 1 year ago

After reboot, it seems that I can boot into the installed 1.2.0. system. So it looks like the install actually happened. However, I get the following errors: iKVM_capture(5)

Unfortunately I can't go into the console, because the password doesn't work. I will try to reinstall.

anthidote commented 1 year ago

I'm running into a cruelly "funny" issue with the hacky workaround suggested. Since I need to specify the generic device name of the partition with the installer manually in the grub (e.g. /dev/sdX1), and since the generic usb device changes each time I boot, depending on which USB stick gets detected first, I can't reliably point to the installer device in grub. So, I am downloading the patched ISO and I'm going try to install from that.

anthidote commented 1 year ago

Ok, I managed to get the output of console.log lsblk.txt console.log

bk201 commented 1 year ago

@anthidote It looks like rke2 can't start. Do you have a default route in the network?

ip route

The RKE2 log during the installation time is at /run/cos/target/rke2.log, can you provide it? Thanks.

anthidote commented 1 year ago

As you suspected, there are no default routes found. ip route output is empty and we see the following in the rke2 logs: rke2.log

bk201 commented 1 year ago

@anthidote A default route is a requirement to RKE2, please check https://github.com/rancher/rke2/issues/1242. It doesn't have to be a working one.

anthidote commented 1 year ago

Ah, ok, so what's actually broken is the setting of the network information during install. I got some errors there. I will try the installation again and share the screenshot from the network configuration page.

anthidote commented 1 year ago

I changed the parameters in the network setting, there was likely an address conflict. This was a usage issue all along, sorry about that. You may close the bug report. Thanks for your help!