You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Serge Byishimo <se...@gmail.com> on 2021/05/21 09:26:54 UTC

Agent Error

Centos 8
Cloudstack 4.15


2021-05-21 05:25:13,312 INFO  [kvm.storage.LibvirtStorageAdaptor]
(agentRequest-Handler-5:null) (logid:5fb6ba1e) Trying to fetch storage pool
26a9efbf-fb80-3f0d-a292-43bd0a3eec9d from libvirt
2021-05-21 05:25:13,314 INFO  [kvm.storage.LibvirtStorageAdaptor]
(agentRequest-Handler-1:null) (logid:e0f54056) Trying to fetch storage pool
26a9efbf-fb80-3f0d-a292-43bd0a3eec9d from libvirt
2021-05-21 05:25:13,321 INFO  [kvm.storage.LibvirtStorageAdaptor]
(agentRequest-Handler-1:null) (logid:e0f54056) Creating volume
398d3b32-c842-44c7-9feb-5b14e33df9fb from template
30cf8eed-df4b-45fd-a73c-4719769dfd3e in pool
26a9efbf-fb80-3f0d-a292-43bd0a3eec9d (NetworkFilesystem) with size (0
bytes) 0
2021-05-21 05:25:13,322 INFO  [kvm.storage.LibvirtStorageAdaptor]
(agentRequest-Handler-1:null) (logid:e0f54056) Attempting to create volume
398d3b32-c842-44c7-9feb-5b14e33df9fb (NetworkFilesystem) in pool
26a9efbf-fb80-3f0d-a292-43bd0a3eec9d with size (2.44 GB) 2621440000
2021-05-21 05:25:13,634 INFO  [kvm.storage.LibvirtStorageAdaptor]
(agentRequest-Handler-3:null) (logid:e0f54056) Trying to fetch storage pool
26a9efbf-fb80-3f0d-a292-43bd0a3eec9d from libvirt
2021-05-21 05:25:13,643 INFO  [kvm.storage.LibvirtStorageAdaptor]
(agentRequest-Handler-3:null) (logid:e0f54056) Trying to fetch storage pool
26a9efbf-fb80-3f0d-a292-43bd0a3eec9d from libvirt
2021-05-21 05:25:13,660 WARN  [resource.wrapper.LibvirtStartCommandWrapper]
(agentRequest-Handler-3:null) (logid:e0f54056) InternalErrorException
com.cloud.exception.InternalErrorException: Failed to create vnet 200: ls:
cannot access '/sys/class/net//brif/': No such file or directoryCommand
line is not complete. Try option "help"ls: cannot access
'/sys/class/net//brif/': No such file or directoryFailed to add vlan:
br-200.200 to
at
com.cloud.hypervisor.kvm.resource.BridgeVifDriver.createVnet(BridgeVifDriver.java:325)
at
com.cloud.hypervisor.kvm.resource.BridgeVifDriver.createVnetBr(BridgeVifDriver.java:307)
at
com.cloud.hypervisor.kvm.resource.BridgeVifDriver.plug(BridgeVifDriver.java:227)
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.createVif(LibvirtComputingResource.java:2726)
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.createVifs(LibvirtComputingResource.java:2454)
at
com.cloud.hypervisor.kvm.resource.wrapper.LibvirtStartCommandWrapper.execute(LibvirtStartCommandWrapper.java:80)
at
com.cloud.hypervisor.kvm.resource.wrapper.LibvirtStartCommandWrapper.execute(LibvirtStartCommandWrapper.java:45)
at
com.cloud.hypervisor.kvm.resource.wrapper.LibvirtRequestWrapper.execute(LibvirtRequestWrapper.java:78)
at
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1643)
at com.cloud.agent.Agent.processRequest(Agent.java:661)
at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:1079)
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:1128)
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
2021-05-21 05:25:13,671 INFO  [kvm.storage.LibvirtStorageAdaptor]
(agentRequest-Handler-3:null) (logid:e0f54056) Trying to fetch storage pool
26a9efbf-fb80-3f0d-a292-43bd0a3eec9d from libvirt
2021-05-21 05:25:16,542 INFO  [kvm.resource.LibvirtConnection]
(agentRequest-Handler-2:null) (logid:5fb6ba1e) No existing libvirtd
connection found. Opening a new one
2021-05-21 05:25:16,545 WARN  [kvm.resource.LibvirtConnection]
(agentRequest-Handler-2:null) (logid:5fb6ba1e) Can not find a connection
for Instance v-20-VM. Assuming the default connection.
2021-05-21 05:25:16,738 WARN  [kvm.resource.LibvirtKvmAgentHook]
(agentRequest-Handler-2:null) (logid:5fb6ba1e) Groovy script
'/etc/cloudstack/agent/hooks/libvirt-vm-state-change.groovy' is not
available. Transformations will not be applied.
2021-05-21 05:25:16,738 WARN  [kvm.resource.LibvirtKvmAgentHook]
(agentRequest-Handler-2:null) (logid:5fb6ba1e) Groovy scripting engine is
not initialized. Data transformation skipped.
2021-05-21 05:25:16,784 INFO  [kvm.resource.LibvirtConnection]
(agentRequest-Handler-4:null) (logid:e0f54056) No existing libvirtd
connection found. Opening a new one
2021-05-21 05:25:16,785 WARN  [kvm.resource.LibvirtConnection]
(agentRequest-Handler-4:null) (logid:e0f54056) Can not find a connection
for Instance s-19-VM. Assuming the default connection.
2021-05-21 05:25:16,858 WARN  [kvm.resource.LibvirtKvmAgentHook]
(agentRequest-Handler-4:null) (logid:e0f54056) Groovy script
'/etc/cloudstack/agent/hooks/libvirt-vm-state-change.groovy' is not
available. Transformations will not be applied.

Re: Agent Error

Posted by Serge Byishimo <se...@gmail.com>.
Hi Edward,

Yes, the problem I'm seeing is that it is checking for "br-200" when in the
docs they tell us to create "cloudbr0",

Even when I create that bridge called "br-200", the next command in that
scripts throws this error : RTNETLINK answers: Device or resource busy

Even when the bridge is in state DOWN

Regards,

On Fri, May 21, 2021 at 4:01 PM Edward St Pierre <ed...@gmail.com>
wrote:

> Hi,
>
> Did you create the bridge interfaces on the hypervisor?
>
> com.cloud.exception.InternalErrorException: Failed to create vnet 200: ls:
> cannot access '/sys/class/net//brif/': No such file or directoryCommand
>
>
>
> On Fri, 21 May 2021 at 10:29, Serge Byishimo <se...@gmail.com>
> wrote:
>
> > Centos 8
> > Cloudstack 4.15
> >
> >
> > 2021-05-21 05:25:13,312 INFO  [kvm.storage.LibvirtStorageAdaptor]
> > (agentRequest-Handler-5:null) (logid:5fb6ba1e) Trying to fetch storage
> pool
> > 26a9efbf-fb80-3f0d-a292-43bd0a3eec9d from libvirt
> > 2021-05-21 05:25:13,314 INFO  [kvm.storage.LibvirtStorageAdaptor]
> > (agentRequest-Handler-1:null) (logid:e0f54056) Trying to fetch storage
> pool
> > 26a9efbf-fb80-3f0d-a292-43bd0a3eec9d from libvirt
> > 2021-05-21 05:25:13,321 INFO  [kvm.storage.LibvirtStorageAdaptor]
> > (agentRequest-Handler-1:null) (logid:e0f54056) Creating volume
> > 398d3b32-c842-44c7-9feb-5b14e33df9fb from template
> > 30cf8eed-df4b-45fd-a73c-4719769dfd3e in pool
> > 26a9efbf-fb80-3f0d-a292-43bd0a3eec9d (NetworkFilesystem) with size (0
> > bytes) 0
> > 2021-05-21 05:25:13,322 INFO  [kvm.storage.LibvirtStorageAdaptor]
> > (agentRequest-Handler-1:null) (logid:e0f54056) Attempting to create
> volume
> > 398d3b32-c842-44c7-9feb-5b14e33df9fb (NetworkFilesystem) in pool
> > 26a9efbf-fb80-3f0d-a292-43bd0a3eec9d with size (2.44 GB) 2621440000
> > 2021-05-21 05:25:13,634 INFO  [kvm.storage.LibvirtStorageAdaptor]
> > (agentRequest-Handler-3:null) (logid:e0f54056) Trying to fetch storage
> pool
> > 26a9efbf-fb80-3f0d-a292-43bd0a3eec9d from libvirt
> > 2021-05-21 05:25:13,643 INFO  [kvm.storage.LibvirtStorageAdaptor]
> > (agentRequest-Handler-3:null) (logid:e0f54056) Trying to fetch storage
> pool
> > 26a9efbf-fb80-3f0d-a292-43bd0a3eec9d from libvirt
> > 2021-05-21 05:25:13,660 WARN
> [resource.wrapper.LibvirtStartCommandWrapper]
> > (agentRequest-Handler-3:null) (logid:e0f54056) InternalErrorException
> > com.cloud.exception.InternalErrorException: Failed to create vnet 200:
> ls:
> > cannot access '/sys/class/net//brif/': No such file or directoryCommand
> > line is not complete. Try option "help"ls: cannot access
> > '/sys/class/net//brif/': No such file or directoryFailed to add vlan:
> > br-200.200 to
> > at
> >
> >
> com.cloud.hypervisor.kvm.resource.BridgeVifDriver.createVnet(BridgeVifDriver.java:325)
> > at
> >
> >
> com.cloud.hypervisor.kvm.resource.BridgeVifDriver.createVnetBr(BridgeVifDriver.java:307)
> > at
> >
> >
> com.cloud.hypervisor.kvm.resource.BridgeVifDriver.plug(BridgeVifDriver.java:227)
> > at
> >
> >
> com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.createVif(LibvirtComputingResource.java:2726)
> > at
> >
> >
> com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.createVifs(LibvirtComputingResource.java:2454)
> > at
> >
> >
> com.cloud.hypervisor.kvm.resource.wrapper.LibvirtStartCommandWrapper.execute(LibvirtStartCommandWrapper.java:80)
> > at
> >
> >
> com.cloud.hypervisor.kvm.resource.wrapper.LibvirtStartCommandWrapper.execute(LibvirtStartCommandWrapper.java:45)
> > at
> >
> >
> com.cloud.hypervisor.kvm.resource.wrapper.LibvirtRequestWrapper.execute(LibvirtRequestWrapper.java:78)
> > at
> >
> >
> com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1643)
> > at com.cloud.agent.Agent.processRequest(Agent.java:661)
> > at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:1079)
> > 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:1128)
> > at
> >
> >
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
> > at java.base/java.lang.Thread.run(Thread.java:829)
> > 2021-05-21 05:25:13,671 INFO  [kvm.storage.LibvirtStorageAdaptor]
> > (agentRequest-Handler-3:null) (logid:e0f54056) Trying to fetch storage
> pool
> > 26a9efbf-fb80-3f0d-a292-43bd0a3eec9d from libvirt
> > 2021-05-21 05:25:16,542 INFO  [kvm.resource.LibvirtConnection]
> > (agentRequest-Handler-2:null) (logid:5fb6ba1e) No existing libvirtd
> > connection found. Opening a new one
> > 2021-05-21 05:25:16,545 WARN  [kvm.resource.LibvirtConnection]
> > (agentRequest-Handler-2:null) (logid:5fb6ba1e) Can not find a connection
> > for Instance v-20-VM. Assuming the default connection.
> > 2021-05-21 05:25:16,738 WARN  [kvm.resource.LibvirtKvmAgentHook]
> > (agentRequest-Handler-2:null) (logid:5fb6ba1e) Groovy script
> > '/etc/cloudstack/agent/hooks/libvirt-vm-state-change.groovy' is not
> > available. Transformations will not be applied.
> > 2021-05-21 05:25:16,738 WARN  [kvm.resource.LibvirtKvmAgentHook]
> > (agentRequest-Handler-2:null) (logid:5fb6ba1e) Groovy scripting engine is
> > not initialized. Data transformation skipped.
> > 2021-05-21 05:25:16,784 INFO  [kvm.resource.LibvirtConnection]
> > (agentRequest-Handler-4:null) (logid:e0f54056) No existing libvirtd
> > connection found. Opening a new one
> > 2021-05-21 05:25:16,785 WARN  [kvm.resource.LibvirtConnection]
> > (agentRequest-Handler-4:null) (logid:e0f54056) Can not find a connection
> > for Instance s-19-VM. Assuming the default connection.
> > 2021-05-21 05:25:16,858 WARN  [kvm.resource.LibvirtKvmAgentHook]
> > (agentRequest-Handler-4:null) (logid:e0f54056) Groovy script
> > '/etc/cloudstack/agent/hooks/libvirt-vm-state-change.groovy' is not
> > available. Transformations will not be applied.
> >
>


-- 
Byishimo Shema Serge
Kigali, Rwanda
Tel: +250 786 076 106
www.serge.works

Re: Agent Error

Posted by Edward St Pierre <ed...@gmail.com>.
Hi,

Did you create the bridge interfaces on the hypervisor?

com.cloud.exception.InternalErrorException: Failed to create vnet 200: ls:
cannot access '/sys/class/net//brif/': No such file or directoryCommand



On Fri, 21 May 2021 at 10:29, Serge Byishimo <se...@gmail.com>
wrote:

> Centos 8
> Cloudstack 4.15
>
>
> 2021-05-21 05:25:13,312 INFO  [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-5:null) (logid:5fb6ba1e) Trying to fetch storage pool
> 26a9efbf-fb80-3f0d-a292-43bd0a3eec9d from libvirt
> 2021-05-21 05:25:13,314 INFO  [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-1:null) (logid:e0f54056) Trying to fetch storage pool
> 26a9efbf-fb80-3f0d-a292-43bd0a3eec9d from libvirt
> 2021-05-21 05:25:13,321 INFO  [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-1:null) (logid:e0f54056) Creating volume
> 398d3b32-c842-44c7-9feb-5b14e33df9fb from template
> 30cf8eed-df4b-45fd-a73c-4719769dfd3e in pool
> 26a9efbf-fb80-3f0d-a292-43bd0a3eec9d (NetworkFilesystem) with size (0
> bytes) 0
> 2021-05-21 05:25:13,322 INFO  [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-1:null) (logid:e0f54056) Attempting to create volume
> 398d3b32-c842-44c7-9feb-5b14e33df9fb (NetworkFilesystem) in pool
> 26a9efbf-fb80-3f0d-a292-43bd0a3eec9d with size (2.44 GB) 2621440000
> 2021-05-21 05:25:13,634 INFO  [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-3:null) (logid:e0f54056) Trying to fetch storage pool
> 26a9efbf-fb80-3f0d-a292-43bd0a3eec9d from libvirt
> 2021-05-21 05:25:13,643 INFO  [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-3:null) (logid:e0f54056) Trying to fetch storage pool
> 26a9efbf-fb80-3f0d-a292-43bd0a3eec9d from libvirt
> 2021-05-21 05:25:13,660 WARN  [resource.wrapper.LibvirtStartCommandWrapper]
> (agentRequest-Handler-3:null) (logid:e0f54056) InternalErrorException
> com.cloud.exception.InternalErrorException: Failed to create vnet 200: ls:
> cannot access '/sys/class/net//brif/': No such file or directoryCommand
> line is not complete. Try option "help"ls: cannot access
> '/sys/class/net//brif/': No such file or directoryFailed to add vlan:
> br-200.200 to
> at
>
> com.cloud.hypervisor.kvm.resource.BridgeVifDriver.createVnet(BridgeVifDriver.java:325)
> at
>
> com.cloud.hypervisor.kvm.resource.BridgeVifDriver.createVnetBr(BridgeVifDriver.java:307)
> at
>
> com.cloud.hypervisor.kvm.resource.BridgeVifDriver.plug(BridgeVifDriver.java:227)
> at
>
> com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.createVif(LibvirtComputingResource.java:2726)
> at
>
> com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.createVifs(LibvirtComputingResource.java:2454)
> at
>
> com.cloud.hypervisor.kvm.resource.wrapper.LibvirtStartCommandWrapper.execute(LibvirtStartCommandWrapper.java:80)
> at
>
> com.cloud.hypervisor.kvm.resource.wrapper.LibvirtStartCommandWrapper.execute(LibvirtStartCommandWrapper.java:45)
> at
>
> com.cloud.hypervisor.kvm.resource.wrapper.LibvirtRequestWrapper.execute(LibvirtRequestWrapper.java:78)
> at
>
> com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1643)
> at com.cloud.agent.Agent.processRequest(Agent.java:661)
> at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:1079)
> 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:1128)
> at
>
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
> at java.base/java.lang.Thread.run(Thread.java:829)
> 2021-05-21 05:25:13,671 INFO  [kvm.storage.LibvirtStorageAdaptor]
> (agentRequest-Handler-3:null) (logid:e0f54056) Trying to fetch storage pool
> 26a9efbf-fb80-3f0d-a292-43bd0a3eec9d from libvirt
> 2021-05-21 05:25:16,542 INFO  [kvm.resource.LibvirtConnection]
> (agentRequest-Handler-2:null) (logid:5fb6ba1e) No existing libvirtd
> connection found. Opening a new one
> 2021-05-21 05:25:16,545 WARN  [kvm.resource.LibvirtConnection]
> (agentRequest-Handler-2:null) (logid:5fb6ba1e) Can not find a connection
> for Instance v-20-VM. Assuming the default connection.
> 2021-05-21 05:25:16,738 WARN  [kvm.resource.LibvirtKvmAgentHook]
> (agentRequest-Handler-2:null) (logid:5fb6ba1e) Groovy script
> '/etc/cloudstack/agent/hooks/libvirt-vm-state-change.groovy' is not
> available. Transformations will not be applied.
> 2021-05-21 05:25:16,738 WARN  [kvm.resource.LibvirtKvmAgentHook]
> (agentRequest-Handler-2:null) (logid:5fb6ba1e) Groovy scripting engine is
> not initialized. Data transformation skipped.
> 2021-05-21 05:25:16,784 INFO  [kvm.resource.LibvirtConnection]
> (agentRequest-Handler-4:null) (logid:e0f54056) No existing libvirtd
> connection found. Opening a new one
> 2021-05-21 05:25:16,785 WARN  [kvm.resource.LibvirtConnection]
> (agentRequest-Handler-4:null) (logid:e0f54056) Can not find a connection
> for Instance s-19-VM. Assuming the default connection.
> 2021-05-21 05:25:16,858 WARN  [kvm.resource.LibvirtKvmAgentHook]
> (agentRequest-Handler-4:null) (logid:e0f54056) Groovy script
> '/etc/cloudstack/agent/hooks/libvirt-vm-state-change.groovy' is not
> available. Transformations will not be applied.
>