jonathaanbastin opened a new issue, #11552:
URL: https://github.com/apache/cloudstack/issues/11552
### problem
If you upgrade the Ubuntu KVM cloustack-agent to 4.21.0.0 it longer power of
or redeployes.
`2025-09-01 15:42:44,488 INFO [kvm.resource.LibvirtConnection]
(AgentRequest-Handler-4:[]) (logid:b0554662) No existing libvirtd connection
found. Opening a new one
2025-09-01 15:42:44,490 WARN [kvm.resource.LibvirtConnection]
(AgentRequest-Handler-4:[]) (logid:b0554662) Can not find a connection for
Instance s-14814-VM. Assuming the default connection.
2025-09-01 15:42:44,607 WARN [kvm.resource.LibvirtKvmAgentHook]
(AgentRequest-Handler-4:[]) (logid:b0554662) Groovy script
'/etc/cloudstack/agent/hooks/libvirt-vm-state-change.groovy' is not available.
Transformations will not be applied.
2025-09-01 15:42:44,607 WARN [kvm.resource.LibvirtKvmAgentHook]
(AgentRequest-Handler-4:[]) (logid:b0554662) Shell script
'/etc/cloudstack/agent/hooks/libvirt-vm-state-change.sh' is not available.
Transformations will not be applied.
2025-09-01 15:42:44,607 WARN [kvm.resource.LibvirtKvmAgentHook]
(AgentRequest-Handler-4:[]) (logid:b0554662) Groovy scripting engine is not
initialized. Data transformation skipped.
2025-09-01 15:43:11,433 WARN [kvm.resource.LibvirtComputingResource]
(AgentRequest-Handler-2:[]) (logid:b0554662) Setting System VM's [VM {id:
"14814", name: "s-14814-VM", uuid: "6f242aaa-bb01-408b-9991-5818c70ab7f7",
type: "SecondaryStorageVm"}] current memory as max memory [524288].
2025-09-01 15:43:11,435 INFO [kvm.storage.LibvirtStorageAdaptor]
(AgentRequest-Handler-2:[]) (logid:b0554662) Trying to fetch storage pool
11838e6d-4476-32dd-9c19-f884dedd79b4 from libvirt
2025-09-01 15:43:11,473 INFO [kvm.storage.LibvirtStorageAdaptor]
(AgentRequest-Handler-2:[]) (logid:b0554662) Trying to fetch storage pool
11838e6d-4476-32dd-9c19-f884dedd79b4 from libvirt
2025-09-01 15:43:11,528 INFO [kvm.storage.LibvirtStorageAdaptor]
(AgentRequest-Handler-2:[]) (logid:b0554662) Trying to fetch storage pool
11838e6d-4476-32dd-9c19-f884dedd79b4 from libvirt
2025-09-01 15:43:11,538 WARN [cloud.agent.Agent]
(AgentRequest-Handler-2:[]) (logid:b0554662) Caught:
java.lang.NullPointerException: Cannot invoke "java.net.URI.getScheme()"
because "uri" is null
at
com.cloud.network.Networks$BroadcastDomainType.getSchemeValue(Networks.java:180)
at
com.cloud.network.Networks$BroadcastDomainType.getValue(Networks.java:234)
at
com.cloud.hypervisor.kvm.resource.BridgeVifDriver.plug(BridgeVifDriver.java:258)
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.createVif(LibvirtComputingResource.java:3816)
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.createVifs(LibvirtComputingResource.java:3395)
at
com.cloud.hypervisor.kvm.resource.wrapper.LibvirtStartCommandWrapper.execute(LibvirtStartCommandWrapper.java:86)
at
com.cloud.hypervisor.kvm.resource.wrapper.LibvirtStartCommandWrapper.execute(LibvirtStartCommandWrapper.java:52)
at
com.cloud.hypervisor.kvm.resource.wrapper.LibvirtRequestWrapper.execute(LibvirtRequestWrapper.java:78)
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:2240)
at com.cloud.agent.Agent.processRequest(Agent.java:813)
at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:1295)
at com.cloud.utils.nio.Task.call(Task.java:83)
at com.cloud.utils.nio.Task.call(Task.java:29)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
`
### versions
Cloudstack Management on 4.21.0.0
Ubuntu 24.04 on both Management and Host
Advanced networking selected without security groups
Secondary storage using NFS
### The steps to reproduce the bug
1. Upgrade cloudstack-agent to 4.21.0.0 stop secondarystoragevm then start
again
2. Also breaks on redeploy
To fix the issue roll cloudstack-agent back to 4.20.0.1
### What to do about it?
_No response_
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]