Hi Jayanth,
Thank you for reply.
The certificate problem I overcame setting the global
ca.plugin.root.auth.strictness=false.
After several changes and fixes, cloudstack agent doesn't start. Here is my
agent.properties in the host:
#Storage
#Mon Jul 01 15:25:54 UTC 2024
cluster=default
pod=default
resource=com.cloud.hypervisor.kvm.resource.LibvirtComputingResource
domr.scripts.dir=scripts/network/domr/kvm
host.cpu.manual.speed.mhz=1
hypervisor.type=kvm
port=8250
zone=default
local.storage.uuid=
host=10.0.1.1
guid="6553e7e1-1184-450f-8f04-551aced6820d"
host.manual.speed.mhz=3000
LibvirtComputingResource.id=0
network.bridge.type=openvswitch
workers=5
iscsi.session.cleanup.enabled=false
When I start cloudstack-agent.service, the service fails. Here is the log:
Jul 01 15:28:11 host1-kvm systemd[1]: cloudstack-agent.service: Scheduled
restart job, restart counter is at 349.
Jul 01 15:28:11 host1-kvm systemd[1]: Stopped CloudStack Agent.
Jul 01 15:28:11 host1-kvm systemd[1]: cloudstack-agent.service: Consumed
3.743s CPU time.
Jul 01 15:28:11 host1-kvm systemd[1]: Started CloudStack Agent.
Jul 01 15:28:11 host1-kvm java[55609]: log4j:WARN No appenders could be
found for logger (com.cloud.agent.AgentShell).
Jul 01 15:28:11 host1-kvm java[55609]: log4j:WARN Please initialize the
log4j system properly.
Jul 01 15:28:11 host1-kvm java[55609]: log4j:WARN See
http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Jul 01 15:28:11 host1-kvm java[55609]: INFO [cloud.agent.AgentShell]
(main:) (logid:) Agent started
Jul 01 15:28:11 host1-kvm java[55609]: INFO [cloud.agent.AgentShell]
(main:) (logid:) Implementation Version is 4.19.0.1
Jul 01 15:28:11 host1-kvm java[55609]: INFO [cloud.agent.AgentShell]
(main:) (logid:) agent.properties found at
/etc/cloudstack/agent/agent.properties
Jul 01 15:28:11 host1-kvm java[55609]: SLF4J: Failed to load class
"org.slf4j.impl.StaticLoggerBinder".
Jul 01 15:28:11 host1-kvm java[55609]: SLF4J: Defaulting to no-operation
(NOP) logger implementation
Jul 01 15:28:11 host1-kvm java[55609]: SLF4J: See
http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Jul 01 15:28:11 host1-kvm java[55609]: INFO [cloud.agent.AgentShell]
(main:) (logid:) Defaulting to using properties file for storage
Jul 01 15:28:11 host1-kvm java[55609]: INFO [cloud.agent.AgentShell]
(main:) (logid:) Defaulting to the constant time backoff algorithm
Jul 01 15:28:11 host1-kvm java[55609]: INFO [cloud.utils.LogUtils] (main:)
(logid:) log4j configuration found at /etc/cloudstack/agent/log4j-cloud.xml
Jul 01 15:28:11 host1-kvm java[55609]: INFO [cloud.agent.AgentShell]
(main:) (logid:) Using default Java settings for IPv6 preference for agent
connection
Jul 01 15:28:11 host1-kvm java[55609]: INFO [cloud.agent.Agent] (main:)
(logid:) id is 0
Jul 01 15:28:11 host1-kvm java[55609]: INFO
[cloud.resource.ServerResourceBase] (main:) (logid:) Trying to
autodiscover this resource's private network interface.
Jul 01 15:28:11 host1-kvm java[55609]: INFO
[cloud.resource.ServerResourceBase] (main:) (logid:) Using NIC
[name:cloudbr0 (cloudbr0)] as private NIC.
Jul 01 15:28:11 host1-kvm java[55609]: INFO
[kvm.resource.LibvirtComputingResource] (main:) (logid:) uefi.properties
file found at /etc/cloudstack/agent/uefi.properties
Jul 01 15:28:11 host1-kvm java[55609]: INFO
[kvm.resource.LibvirtComputingResource] (main:) (logid:)
guest.nvram.template.legacy = "/usr/share/OVMF/OVMF_VARS.fd"
Jul 01 15:28:11 host1-kvm java[55609]: INFO
[kvm.resource.LibvirtComputingResource] (main:) (logid:)
guest.loader.legacy = "/usr/share/OVMF/OVMF_CODE.secboot.fd"
Jul 01 15:28:11 host1-kvm java[55609]: INFO
[kvm.resource.LibvirtComputingResource] (main:) (logid:)
guest.nvram.template.secure = "/usr/share/OVMF/OVMF_VARS.ms.fd"
Jul 01 15:28:11 host1-kvm java[55609]: INFO
[kvm.resource.LibvirtComputingResource] (main:) (logid:)
guest.loader.secure ="/usr/share/OVMF/OVMF_VARS.ms.fd"
Jul 01 15:28:11 host1-kvm java[55609]: INFO
[kvm.resource.LibvirtComputingResource] (main:) (logid:) guest.nvram.path
= "/var/lib/libvirt/qemu/nvram"
Jul 01 15:28:11 host1-kvm java[55609]: INFO
[kvm.resource.LibvirtComputingResource] (main:) (logid:) Failed to find
keystore file: cloud.jks
Jul 01 15:28:11 host1-kvm java[55609]: INFO
[kvm.resource.LibvirtConnection] (main:) (logid:) No existing libvirtd
connection found. Opening a new one
Jul 01 15:28:11 host1-kvm java[55609]: libvirt: Network Driver error :
Network not found: no network with matching name 'default'
Jul 01 15:28:11 host1-kvm java[55609]: WARN
[kvm.resource.LibvirtComputingResource] (main:) (logid:) Ignoring libvirt
error.
Jul 01 15:28:11 host1-kvm java[55609]: org.libvirt.LibvirtException:
Network not found: no network with matching name 'default'
Jul 01 15:28:11 host1-kvm java[55609]: at
org.libvirt.ErrorHandler.processError(Unknown Source)
Jul 01 15:28:11 host1-kvm java[55609]: at
org.libvirt.ErrorHandler.processError(Unknown Source)
Jul 01 15:28:11 host1-kvm java[55609]: at
org.libvirt.Connect.networkLookupByName(Unknown Source)
Jul 01 15:28:11 host1-kvm java[55609]: at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.configure(LibvirtComputingResource.java:1136)
Jul 01 15:28:11 host1-kvm java[55609]: at
com.cloud.agent.Agent.<init>(Agent.java:193)
Jul 01 15:28:11 host1-kvm java[55609]: at
com.cloud.agent.AgentShell.launchNewAgent(AgentShell.java:452)
Jul 01 15:28:11 host1-kvm java[55609]: at
com.cloud.agent.AgentShell.launchAgentFromClassInfo(AgentShell.java:431)
Jul 01 15:28:11 host1-kvm java[55609]: at
com.cloud.agent.AgentShell.launchAgent(AgentShell.java:415)
Jul 01 15:28:11 host1-kvm java[55609]: at
com.cloud.agent.AgentShell.start(AgentShell.java:511)
Jul 01 15:28:11 host1-kvm java[55609]: at
com.cloud.agent.AgentShell.main(AgentShell.java:541)
Jul 01 15:28:11 host1-kvm java[55609]: INFO
[kvm.resource.LibvirtComputingResource] (main:) (logid:) IO uring driver
for Qemu: enabled
Jul 01 15:28:11 host1-kvm java[55609]: INFO
[kvm.storage.KVMStoragePoolManager] (main:) (logid:) adding storage
adaptor for com.cloud.hypervisor.kvm.storage.LinstorStorageAdaptor
Jul 01 15:28:11 host1-kvm java[55609]: INFO
[kvm.storage.KVMStoragePoolManager] (main:) (logid:) adding storage
adaptor for com.cloud.hypervisor.kvm.storage.StorPoolStorageAdaptor
Jul 01 15:28:11 host1-kvm java[55609]: WARN
[kvm.storage.KVMStoragePoolManager] (main:) (logid:) Duplicate
StorageAdaptor type PowerFlex, not loading
com.cloud.hypervisor.kvm.storage.ScaleIOStorageAdaptor
Jul 01 15:28:11 host1-kvm java[55609]: INFO
[kvm.storage.KVMStoragePoolManager] (main:) (logid:) adding storage
adaptor for com.cloud.hypervisor.kvm.storage.IscsiAdmStorageAdaptor
Jul 01 15:28:11 host1-kvm java[55609]: INFO
[kvm.storage.KVMStoragePoolManager] (main:) (logid:) adding storage
adaptor for com.cloud.hypervisor.kvm.storage.FiberChannelAdapter
Jul 01 15:28:11 host1-kvm java[55609]: INFO
[kvm.storage.MultipathSCSIAdapterBase] (main:) (logid:) Loaded
FiberChannelAdapter for StorageLayer
Jul 01 15:28:11 host1-kvm java[55609]: INFO
[kvm.resource.LibvirtComputingResource] (main:) (logid:) No
libvirt.vif.driver specified. Defaults to OvsVifDriver.
Jul 01 15:28:11 host1-kvm java[55609]: WARN [utils.script.Script] (main:)
(logid:) Execution of process [55709] for command [/bin/bash -c ip route |
grep 169.254.0.0/16 ] failed.
Jul 01 15:28:11 host1-kvm java[55609]: WARN [utils.script.Script] (main:)
(logid:) Process [55709] for command [/bin/bash -c ip route | grep
169.254.0.0/16 ] encountered the error: [].
Jul 01 15:28:11 host1-kvm java[55609]: WARN [utils.script.Script] (main:)
(logid:) Execution of process [55713] for command [/bin/bash -c ip address
add 169.254.0.1/255.255.0.0 dev cloud0;ip route add 169.254.0.0/16 dev
cloud0 src 169.254.0.1 ] failed.
Jul 01 15:28:11 host1-kvm java[55609]: WARN [utils.script.Script] (main:)
(logid:) Process [55713] for command [/bin/bash -c ip address add
169.254.0.1/255.255.0.0 dev cloud0;ip route add 169.254.0.0/16 dev cloud0
src 169.254.0.1 ] encountered the error: [RTNETLINK answers: File
existsError: Device for nexthop is not up.].
Jul 01 15:28:12 host1-kvm java[55609]: INFO [cloud.serializer.GsonHelper]
(main:) (logid:) Default Builder inited.
Jul 01 15:28:12 host1-kvm java[55609]: INFO
[kvm.resource.LibvirtComputingResource] (main:) (logid:) iscsi session
clean up is disabled
Jul 01 15:28:12 host1-kvm java[55609]: INFO
[kvm.resource.LibvirtComputingResource] (main:) (logid:) Skipping the
memory balloon stats period setting, since there are no VMs (active Libvirt
domains) on this host.
Jul 01 15:28:12 host1-kvm java[55609]: INFO
[kvm.resource.LibvirtComputingResource] (main:) (logid:) The
[vm.memballoon.stats.period] property is set to '0', this prevents memory
statistics from being displayed correctly. Adjust (increase) the value of
this parameter to correct this.
Jul 01 15:28:12 host1-kvm java[55609]: INFO [cloud.agent.Agent] (main:)
(logid:) Agent [id = 0 : type = LibvirtComputingResource : zone = default :
pod = default : workers = 5 : host = 10.0.1.1 : port = 8250
Jul 01 15:28:12 host1-kvm java[55609]: INFO [utils.nio.NioClient] (main:)
(logid:) Connecting to 10.0.1.1:8250
Jul 01 15:28:12 host1-kvm java[55609]: INFO [utils.nio.Link] (main:)
(logid:) Conf file found: /etc/cloudstack/agent/agent.properties
Jul 01 15:28:12 host1-kvm java[55609]: WARN [utils.nio.Link] (main:)
(logid:) Failed to load keystore, using trust all manager
Jul 01 15:28:12 host1-kvm java[55609]: INFO [utils.nio.NioClient] (main:)
(logid:) SSL: Handshake done
Jul 01 15:28:12 host1-kvm java[55609]: INFO [utils.nio.NioClient] (main:)
(logid:) Connected to 10.0.1.1:8250
Jul 01 15:28:12 host1-kvm java[55609]: INFO
[kvm.resource.LibvirtComputingResource] (Agent-Handler-1:) (logid:) Host
uses control group [cgroup2fs].
Jul 01 15:28:12 host1-kvm java[55609]: INFO
[kvm.resource.LibvirtComputingResource] (Agent-Handler-1:) (logid:)
Calculating the max shares of the host.
Jul 01 15:28:12 host1-kvm java[55609]: INFO
[kvm.resource.LibvirtComputingResource] (Agent-Handler-1:) (logid:) The
max shares of the host is [16].
Jul 01 15:28:12 host1-kvm sudo[55750]: root : PWD=/ ; USER=root ;
COMMAND=/usr/bin/grep InitiatorName= /etc/iscsi/initiatorname.iscsi
Jul 01 15:28:12 host1-kvm sudo[55750]: pam_unix(sudo:session): session
opened for user root(uid=0) by (uid=0)
Jul 01 15:28:12 host1-kvm sudo[55750]: pam_unix(sudo:session): session
closed for user root
Jul 01 15:28:12 host1-kvm java[55609]: libvirt: Domain Config error :
invalid connection pointer in virConnectGetVersion
Jul 01 15:28:12 host1-kvm java[55609]:
* ERROR [kvm.resource.LibvirtConnection] (Agent-Handler-1:) (logid:)
Connection with libvirtd is broken: invalid connection pointer in
virConnectGetVersion*
Jul 01 15:28:12 host1-kvm java[55609]: INFO
[kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:) (logid:) Attempting
to create storage pool acf61505-38f5-425d-b1c6-071faa28b1fd (Filesystem) in
libvirt
Jul 01 15:28:12 host1-kvm java[55609]: libvirt: Storage Driver error :
Storage pool not found: no storage pool with matching uuid
'acf61505-38f5-425d-b1c6-071faa28b1fd'
Jul 01 15:28:12 host1-kvm java[55609]: WARN
[kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:) (logid:) Storage
pool acf61505-38f5-425d-b1c6-071faa28b1fd was not found running in libvirt.
Need to create it.
Jul 01 15:28:12 host1-kvm java[55609]: INFO
[kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:) (logid:) Didn't
find an existing storage pool acf61505-38f5-425d-b1c6-071faa28b1fd by UUID,
checking for pools with duplicate paths
Jul 01 15:28:12 host1-kvm java[55609]: INFO
[kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:) (logid:) Trying to
fetch storage pool acf61505-38f5-425d-b1c6-071faa28b1fd from libvirt
Jul 01 15:28:12 host1-kvm java[55609]: libvirt: error : internal error:
could not initialize domain event timer
Jul 01 15:28:12 host1-kvm java[55609]:
*ERROR [kvm.resource.LibvirtComputingResource] (Agent-Handler-1:) (logid:)
Failed to get libvirt connection for domain event lifecycle*
Jul 01 15:28:12 host1-kvm java[55609]: org.libvirt.LibvirtException:
internal error: could not initialize domain event timer
Jul 01 15:28:12 host1-kvm java[55609]: at
org.libvirt.ErrorHandler.processError(Unknown Source)
Jul 01 15:28:12 host1-kvm java[55609]: at
org.libvirt.ErrorHandler.processError(Unknown Source)
Jul 01 15:28:12 host1-kvm java[55609]: at
org.libvirt.Connect.domainEventRegister(Unknown Source)
Jul 01 15:28:12 host1-kvm java[55609]: at
org.libvirt.Connect.domainEventRegister(Unknown Source)
Jul 01 15:28:12 host1-kvm java[55609]: at
org.libvirt.Connect.addLifecycleListener(Unknown Source)
Jul 01 15:28:12 host1-kvm java[55609]: at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.setupLibvirtEventListener(LibvirtComputingResource.java:3712)
Jul 01 15:28:12 host1-kvm java[55609]: at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.createLocalStoragePool(LibvirtComputingResource.java:3692)
Jul 01 15:28:12 host1-kvm java[55609]: at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.initialize(LibvirtComputingResource.java:3636)
Jul 01 15:28:12 host1-kvm java[55609]: at
com.cloud.agent.Agent.sendStartup(Agent.java:460)
Jul 01 15:28:12 host1-kvm java[55609]: at
com.cloud.agent.Agent$ServerHandler.doTask(Agent.java:1125)
Jul 01 15:28:12 host1-kvm java[55609]: at
com.cloud.utils.nio.Task.call(Task.java:83)
Jul 01 15:28:12 host1-kvm java[55609]: at
com.cloud.utils.nio.Task.call(Task.java:29)
Jul 01 15:28:12 host1-kvm java[55609]: at
java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
Jul 01 15:28:12 host1-kvm java[55609]: at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
Jul 01 15:28:12 host1-kvm java[55609]: at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
Jul 01 15:28:12 host1-kvm java[55609]: at
java.base/java.lang.Thread.run(Thread.java:829)
Jul 01 15:28:12 host1-kvm java[55609]: INFO [cloud.agent.Agent]
(Agent-Handler-2:) (logid:) Process agent startup answer, agent id = 0
Jul 01 15:28:12 host1-kvm java[55609]: INFO [cloud.agent.Agent]
(Agent-Handler-2:) (logid:) Set agent id 0
Jul 01 15:28:12 host1-kvm java[55609]: INFO [cloud.agent.Agent]
(Agent-Handler-2:) (logid:) Startup Response Received: agent id = 0
Jul 01 15:28:12 host1-kvm java[55609]: INFO [cloud.agent.Agent]
(AgentShutdownThread:) (logid:) Stopping the agent: Reason = sig.kill
Jul 01 15:28:13 host1-kvm systemd[1]: cloudstack-agent.service: Main
process exited, code=exited, status=1/FAILURE
Jul 01 15:28:13 host1-kvm systemd[1]: cloudstack-agent.service: Failed with
result 'exit-code'.
Jul 01 15:28:13 host1-kvm systemd[1]: cloudstack-agent.service: Consumed
3.833s CPU time.
On Mon, Jul 1, 2024 at 11:40 AM Jayanth Babu A
<jayanth.b...@nxtgen.com.invalid> wrote:
Hi Jorge,
The community likes to be supportive as much as possible. Please let us
know where you’re stuck.
Is that the subject with “Certificate Problem using Ubuntu 22.04/Jammy:
===> unsupported certificate purpose”?
Regards,
Jayanth Reddy
From: Jorge Ventura <jorge.araujo.vent...@gmail.com>
Date: Monday, 1 July 2024 at 8:03 PM
To: users@cloudstack.apache.org <users@cloudstack.apache.org>
Subject: Install cloudstack 4.19 , TOTAL WASTE OF TIME
I expected a very mature product but it's not.
Absolute waste of time.
Disclaimer *** This e-mail contains PRIVILEGED AND CONFIDENTIAL
INFORMATION intended solely for the use of the addressee(s). If you are not
the intended recipient, please notify the sender by e-mail and delete the
original message. Further, you are not authorised to copy, disclose, or
distribute this e-mail or its contents to any other person and any such
actions are unlawful and strictly prohibited. This e-mail may contain
viruses. NxtGen Datacenter & Cloud Technologies Private Ltd (“NxtGen”) has
taken every reasonable precaution to minimize this risk but is not liable
for any damage you may sustain as a result of any virus in this e-mail. You
should carry out your own virus checks before opening the e-mail or
attachment. NxtGen reserves the right to monitor and review the content of
all messages sent to or from this e-mail address. Messages sent to or from
this e-mail address may be stored on the NxtGen e-mail system. *** End of
Disclaimer ***NXTGEN***