openshift-metal3 / dev-scripts

Scripts to automate development/test setup for openshift integration with https://github.com/metal3-io/
Apache License 2.0
93 stars 185 forks source link

libvirt net ostestbm won't start after reboot #1307

Open SirPhuttel opened 2 years ago

SirPhuttel commented 2 years ago

After a reboot of the hypervisor machine, libvirt's 'ostestbm' network refuses to start for several reasons:

Observed on CentOS8.4.2105. To reproduce:

I could eliminate the first cause above by removing ifcfg-ostestbm file. AFAICT, it is not needed as libvirt creates the bridge by itself anyway. It works like this with virbr0, for instance.

I spent a while trying to change ifcfg-eno3 (the external interface in my case) so that ifup-ipv6 sets accept_ra=2 but failed. Eventually just settled with

echo 'net.ipv6.conf.eno3.accept_ra = 2' >/etc/sysctl.d/01-eno3-accept_ra.conf

With these two changes applied, all three libvirt networks start upon boot. The nodes still need to be started manually, though. Maybe make them autostart? ('virsh autostart ' should do)

lalan7 commented 9 months ago

I have the same issue. Can you share how to recover from this situation. I try the echo 'net.ipv6.conf.eno3.accept_ra = 2' >/etc/sysctl.d/01-eno3-accept_ra.conf did'nt work.

SirPhuttel commented 9 months ago

Erik, the described measures were sufficient for me. The external device name (eno3 in my case) is hardware-specific, are you sure your external interface has the same name? Apart from that, I won't be much help I fear - I had the problem two years ago and I don't work with dev-scripts anymore. So, good luck? ;)