-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
Milestone
Description
CloudStack agent trims the output for Host.OS from the version.sh (see below). In case of RHEL KVM hosts, CloudStack thinks they are "Red" OS and not "Red Hat Enterprise Linux", and doesn't allow the host to be added to an existing cluster.
# /usr/share/cloudstack-common/scripts/vm/hypervisor/versions.sh
Host.OS=Red Hat Enterprise Linux
Host.OS.Version=9.2
Host.OS.Kernel.Version=5.14.0-284.11.1.el9_2.x86_64
This causes NPE at:
2023-05-23 13:29:42,728 DEBUG [c.c.a.m.AgentManagerImpl] (AgentConnectTaskPool-348:ctx-f5b5e351) (logid:36272aee) Failed to handle host connection:
java.lang.NullPointerException
at com.cloud.hypervisor.kvm.discoverer.LibvirtServerDiscoverer.createHostVOForConnectedAgent(LibvirtServerDiscoverer.java:473)
at com.cloud.resource.ResourceManagerImpl.dispatchToStateAdapters(ResourceManagerImpl.java:1997)
And the Host.OS in the cluster's first host's DB detail doesn't match that of the host being added:
Without DEBUG logs enabled in cloudstack-agent it may read as if libvirt is having issues.
ISSUE TYPE
- Bug Report
COMPONENT NAME
RHEL9 + ACS 4.18+
Reactions are currently unavailable