-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
ISSUE TYPE
- Bug Report
COMPONENT NAME
cloudstack-agent
CLOUDSTACK VERSION
4.15
CONFIGURATION
OS / ENVIRONMENT
Ubuntu 20.04 LTS
QEMU emulator version 4.2.1 (Debian 1:4.2-3ubuntu6.16)
libvirt : 6.0.0
SUMMARY
The cloudstack-agent doesn't want to start and crashloop saying :
2021-05-29 07:07:03,384 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) (logid:) Found existing defined storage pool a2e605c9-b2ac-4dd9-9442-a666debbfc35, using it.
2021-05-29 07:07:03,384 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) (logid:) Trying to fetch storage pool a2e605c9-b2ac-4dd9-9442-a666debbfc35 from libvirt
2021-05-29 07:07:03,423 INFO [cloud.serializer.GsonHelper] (Agent-Handler-1:null) (logid:) Default Builder inited.
2021-05-29 07:07:03,450 INFO [cloud.agent.Agent] (Agent-Handler-2:null) (logid:) Proccess agent startup answer, agent id = 0
2021-05-29 07:07:03,451 INFO [cloud.agent.Agent] (Agent-Handler-2:null) (logid:) Set agent id 0
2021-05-29 07:07:03,452 INFO [cloud.agent.Agent] (AgentShutdownThread:null) (logid:) Stopping the agent: Reason = sig.kill
2021-05-29 07:07:03,457 INFO [cloud.agent.Agent] (Agent-Handler-2:null) (logid:) Startup Response Received: agent id = 0
2021-05-29 07:07:15,040 INFO [cloud.agent.AgentShell] (main:null) (logid:) Agent started
2021-05-29 07:07:15,044 INFO [cloud.agent.AgentShell] (main:null) (logid:) Implementation Version is 4.15.0.0
2021-05-29 07:07:15,045 INFO [cloud.agent.AgentShell] (main:null) (logid:) agent.properties found at /etc/cloudstack/agent/agent.properties
2021-05-29 07:07:15,055 INFO [cloud.agent.AgentShell] (main:null) (logid:) Defaulting to using properties file for storage
2021-05-29 07:07:15,055 INFO [cloud.agent.AgentShell] (main:null) (logid:) Defaulting to the constant time backoff algorithm
2021-05-29 07:07:15,057 INFO [cloud.utils.LogUtils] (main:null) (logid:) log4j configuration found at /etc/cloudstack/agent/log4j-cloud.xml
2021-05-29 07:07:15,066 INFO [cloud.agent.AgentShell] (main:null) (logid:) Using default Java settings for IPv6 preference for agent connection
2021-05-29 07:07:15,131 INFO [cloud.agent.Agent] (main:null) (logid:) id is 0
2021-05-29 07:07:15,139 ERROR [kvm.resource.LibvirtComputingResource] (main:null) (logid:) uefi properties file not found due to: Unable to find file uefi.properties.
2021-05-29 07:07:15,172 INFO [kvm.resource.LibvirtConnection] (main:null) (logid:) No existing libvirtd connection found. Opening a new one
2021-05-29 07:07:15,313 INFO [kvm.resource.LibvirtComputingResource] (main:null) (logid:) No libvirt.vif.driver specified. Defaults to BridgeVifDriver.
2021-05-29 07:07:15,424 INFO [kvm.resource.LibvirtComputingResource] (main:null) (logid:) iscsi session clean up is disabled
2021-05-29 07:07:15,434 INFO [cloud.agent.Agent] (main:null) (logid:) Agent [id = 0 : type = LibvirtComputingResource : zone = 85b30a41-6416-4ad2-8ceb-2c6a52bf9de5 : pod = 632d2e63-e32e-4777-a8b1-9979c7cc1d71 : workers = 5 : host = 192.168.70.114 : port = 8250
2021-05-29 07:07:15,441 INFO [utils.nio.NioClient] (main:null) (logid:) Connecting to 192.168.70.114:8250
2021-05-29 07:07:15,444 INFO [utils.nio.Link] (main:null) (logid:) Conf file found: /etc/cloudstack/agent/agent.properties
2021-05-29 07:07:15,459 WARN [utils.nio.Link] (main:null) (logid:) Failed to load keystore, using trust all manager
2021-05-29 07:07:15,592 INFO [utils.nio.NioClient] (main:null) (logid:) SSL: Handshake done
2021-05-29 07:07:15,593 INFO [utils.nio.NioClient] (main:null) (logid:) Connected to 192.168.70.114:8250
2021-05-29 07:07:15,601 INFO [utils.linux.KVMHostInfo] (Agent-Handler-1:null) (logid:) Could not read cpuinfo_max_freq, falling back on libvirt
2021-05-29 07:07:15,632 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) (logid:) Attempting to create storage pool a2e605c9-b2ac-4dd9-9442-a666debbfc35 (Filesystem) in libvirt
2021-05-29 07:07:15,635 ERROR [kvm.resource.LibvirtConnection] (Agent-Handler-1:null) (logid:) Connection with libvirtd is broken: invalid connection pointer in virConnectGetVersion
2021-05-29 07:07:15,637 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) (logid:) Found existing defined storage pool a2e605c9-b2ac-4dd9-9442-a666debbfc35, using it.
2021-05-29 07:07:15,637 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) (logid:) Trying to fetch storage pool a2e605c9-b2ac-4dd9-9442-a666debbfc35 from libvirt
2021-05-29 07:07:15,676 INFO [cloud.serializer.GsonHelper] (Agent-Handler-1:null) (logid:) Default Builder inited.
2021-05-29 07:07:15,703 INFO [cloud.agent.Agent] (Agent-Handler-2:null) (logid:) Proccess agent startup answer, agent id = 0
2021-05-29 07:07:15,703 INFO [cloud.agent.Agent] (Agent-Handler-2:null) (logid:) Set agent id 0
2021-05-29 07:07:15,706 INFO [cloud.agent.Agent] (AgentShutdownThread:null) (logid:) Stopping the agent: Reason = sig.kill
2021-05-29 07:07:15,710 INFO [cloud.agent.Agent] (Agent-Handler-2:null) (logid:) Startup Response Received: agent id = 0
STEPS TO REPRODUCE
virsh qemu and KVM are fully functionnal we were able to start a VM and destroy it using virsh !
EXPECTED RESULTS
We want to be able to add the KVM hosts inside cloudstack and we don't manage to get the agent working
ACTUAL RESULTS
we crash loop with this error :
ERROR [kvm.resource.LibvirtConnection] (Agent-Handler-1:null) (logid:) Connection with libvirtd is broken: invalid connection pointer in virConnectGetVersion