bragonznx opened a new issue #5051:
URL: https://github.com/apache/cloudstack/issues/5051
<!--
Verify first that your issue/request is not already reported on GitHub.
Always add information AFTER of these HTML comments, but no need to delete
the comments.
-->
##### ISSUE TYPE
<!-- Pick one below and delete the rest -->
* Bug Report
##### COMPONENT NAME
<!--
cloudstack-agent
-->
~~~
~~~
##### CLOUDSTACK VERSION
<!--
4.15
-->
~~~
~~~
##### CONFIGURATION
<!--
Network simple bridge
-->
##### 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
<!--
you just have to try to install KVM + Libvirt + cloudstack-agent on a fresh
ubuntu 20.04 setup
Do the configuration :
# cloudstack-setup-agent
Welcome to the CloudStack Agent Setup:
Please input the Management Server
Hostname/IP-Address:[localhost]192.168.70.114
Please input the Zone Id:[default]85b30a41-6416-xxxxxxx
Please input the Pod Id:[default]632d2e63-e32e-4777-xxxxxxx
Please input the Cluster Id:[default]c6234b13-41f3-4cf0-xxxxxxxxxx
Please input the Hypervisor type kvm/lxc:[kvm]kvm
Please choose which network used to create VM:[cloudbr0]
Starting to configure your system:
Configure Apparmor ... [OK]
Configure Network ... [OK]
Configure Libvirt ... [OK]
Configure Firewall ... [OK]
Configure Nfs ... [OK]
Configure cloudAgent ... [OK]
CloudStack Agent setup is done!
systemctl status cloudstack-agent
� cloudstack-agent.service - CloudStack Agent
Loaded: loaded (/lib/systemd/system/cloudstack-agent.service; enabled;
vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Sat
2021-05-29 07:06:15 UTC; 5s ago
Docs: http://www.cloudstack.org/
Process: 183455 ExecStart=/usr/bin/java $JAVA_OPTS $JAVA_DEBUG -cp
$CLASSPATH $JAVA_CLASS (code=exited, status=1/FAILURE)
Main PID: 183455 (code=exited, status=1/FAILURE)
-->
<!-- Paste example playbooks or commands between quotes below -->
~~~
~~~
<!-- You can also paste gist.github.com links for larger files -->
##### 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
<!-- What actually happened? -->
<!-- Paste verbatim command output between quotes below -->
~~~
~~~
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]