You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by María Noelia Gil <ma...@um.es> on 2014/03/01 21:21:58 UTC

KVM

Hi, I'm throwing the CloudStack agent with "CloudStack-setup-agent" command. Initially shows "OK" and the configuration of the interface is unchanged, but the server can not find the agent. I have looked at the log file and I found the following line: 

02/27/2014 17:49:16,538 INFO [cloud.agent.Agent] (AgentShutdownThread: null) Stopping the agent: Reason = sig.kill 

Can this be the problem? How can I fix this?

Thanks.

Re: KVM

Posted by María Noelia Gil <ma...@um.es>.
I am using ubuntu 12.04. Libvirt version which is installed using "apt-get install libvirt-bin”.

I tried installing libvirt 0.9.10, but requires installing gnutls and I can not install this package.

El 03/03/2014, a las 00:45, Nux! <nu...@li.nux.ro> escribió:

> What distribution are you running there? Libvirt seems quite old. Current libvirt in CentOS 6 is 0.10.2.


Re: KVM

Posted by Nux! <nu...@li.nux.ro>.
On 02.03.2014 23:40, María Noelia Gil wrote:
> (main:null) LibVirt version 0.9.10 required for guest cpu mode, but
> version 0.9.8 detected, so it will be disabled

Maria,

What distribution are you running there? Libvirt seems quite old. 
Current libvirt in CentOS 6 is 0.10.2.

Lucian

-- 
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro

Re: KVM

Posted by María Noelia Gil <ma...@um.es>.
Sorry, I have enabled the debug mode. Then I show a message that I found interesting: 

2014-03-03 20:24:07,979 DEBUG [kvm.resource.LibvirtComputingResource] (main:null) failing to get physical interface from bridge virbr0, did not find an eth*, bond*, vlan*, em*, or p*p* in /sys/devices/virtual/net/virbr0/brif

And at the end of the log file shows the following:

2014-03-03 20:24:08,968 DEBUG [cloud.agent.Agent] (Agent-Handler-1:null) Startup task created
2014-03-03 20:24:09,051 DEBUG [cloud.agent.Agent] (Agent-Handler-2:null) Received response: Seq 0-0:  { Ans: , MgmtId: 268749063393642, via: -1, Ver: v1, Flags: 100000, [{"com.cloud.agent.api.StartupAnswer":{"hostId":0,"pingInterval":60,"result":true,"wait":0}}] }
2014-03-03 20:24:09,052 DEBUG [cloud.agent.Agent] (Agent-Handler-2:null) Startup task cancelled
2014-03-03 20:24:09,052 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Proccess agent startup answer, agent id = 0
2014-03-03 20:24:09,052 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Set agent id 0
2014-03-03 20:24:09,062 DEBUG [cloud.agent.Agent] (Agent-Handler-2:null) Adding a watch list
2014-03-03 20:24:09,062 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Startup Response Received: agent id = 0
2014-03-03 20:24:09,063 DEBUG [cloud.agent.Agent] (agentRequest-Handler-1:null) Request:Seq -1--1:  { Cmd , MgmtId: -1, via: -1, Ver: v1, Flags: 111, [{"com.cloud.agent.api.ReadyCommand":{"_details":"java.lang.IllegalArgumentException: Host ***.***.***.*** sent incorrect data center: default","wait":0}}] }
2014-03-03 20:24:09,064 DEBUG [cloud.agent.Agent] (agentRequest-Handler-1:null) Processing command: com.cloud.agent.api.ReadyCommand
2014-03-03 20:24:09,064 DEBUG [cloud.agent.Agent] (agentRequest-Handler-1:null) Not ready to connect to mgt server: java.lang.IllegalArgumentException: Host ***.***.***.*** sent incorrect data center: default
2014-03-03 20:24:09,064 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) Stopping the agent: Reason = sig.kill
2014-03-03 20:24:09,065 DEBUG [cloud.agent.Agent] (AgentShutdownThread:null) Sending shutdown to management server
2014-03-03 20:24:09,065 DEBUG [kvm.resource.LibvirtComputingResource] (UgentTask-1:null) Executing: /usr/share/cloudstack-common/scripts/vm/network/security_group.py get_rule_logs_for_vms 
2014-03-03 20:24:09,149 DEBUG [kvm.resource.LibvirtComputingResource] (UgentTask-1:null) Execution is successful.
2014-03-03 20:24:09,151 DEBUG [cloud.agent.Agent] (UgentTask-1:null) Sending ping: Seq 0-1:  { Cmd , MgmtId: -1, via: 0, Ver: v1, Flags: 11, [{"com.cloud.agent.api.PingRoutingWithNwGroupsCommand":{"newGroupStates":{},"newStates":{},"_gatewayAccessible":true,"_vnetAccessible":true,"hostType":"Routing","hostId":0,"wait":0}}] }

Thanks.

El 03/03/2014, a las 01:09, Marcus <sh...@gmail.com> escribió:

> It doesn't look like you've enabled debug, you're only getting WARN
> and INFO messages. Please enable debug.
> 
> On Sun, Mar 2, 2014 at 4:40 PM, María Noelia Gil <ma...@um.es> wrote:
>> When I run "CloudStack-setup-agent" shows the following:
>> 
>> 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!
>> 
>> The log file displays the following.
>> 
>> 2014-03-03 00:32:44,320 INFO  [cloud.agent.AgentShell] (main:null) Agent started
>> 2014-03-03 00:32:44,321 INFO  [cloud.agent.AgentShell] (main:null) Implementation Version is 4.2.1
>> 2014-03-03 00:32:44,322 INFO  [cloud.agent.AgentShell] (main:null) agent.properties found at /etc/cloudstack/agent/agent.properties
>> 2014-03-03 00:32:44,323 INFO  [cloud.agent.AgentShell] (main:null) Defaulting to using properties file for storage
>> 2014-03-03 00:32:44,324 INFO  [cloud.agent.AgentShell] (main:null) Defaulting to the constant time backoff algorithm
>> 2014-03-03 00:32:44,326 INFO  [cloud.utils.LogUtils] (main:null) log4j configuration found at /etc/cloudstack/agent/log4j-cloud.xml
>> 2014-03-03 00:32:44,384 INFO  [cloud.agent.Agent] (main:null) id is 0
>> 2014-03-03 00:32:44,396 INFO  [resource.virtualnetwork.VirtualRoutingResource] (main:null) VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
>> 2014-03-03 00:32:45,020 WARN  [kvm.resource.LibvirtComputingResource] (main:null) LibVirt version 0.9.10 required for guest cpu mode, but version 0.9.8 detected, so it will be disabled
>> 2014-03-03 00:32:45,114 INFO  [kvm.resource.LibvirtComputingResource] (main:null) No libvirt.vif.driver specified. Defaults to BridgeVifDriver.
>> 2014-03-03 00:32:45,145 INFO  [cloud.agent.Agent] (main:null) Agent [id = 0 : type = LibvirtComputingResource : zone = default : pod = default : workers = 5 : host = localhost : port = 8250
>> 2014-03-03 00:32:45,154 INFO  [utils.nio.NioClient] (Agent-Selector:null) Connecting to localhost:8250
>> 2014-03-03 00:32:45,333 INFO  [utils.nio.NioClient] (Agent-Selector:null) SSL: Handshake done
>> 2014-03-03 00:32:45,334 INFO  [utils.nio.NioClient] (Agent-Selector:null) Connected to localhost:8250
>> 2014-03-03 00:32:45,662 INFO  [cloud.serializer.GsonHelper] (Agent-Handler-1:null) Default Builder inited.
>> 2014-03-03 00:32:45,733 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Proccess agent startup answer, agent id = 0
>> 2014-03-03 00:32:45,733 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Set agent id 0
>> 2014-03-03 00:32:45,737 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) Stopping the agent: Reason = sig.kill
>> 2014-03-03 00:32:45,738 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Startup Response Received: agent id = 0
>> 
>> I do not get to fix the error.
>> 
>> Thanks.
>> 
>> El 02/03/2014, a las 00:25, Marcus <sh...@gmail.com> escribió:
>> 
>>> changing
>> 


Re: KVM

Posted by Fernando Guillén Camba <fe...@usc.es>.
You could add the following ppa and upgrade to a more recent version of 
libvirt:

https://launchpad.net/~pdffs/+archive/precise-virt



El 03/03/14 21:51, María Noelia Gil escribió:
> I forgot to add the following line:
>
> 2014-03-03 20:24:07,964 WARN  [kvm.resource.LibvirtComputingResource] (main:null) LibVirt version 0.9.10 required for guest cpu mode, but version 0.9.8 detected, so it will be disabled
>
> El 03/03/2014, a las 01:09, Marcus <sh...@gmail.com> escribió:
>
>> It doesn't look like you've enabled debug, you're only getting WARN
>> and INFO messages. Please enable debug.
>>
>> On Sun, Mar 2, 2014 at 4:40 PM, María Noelia Gil <ma...@um.es> wrote:
>>> When I run "CloudStack-setup-agent" shows the following:
>>>
>>> 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!
>>>
>>> The log file displays the following.
>>>
>>> 2014-03-03 00:32:44,320 INFO  [cloud.agent.AgentShell] (main:null) Agent started
>>> 2014-03-03 00:32:44,321 INFO  [cloud.agent.AgentShell] (main:null) Implementation Version is 4.2.1
>>> 2014-03-03 00:32:44,322 INFO  [cloud.agent.AgentShell] (main:null) agent.properties found at /etc/cloudstack/agent/agent.properties
>>> 2014-03-03 00:32:44,323 INFO  [cloud.agent.AgentShell] (main:null) Defaulting to using properties file for storage
>>> 2014-03-03 00:32:44,324 INFO  [cloud.agent.AgentShell] (main:null) Defaulting to the constant time backoff algorithm
>>> 2014-03-03 00:32:44,326 INFO  [cloud.utils.LogUtils] (main:null) log4j configuration found at /etc/cloudstack/agent/log4j-cloud.xml
>>> 2014-03-03 00:32:44,384 INFO  [cloud.agent.Agent] (main:null) id is 0
>>> 2014-03-03 00:32:44,396 INFO  [resource.virtualnetwork.VirtualRoutingResource] (main:null) VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
>>> 2014-03-03 00:32:45,020 WARN  [kvm.resource.LibvirtComputingResource] (main:null) LibVirt version 0.9.10 required for guest cpu mode, but version 0.9.8 detected, so it will be disabled
>>> 2014-03-03 00:32:45,114 INFO  [kvm.resource.LibvirtComputingResource] (main:null) No libvirt.vif.driver specified. Defaults to BridgeVifDriver.
>>> 2014-03-03 00:32:45,145 INFO  [cloud.agent.Agent] (main:null) Agent [id = 0 : type = LibvirtComputingResource : zone = default : pod = default : workers = 5 : host = localhost : port = 8250
>>> 2014-03-03 00:32:45,154 INFO  [utils.nio.NioClient] (Agent-Selector:null) Connecting to localhost:8250
>>> 2014-03-03 00:32:45,333 INFO  [utils.nio.NioClient] (Agent-Selector:null) SSL: Handshake done
>>> 2014-03-03 00:32:45,334 INFO  [utils.nio.NioClient] (Agent-Selector:null) Connected to localhost:8250
>>> 2014-03-03 00:32:45,662 INFO  [cloud.serializer.GsonHelper] (Agent-Handler-1:null) Default Builder inited.
>>> 2014-03-03 00:32:45,733 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Proccess agent startup answer, agent id = 0
>>> 2014-03-03 00:32:45,733 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Set agent id 0
>>> 2014-03-03 00:32:45,737 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) Stopping the agent: Reason = sig.kill
>>> 2014-03-03 00:32:45,738 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Startup Response Received: agent id = 0
>>>
>>> I do not get to fix the error.
>>>
>>> Thanks.
>>>
>>> El 02/03/2014, a las 00:25, Marcus <sh...@gmail.com> escribió:
>>>
>>>> changing
>


-- 
Fernando Guillén Camba
Unidade de Xestión de Infraestruturas TIC
Centro de Investigación en Tecnoloxías da Información (CITIUS)
Teléfono: 8818 16409
Correo: citius.tic@usc.es


Re: KVM

Posted by María Noelia Gil <ma...@um.es>.
I forgot to add the following line:

2014-03-03 20:24:07,964 WARN  [kvm.resource.LibvirtComputingResource] (main:null) LibVirt version 0.9.10 required for guest cpu mode, but version 0.9.8 detected, so it will be disabled

El 03/03/2014, a las 01:09, Marcus <sh...@gmail.com> escribió:

> It doesn't look like you've enabled debug, you're only getting WARN
> and INFO messages. Please enable debug.
> 
> On Sun, Mar 2, 2014 at 4:40 PM, María Noelia Gil <ma...@um.es> wrote:
>> When I run "CloudStack-setup-agent" shows the following:
>> 
>> 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!
>> 
>> The log file displays the following.
>> 
>> 2014-03-03 00:32:44,320 INFO  [cloud.agent.AgentShell] (main:null) Agent started
>> 2014-03-03 00:32:44,321 INFO  [cloud.agent.AgentShell] (main:null) Implementation Version is 4.2.1
>> 2014-03-03 00:32:44,322 INFO  [cloud.agent.AgentShell] (main:null) agent.properties found at /etc/cloudstack/agent/agent.properties
>> 2014-03-03 00:32:44,323 INFO  [cloud.agent.AgentShell] (main:null) Defaulting to using properties file for storage
>> 2014-03-03 00:32:44,324 INFO  [cloud.agent.AgentShell] (main:null) Defaulting to the constant time backoff algorithm
>> 2014-03-03 00:32:44,326 INFO  [cloud.utils.LogUtils] (main:null) log4j configuration found at /etc/cloudstack/agent/log4j-cloud.xml
>> 2014-03-03 00:32:44,384 INFO  [cloud.agent.Agent] (main:null) id is 0
>> 2014-03-03 00:32:44,396 INFO  [resource.virtualnetwork.VirtualRoutingResource] (main:null) VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
>> 2014-03-03 00:32:45,020 WARN  [kvm.resource.LibvirtComputingResource] (main:null) LibVirt version 0.9.10 required for guest cpu mode, but version 0.9.8 detected, so it will be disabled
>> 2014-03-03 00:32:45,114 INFO  [kvm.resource.LibvirtComputingResource] (main:null) No libvirt.vif.driver specified. Defaults to BridgeVifDriver.
>> 2014-03-03 00:32:45,145 INFO  [cloud.agent.Agent] (main:null) Agent [id = 0 : type = LibvirtComputingResource : zone = default : pod = default : workers = 5 : host = localhost : port = 8250
>> 2014-03-03 00:32:45,154 INFO  [utils.nio.NioClient] (Agent-Selector:null) Connecting to localhost:8250
>> 2014-03-03 00:32:45,333 INFO  [utils.nio.NioClient] (Agent-Selector:null) SSL: Handshake done
>> 2014-03-03 00:32:45,334 INFO  [utils.nio.NioClient] (Agent-Selector:null) Connected to localhost:8250
>> 2014-03-03 00:32:45,662 INFO  [cloud.serializer.GsonHelper] (Agent-Handler-1:null) Default Builder inited.
>> 2014-03-03 00:32:45,733 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Proccess agent startup answer, agent id = 0
>> 2014-03-03 00:32:45,733 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Set agent id 0
>> 2014-03-03 00:32:45,737 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) Stopping the agent: Reason = sig.kill
>> 2014-03-03 00:32:45,738 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Startup Response Received: agent id = 0
>> 
>> I do not get to fix the error.
>> 
>> Thanks.
>> 
>> El 02/03/2014, a las 00:25, Marcus <sh...@gmail.com> escribió:
>> 
>>> changing
>> 


Re: KVM

Posted by Marcus <sh...@gmail.com>.
It doesn't look like you've enabled debug, you're only getting WARN
and INFO messages. Please enable debug.

On Sun, Mar 2, 2014 at 4:40 PM, María Noelia Gil <ma...@um.es> wrote:
> When I run "CloudStack-setup-agent" shows the following:
>
> 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!
>
> The log file displays the following.
>
> 2014-03-03 00:32:44,320 INFO  [cloud.agent.AgentShell] (main:null) Agent started
> 2014-03-03 00:32:44,321 INFO  [cloud.agent.AgentShell] (main:null) Implementation Version is 4.2.1
> 2014-03-03 00:32:44,322 INFO  [cloud.agent.AgentShell] (main:null) agent.properties found at /etc/cloudstack/agent/agent.properties
> 2014-03-03 00:32:44,323 INFO  [cloud.agent.AgentShell] (main:null) Defaulting to using properties file for storage
> 2014-03-03 00:32:44,324 INFO  [cloud.agent.AgentShell] (main:null) Defaulting to the constant time backoff algorithm
> 2014-03-03 00:32:44,326 INFO  [cloud.utils.LogUtils] (main:null) log4j configuration found at /etc/cloudstack/agent/log4j-cloud.xml
> 2014-03-03 00:32:44,384 INFO  [cloud.agent.Agent] (main:null) id is 0
> 2014-03-03 00:32:44,396 INFO  [resource.virtualnetwork.VirtualRoutingResource] (main:null) VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
> 2014-03-03 00:32:45,020 WARN  [kvm.resource.LibvirtComputingResource] (main:null) LibVirt version 0.9.10 required for guest cpu mode, but version 0.9.8 detected, so it will be disabled
> 2014-03-03 00:32:45,114 INFO  [kvm.resource.LibvirtComputingResource] (main:null) No libvirt.vif.driver specified. Defaults to BridgeVifDriver.
> 2014-03-03 00:32:45,145 INFO  [cloud.agent.Agent] (main:null) Agent [id = 0 : type = LibvirtComputingResource : zone = default : pod = default : workers = 5 : host = localhost : port = 8250
> 2014-03-03 00:32:45,154 INFO  [utils.nio.NioClient] (Agent-Selector:null) Connecting to localhost:8250
> 2014-03-03 00:32:45,333 INFO  [utils.nio.NioClient] (Agent-Selector:null) SSL: Handshake done
> 2014-03-03 00:32:45,334 INFO  [utils.nio.NioClient] (Agent-Selector:null) Connected to localhost:8250
> 2014-03-03 00:32:45,662 INFO  [cloud.serializer.GsonHelper] (Agent-Handler-1:null) Default Builder inited.
> 2014-03-03 00:32:45,733 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Proccess agent startup answer, agent id = 0
> 2014-03-03 00:32:45,733 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Set agent id 0
> 2014-03-03 00:32:45,737 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) Stopping the agent: Reason = sig.kill
> 2014-03-03 00:32:45,738 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Startup Response Received: agent id = 0
>
> I do not get to fix the error.
>
> Thanks.
>
> El 02/03/2014, a las 00:25, Marcus <sh...@gmail.com> escribió:
>
>> changing
>

Re: KVM

Posted by Marcus <sh...@gmail.com>.
It doesn't look like you've enabled debug, you're only getting WARN
and INFO messages. Please enable debug.

On Sun, Mar 2, 2014 at 4:40 PM, María Noelia Gil <ma...@um.es> wrote:
> When I run "CloudStack-setup-agent" shows the following:
>
> 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!
>
> The log file displays the following.
>
> 2014-03-03 00:32:44,320 INFO  [cloud.agent.AgentShell] (main:null) Agent started
> 2014-03-03 00:32:44,321 INFO  [cloud.agent.AgentShell] (main:null) Implementation Version is 4.2.1
> 2014-03-03 00:32:44,322 INFO  [cloud.agent.AgentShell] (main:null) agent.properties found at /etc/cloudstack/agent/agent.properties
> 2014-03-03 00:32:44,323 INFO  [cloud.agent.AgentShell] (main:null) Defaulting to using properties file for storage
> 2014-03-03 00:32:44,324 INFO  [cloud.agent.AgentShell] (main:null) Defaulting to the constant time backoff algorithm
> 2014-03-03 00:32:44,326 INFO  [cloud.utils.LogUtils] (main:null) log4j configuration found at /etc/cloudstack/agent/log4j-cloud.xml
> 2014-03-03 00:32:44,384 INFO  [cloud.agent.Agent] (main:null) id is 0
> 2014-03-03 00:32:44,396 INFO  [resource.virtualnetwork.VirtualRoutingResource] (main:null) VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
> 2014-03-03 00:32:45,020 WARN  [kvm.resource.LibvirtComputingResource] (main:null) LibVirt version 0.9.10 required for guest cpu mode, but version 0.9.8 detected, so it will be disabled
> 2014-03-03 00:32:45,114 INFO  [kvm.resource.LibvirtComputingResource] (main:null) No libvirt.vif.driver specified. Defaults to BridgeVifDriver.
> 2014-03-03 00:32:45,145 INFO  [cloud.agent.Agent] (main:null) Agent [id = 0 : type = LibvirtComputingResource : zone = default : pod = default : workers = 5 : host = localhost : port = 8250
> 2014-03-03 00:32:45,154 INFO  [utils.nio.NioClient] (Agent-Selector:null) Connecting to localhost:8250
> 2014-03-03 00:32:45,333 INFO  [utils.nio.NioClient] (Agent-Selector:null) SSL: Handshake done
> 2014-03-03 00:32:45,334 INFO  [utils.nio.NioClient] (Agent-Selector:null) Connected to localhost:8250
> 2014-03-03 00:32:45,662 INFO  [cloud.serializer.GsonHelper] (Agent-Handler-1:null) Default Builder inited.
> 2014-03-03 00:32:45,733 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Proccess agent startup answer, agent id = 0
> 2014-03-03 00:32:45,733 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Set agent id 0
> 2014-03-03 00:32:45,737 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) Stopping the agent: Reason = sig.kill
> 2014-03-03 00:32:45,738 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Startup Response Received: agent id = 0
>
> I do not get to fix the error.
>
> Thanks.
>
> El 02/03/2014, a las 00:25, Marcus <sh...@gmail.com> escribió:
>
>> changing
>

Re: KVM

Posted by María Noelia Gil <ma...@um.es>.
When I run "CloudStack-setup-agent" shows the following:

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!

The log file displays the following. 

2014-03-03 00:32:44,320 INFO  [cloud.agent.AgentShell] (main:null) Agent started
2014-03-03 00:32:44,321 INFO  [cloud.agent.AgentShell] (main:null) Implementation Version is 4.2.1
2014-03-03 00:32:44,322 INFO  [cloud.agent.AgentShell] (main:null) agent.properties found at /etc/cloudstack/agent/agent.properties
2014-03-03 00:32:44,323 INFO  [cloud.agent.AgentShell] (main:null) Defaulting to using properties file for storage
2014-03-03 00:32:44,324 INFO  [cloud.agent.AgentShell] (main:null) Defaulting to the constant time backoff algorithm
2014-03-03 00:32:44,326 INFO  [cloud.utils.LogUtils] (main:null) log4j configuration found at /etc/cloudstack/agent/log4j-cloud.xml
2014-03-03 00:32:44,384 INFO  [cloud.agent.Agent] (main:null) id is 0
2014-03-03 00:32:44,396 INFO  [resource.virtualnetwork.VirtualRoutingResource] (main:null) VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
2014-03-03 00:32:45,020 WARN  [kvm.resource.LibvirtComputingResource] (main:null) LibVirt version 0.9.10 required for guest cpu mode, but version 0.9.8 detected, so it will be disabled
2014-03-03 00:32:45,114 INFO  [kvm.resource.LibvirtComputingResource] (main:null) No libvirt.vif.driver specified. Defaults to BridgeVifDriver.
2014-03-03 00:32:45,145 INFO  [cloud.agent.Agent] (main:null) Agent [id = 0 : type = LibvirtComputingResource : zone = default : pod = default : workers = 5 : host = localhost : port = 8250
2014-03-03 00:32:45,154 INFO  [utils.nio.NioClient] (Agent-Selector:null) Connecting to localhost:8250
2014-03-03 00:32:45,333 INFO  [utils.nio.NioClient] (Agent-Selector:null) SSL: Handshake done
2014-03-03 00:32:45,334 INFO  [utils.nio.NioClient] (Agent-Selector:null) Connected to localhost:8250
2014-03-03 00:32:45,662 INFO  [cloud.serializer.GsonHelper] (Agent-Handler-1:null) Default Builder inited.
2014-03-03 00:32:45,733 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Proccess agent startup answer, agent id = 0
2014-03-03 00:32:45,733 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Set agent id 0
2014-03-03 00:32:45,737 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) Stopping the agent: Reason = sig.kill
2014-03-03 00:32:45,738 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Startup Response Received: agent id = 0

I do not get to fix the error.

Thanks.

El 02/03/2014, a las 00:25, Marcus <sh...@gmail.com> escribió:

> changing


Re: KVM

Posted by María Noelia Gil <ma...@um.es>.
When I run "CloudStack-setup-agent" shows the following:

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!

The log file displays the following. 

2014-03-03 00:32:44,320 INFO  [cloud.agent.AgentShell] (main:null) Agent started
2014-03-03 00:32:44,321 INFO  [cloud.agent.AgentShell] (main:null) Implementation Version is 4.2.1
2014-03-03 00:32:44,322 INFO  [cloud.agent.AgentShell] (main:null) agent.properties found at /etc/cloudstack/agent/agent.properties
2014-03-03 00:32:44,323 INFO  [cloud.agent.AgentShell] (main:null) Defaulting to using properties file for storage
2014-03-03 00:32:44,324 INFO  [cloud.agent.AgentShell] (main:null) Defaulting to the constant time backoff algorithm
2014-03-03 00:32:44,326 INFO  [cloud.utils.LogUtils] (main:null) log4j configuration found at /etc/cloudstack/agent/log4j-cloud.xml
2014-03-03 00:32:44,384 INFO  [cloud.agent.Agent] (main:null) id is 0
2014-03-03 00:32:44,396 INFO  [resource.virtualnetwork.VirtualRoutingResource] (main:null) VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
2014-03-03 00:32:45,020 WARN  [kvm.resource.LibvirtComputingResource] (main:null) LibVirt version 0.9.10 required for guest cpu mode, but version 0.9.8 detected, so it will be disabled
2014-03-03 00:32:45,114 INFO  [kvm.resource.LibvirtComputingResource] (main:null) No libvirt.vif.driver specified. Defaults to BridgeVifDriver.
2014-03-03 00:32:45,145 INFO  [cloud.agent.Agent] (main:null) Agent [id = 0 : type = LibvirtComputingResource : zone = default : pod = default : workers = 5 : host = localhost : port = 8250
2014-03-03 00:32:45,154 INFO  [utils.nio.NioClient] (Agent-Selector:null) Connecting to localhost:8250
2014-03-03 00:32:45,333 INFO  [utils.nio.NioClient] (Agent-Selector:null) SSL: Handshake done
2014-03-03 00:32:45,334 INFO  [utils.nio.NioClient] (Agent-Selector:null) Connected to localhost:8250
2014-03-03 00:32:45,662 INFO  [cloud.serializer.GsonHelper] (Agent-Handler-1:null) Default Builder inited.
2014-03-03 00:32:45,733 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Proccess agent startup answer, agent id = 0
2014-03-03 00:32:45,733 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Set agent id 0
2014-03-03 00:32:45,737 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) Stopping the agent: Reason = sig.kill
2014-03-03 00:32:45,738 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Startup Response Received: agent id = 0

I do not get to fix the error.

Thanks.

El 02/03/2014, a las 00:25, Marcus <sh...@gmail.com> escribió:

> changing


Re: KVM

Posted by Marcus <sh...@gmail.com>.
Change the agent to debug mode by changing all 'INFO'  to 'DEBUG' in
/etc/cloudstack/agent/log4j.cloud, this will give you more info,
usually the agent can't find the required network config on the host
or something like that.

On Sat, Mar 1, 2014 at 1:21 PM, María Noelia Gil <ma...@um.es> wrote:
> Hi, I'm throwing the CloudStack agent with "CloudStack-setup-agent" command. Initially shows "OK" and the configuration of the interface is unchanged, but the server can not find the agent. I have looked at the log file and I found the following line:
>
> 02/27/2014 17:49:16,538 INFO [cloud.agent.Agent] (AgentShutdownThread: null) Stopping the agent: Reason = sig.kill
>
> Can this be the problem? How can I fix this?
>
> Thanks.

Re: KVM

Posted by Nux! <nu...@li.nux.ro>.
On 01.03.2014 20:21, María Noelia Gil wrote:
> Hi, I'm throwing the CloudStack agent with "CloudStack-setup-agent"
> command. Initially shows "OK" and the configuration of the interface
> is unchanged, but the server can not find the agent. I have looked at
> the log file and I found the following line:
> 
> 02/27/2014 17:49:16,538 INFO [cloud.agent.Agent]
> (AgentShutdownThread: null) Stopping the agent: Reason = sig.kill
> 
> Can this be the problem? How can I fix this?
> 
> Thanks.

Maria,

We need more logs. Also, you can add the host from the management 
interface, it will ask for user and ssh password.

Lucian

-- 
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro

Re: KVM

Posted by Marcus <sh...@gmail.com>.
Change the agent to debug mode by changing all 'INFO'  to 'DEBUG' in
/etc/cloudstack/agent/log4j.cloud, this will give you more info,
usually the agent can't find the required network config on the host
or something like that.

On Sat, Mar 1, 2014 at 1:21 PM, María Noelia Gil <ma...@um.es> wrote:
> Hi, I'm throwing the CloudStack agent with "CloudStack-setup-agent" command. Initially shows "OK" and the configuration of the interface is unchanged, but the server can not find the agent. I have looked at the log file and I found the following line:
>
> 02/27/2014 17:49:16,538 INFO [cloud.agent.Agent] (AgentShutdownThread: null) Stopping the agent: Reason = sig.kill
>
> Can this be the problem? How can I fix this?
>
> Thanks.