kxr / ocp4_setup_upi_kvm

Script to Setup an OpenShift 4 UPI Cluster on KVM. Based on this guide: https://kxr.me/2019/08/17/openshift-4-upi-install-libvirt-kvm/
50 stars 55 forks source link

libvirt might not be active, but do ensure it is enabled. #5

Closed jmazzitelli closed 4 years ago

jmazzitelli commented 4 years ago

I have Fedora32 Server installed. libvirtd is enabled, but it stops after 2 minutes after boottime. It does "wake up" on demand as it is needed. So the script needs to not abort if libvirtd isn't active, but it does need to make sure it is at least enabled.

So in other words, this PR ensures that the libvirtd service it either running or enabled.

To make sure your system will work with the script, at minimum you need to do this: sudo systemctl enable libvirtd

You do not actually have to systemctl start libvirtd for this to work. That's why this PR is needed. I had libvirtd enabled but not active (indeed, it appears libvirtd service shutdowns after 2 minutes of idle time, but will wake up on demand).

A second thing this PR does is it also adds a message at the end to remind the user what hostnames need to be added to DNS for clients to access the cluster.

kxr commented 4 years ago

Thank you so much for pointing this out. I often used to get the error that libvirt is not running and I used to think that may be some thing is wrong on my system And i used to just start libvirt (systemctl start libvirtd) and carry on. But your explanation makes sense.