Re: cannot start agent on KVM/Ubuntu

2013-09-30 Thread Nguyen Anh Tu
2013/9/30 sebgoa 

>
>
> the script is there but according to the logs it seems to be looking for
> it in the /kvm directory which does not exist for me:
>
> 2013-09-30 08:39:21,977 INFO
>  [resource.virtualnetwork.VirtualRoutingResource] (main:null)
> VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
>

It's right. Check the agent.properties, it should be as following

# Location for KVM scripts
domr.scripts.dir=scripts/network/domr/kvm

Your log said:

2013-09-30 06:34:14,738 ERROR [cloud.agent.AgentShell] (main:null)
Unable to start agent: Failed to get private nic name

Check that you set private traffic label when deploying zone



-- 

N.g.U.y.e.N.A.n.H.t.U


Re: cannot start agent on KVM/Ubuntu

2013-09-30 Thread sebgoa

On Sep 30, 2013, at 5:17 PM, Nguyen Anh Tu  wrote:

> 2013/9/30 sebgoa 
> 
>> 
>> On Sep 30, 2013, at 5:07 PM, Nguyen Anh Tu  wrote:
>> 
>>> 2013/9/30 sebgoa 
>>> 
 2013-09-30 08:03:07,963 ERROR [cloud.agent.AgentShell] (main:null)
>> Unable
 to start agent: Unable to find the call_firewall.sh
>>> 
>>> 
>>> Have you installed cloudstack-common package? Normally it's required when
>>> installing cloudstack-agent
>> 
>> yes, its  a dependency, so it gets installed automatically
> 
> 
> So call_firewall.sh should be placed at /*usr*/*share*/*cloudstack*-*common*
> /scripts/network/domr/*call_firewall*.*sh

the script is there but according to the logs it seems to be looking for it in 
the /kvm directory which does not exist for me:

2013-09-30 08:39:21,977 INFO  [resource.virtualnetwork.VirtualRoutingResource] 
(main:null) VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm



> *
> -- 
> 
> N.g.U.y.e.N.A.n.H.t.U



Re: cannot start agent on KVM/Ubuntu

2013-09-30 Thread Travis Graham
That directory is configurable in the agent.properties file. Check and see what 
you have set and change it to match what's on your system.

Might need to file a bug if the two defaults don't match up. If the agent setup 
defaults to some other path than what the common package installs things then 
there's a disconnect between the two.

Travis

On Sep 30, 2013, at 11:42 AM, sebgoa  wrote:

> 
> On Sep 30, 2013, at 5:17 PM, Nguyen Anh Tu  wrote:
> 
>> 2013/9/30 sebgoa 
>> 
>>> 
>>> On Sep 30, 2013, at 5:07 PM, Nguyen Anh Tu  wrote:
>>> 
 2013/9/30 sebgoa 
 
> 2013-09-30 08:03:07,963 ERROR [cloud.agent.AgentShell] (main:null)
>>> Unable
> to start agent: Unable to find the call_firewall.sh
 
 
 Have you installed cloudstack-common package? Normally it's required when
 installing cloudstack-agent
>>> 
>>> yes, its  a dependency, so it gets installed automatically
>> 
>> 
>> So call_firewall.sh should be placed at /*usr*/*share*/*cloudstack*-*common*
>> /scripts/network/domr/*call_firewall*.*sh
> 
> the script is there but according to the logs it seems to be looking for it 
> in the /kvm directory which does not exist for me:
> 
> 2013-09-30 08:39:21,977 INFO  
> [resource.virtualnetwork.VirtualRoutingResource] (main:null) 
> VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
> 
> 
> 
>> *
>> -- 
>> 
>> N.g.U.y.e.N.A.n.H.t.U
> 



Re: cannot start agent on KVM/Ubuntu

2013-09-30 Thread Nguyen Anh Tu
2013/9/30 sebgoa 

>
> On Sep 30, 2013, at 5:07 PM, Nguyen Anh Tu  wrote:
>
> > 2013/9/30 sebgoa 
> >
> >> 2013-09-30 08:03:07,963 ERROR [cloud.agent.AgentShell] (main:null)
> Unable
> >> to start agent: Unable to find the call_firewall.sh
> >
> >
> > Have you installed cloudstack-common package? Normally it's required when
> > installing cloudstack-agent
>
> yes, its  a dependency, so it gets installed automatically


So call_firewall.sh should be placed at /*usr*/*share*/*cloudstack*-*common*
/scripts/network/domr/*call_firewall*.*sh
*
-- 

N.g.U.y.e.N.A.n.H.t.U


Re: cannot start agent on KVM/Ubuntu

2013-09-30 Thread sebgoa

On Sep 30, 2013, at 5:07 PM, Nguyen Anh Tu  wrote:

> 2013/9/30 sebgoa 
> 
>> 2013-09-30 08:03:07,963 ERROR [cloud.agent.AgentShell] (main:null) Unable
>> to start agent: Unable to find the call_firewall.sh
> 
> 
> Have you installed cloudstack-common package? Normally it's required when
> installing cloudstack-agent

yes, its  a dependency, so it gets installed automatically

> 
> 
> -- 
> 
> N.g.U.y.e.N.A.n.H.t.U



Re: cannot start agent on KVM/Ubuntu

2013-09-30 Thread Nguyen Anh Tu
Don't worry. I deployed success with 4.1. You just need follow exactly the
installation guide. Some troubles if you use openvswitch instead of linux
bridge. Normally we should use 2 NICs, but it's still ok with only 1 NIC.
Cloud0 is automatically generated when cloudstack-agent starting


2013/9/30 Travis Graham 

> Did you rerun cloudstack-setup-agent and let it reconfigure the
> agent.properties file and reconfigure the networking and all the other
> stuff it does?
>
> Travis
>
> On Sep 30, 2013, at 10:49 AM, sebgoa  wrote:
>
> >
> > On Sep 30, 2013, at 4:46 PM, Nguyen Anh Tu  wrote:
> >
> >> 2013/9/30 sebgoa 
> >>
> >>> I am on ubuntu 12.04 with KVM.
> >>> I was playing with various network configuration and messed up my
> agent.
> >>> Now when I start to start it I get:
> >>> # service cloudstack-agent start
> >>> * Starting CloudStack Agent cloud-agent
> >>> cat: /var/run/cloud-agent.pid: No such file or directory
> >>> * jsvc failed to start
> >>>
> >>
> >> could you please post /var/log/cloud/agent/agent.log ?
> >>
> >>
> >> --
> >>
> >> N.g.U.y.e.N.A.n.H.t.U
> >
> > 2013-09-30 06:34:14,380 INFO  [cloud.agent.Agent] (main:null) id is 0
> > 2013-09-30 06:34:14,383 ERROR [cloud.resource.ServerResourceBase]
> (main:null) Nics are not configured!
> > 2013-09-30 06:34:14,388 INFO  [cloud.resource.ServerResourceBase]
> (main:null) Designating private to be nic eth1
> > 2013-09-30 06:34:14,396 INFO
>  [resource.virtualnetwork.VirtualRoutingResource] (main:null)
> VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
> > 2013-09-30 06:34:14,738 ERROR [cloud.agent.AgentShell] (main:null)
> Unable to start agent: Failed to get private nic name
> > 2013-09-30 06:35:37,447 INFO  [cloud.agent.AgentShell] (main:null) Agent
> started
> > 2013-09-30 06:35:37,448 INFO  [cloud.agent.AgentShell] (main:null)
> Implementation Version is 4.1.1
> > 2013-09-30 06:36:32,052 INFO  [cloud.agent.AgentShell] (main:null) Agent
> started
> > 2013-09-30 06:36:32,053 INFO  [cloud.agent.AgentShell] (main:null)
> Implementation Version is 4.1.1
> > 2013-09-30 06:45:35,106 INFO  [cloud.agent.AgentShell] (main:null) Agent
> started
> > 2013-09-30 06:45:35,107 INFO  [cloud.agent.AgentShell] (main:null)
> Implementation Version is 4.1.1
> > 2013-09-30 06:45:52,694 INFO  [cloud.agent.AgentShell] (main:null) Agent
> started
> > 2013-09-30 06:45:52,695 INFO  [cloud.agent.AgentShell] (main:null)
> Implementation Version is 4.1.1
> > 2013-09-30 07:27:37,437 INFO  [cloud.agent.AgentShell] (main:null) Agent
> started
> > 2013-09-30 07:27:37,439 INFO  [cloud.agent.AgentShell] (main:null)
> Implementation Version is 4.1.1
> > 2013-09-30 07:28:25,586 INFO  [cloud.agent.AgentShell] (main:null) Agent
> started
> > 2013-09-30 07:28:25,588 INFO  [cloud.agent.AgentShell] (main:null)
> Implementation Version is 4.1.1
> > 2013-09-30 07:41:29,428 INFO  [cloud.agent.AgentShell] (main:null) Agent
> started
> > 2013-09-30 07:41:29,429 INFO  [cloud.agent.AgentShell] (main:null)
> Implementation Version is 4.1.1
> > 2013-09-30 07:42:57,204 INFO  [cloud.agent.AgentShell] (main:null) Agent
> started
> > 2013-09-30 07:42:57,205 INFO  [cloud.agent.AgentShell] (main:null)
> Implementation Version is 4.1.1
> > 2013-09-30 07:42:57,208 INFO  [cloud.agent.AgentShell] (main:null)
> agent.properties found at /etc/cloudstack/agent/agent.properties
> > 2013-09-30 07:44:09,656 INFO  [cloud.agent.AgentShell] (main:null) Agent
> started
> > 2013-09-30 07:44:09,657 INFO  [cloud.agent.AgentShell] (main:null)
> Implementation Version is 4.1.1
> > 2013-09-30 07:44:09,660 INFO  [cloud.agent.AgentShell] (main:null)
> agent.properties found at /etc/cloudstack/agent/agent.properties
> > 2013-09-30 07:45:00,084 INFO  [cloud.agent.AgentShell] (main:null) Agent
> started
> > 2013-09-30 07:45:00,085 INFO  [cloud.agent.AgentShell] (main:null)
> Implementation Version is 4.1.1
> > 2013-09-30 07:45:00,088 INFO  [cloud.agent.AgentShell] (main:null)
> agent.properties found at /etc/cloudstack/agent/agent.properties
> > 2013-09-30 07:45:00,089 INFO  [cloud.agent.AgentShell] (main:null)
> Defaulting to using properties file for storage
> > 2013-09-30 07:45:00,090 INFO  [cloud.agent.AgentShell] (main:null)
> Defaulting to the constant time backoff algorithm
> > 2013-09-30 07:45:00,193 INFO  [cloud.agent.Agent] (main:null) id is 0
> > 2013-09-30 07:45:00,196 ERROR [cloud.resource.ServerResourceBase]
> (main:null) Nics are not configured!
> > 2013-09-30 07:45:00,206 INFO  [cloud.resource.ServerResourceBase]
> (main:null) Designating private to be nic eth1
> > 2013-09-30 07:45:00,226 INFO
>  [resource.virtualnetwork.VirtualRoutingResource] (main:null)
> VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
> > 2013-09-30 07:45:00,228 WARN  [utils.script.Script] (main:null) Unable
> to find script call_firewall.sh
> > 2013-09-30 07:45:00,228 ERROR [cloud.agent.AgentShell] (main:null)
> Unable to start agent: Unable to find the call_firewall.sh
> > 2013-09-30 07:45:47,022 IN

Re: cannot start agent on KVM/Ubuntu

2013-09-30 Thread Nguyen Anh Tu
2013/9/30 sebgoa 

> 2013-09-30 08:03:07,963 ERROR [cloud.agent.AgentShell] (main:null) Unable
> to start agent: Unable to find the call_firewall.sh


Have you installed cloudstack-common package? Normally it's required when
installing cloudstack-agent


-- 

N.g.U.y.e.N.A.n.H.t.U


Re: cannot start agent on KVM/Ubuntu

2013-09-30 Thread sebgoa

On Sep 30, 2013, at 4:52 PM, Travis Graham  wrote:

> Did you rerun cloudstack-setup-agent and let it reconfigure the 
> agent.properties file and reconfigure the networking and all the other stuff 
> it does?

Interesting as I did not use it in the first place ?
I ran the agent service and then configure the zone on the mgt server, it did 
everything.

Now I just did it and even though it complete apparently successfully, still 
the agent is not up. I seem to be missing a script:

2013-09-30 08:03:07,963 ERROR [cloud.agent.AgentShell] (main:null) Unable to 
start agent: Unable to find the call_firewall.sh

:(

-sebastien

> 
> Travis
> 
> On Sep 30, 2013, at 10:49 AM, sebgoa  wrote:
> 
>> 
>> On Sep 30, 2013, at 4:46 PM, Nguyen Anh Tu  wrote:
>> 
>>> 2013/9/30 sebgoa 
>>> 
 I am on ubuntu 12.04 with KVM.
 I was playing with various network configuration and messed up my agent.
 Now when I start to start it I get:
 # service cloudstack-agent start
 * Starting CloudStack Agent cloud-agent
 cat: /var/run/cloud-agent.pid: No such file or directory
 * jsvc failed to start
 
>>> 
>>> could you please post /var/log/cloud/agent/agent.log ?
>>> 
>>> 
>>> -- 
>>> 
>>> N.g.U.y.e.N.A.n.H.t.U
>> 
>> 2013-09-30 06:34:14,380 INFO  [cloud.agent.Agent] (main:null) id is 0
>> 2013-09-30 06:34:14,383 ERROR [cloud.resource.ServerResourceBase] 
>> (main:null) Nics are not configured!
>> 2013-09-30 06:34:14,388 INFO  [cloud.resource.ServerResourceBase] 
>> (main:null) Designating private to be nic eth1
>> 2013-09-30 06:34:14,396 INFO  
>> [resource.virtualnetwork.VirtualRoutingResource] (main:null) 
>> VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
>> 2013-09-30 06:34:14,738 ERROR [cloud.agent.AgentShell] (main:null) Unable to 
>> start agent: Failed to get private nic name
>> 2013-09-30 06:35:37,447 INFO  [cloud.agent.AgentShell] (main:null) Agent 
>> started
>> 2013-09-30 06:35:37,448 INFO  [cloud.agent.AgentShell] (main:null) 
>> Implementation Version is 4.1.1
>> 2013-09-30 06:36:32,052 INFO  [cloud.agent.AgentShell] (main:null) Agent 
>> started
>> 2013-09-30 06:36:32,053 INFO  [cloud.agent.AgentShell] (main:null) 
>> Implementation Version is 4.1.1
>> 2013-09-30 06:45:35,106 INFO  [cloud.agent.AgentShell] (main:null) Agent 
>> started
>> 2013-09-30 06:45:35,107 INFO  [cloud.agent.AgentShell] (main:null) 
>> Implementation Version is 4.1.1
>> 2013-09-30 06:45:52,694 INFO  [cloud.agent.AgentShell] (main:null) Agent 
>> started
>> 2013-09-30 06:45:52,695 INFO  [cloud.agent.AgentShell] (main:null) 
>> Implementation Version is 4.1.1
>> 2013-09-30 07:27:37,437 INFO  [cloud.agent.AgentShell] (main:null) Agent 
>> started
>> 2013-09-30 07:27:37,439 INFO  [cloud.agent.AgentShell] (main:null) 
>> Implementation Version is 4.1.1
>> 2013-09-30 07:28:25,586 INFO  [cloud.agent.AgentShell] (main:null) Agent 
>> started
>> 2013-09-30 07:28:25,588 INFO  [cloud.agent.AgentShell] (main:null) 
>> Implementation Version is 4.1.1
>> 2013-09-30 07:41:29,428 INFO  [cloud.agent.AgentShell] (main:null) Agent 
>> started
>> 2013-09-30 07:41:29,429 INFO  [cloud.agent.AgentShell] (main:null) 
>> Implementation Version is 4.1.1
>> 2013-09-30 07:42:57,204 INFO  [cloud.agent.AgentShell] (main:null) Agent 
>> started
>> 2013-09-30 07:42:57,205 INFO  [cloud.agent.AgentShell] (main:null) 
>> Implementation Version is 4.1.1
>> 2013-09-30 07:42:57,208 INFO  [cloud.agent.AgentShell] (main:null) 
>> agent.properties found at /etc/cloudstack/agent/agent.properties
>> 2013-09-30 07:44:09,656 INFO  [cloud.agent.AgentShell] (main:null) Agent 
>> started
>> 2013-09-30 07:44:09,657 INFO  [cloud.agent.AgentShell] (main:null) 
>> Implementation Version is 4.1.1
>> 2013-09-30 07:44:09,660 INFO  [cloud.agent.AgentShell] (main:null) 
>> agent.properties found at /etc/cloudstack/agent/agent.properties
>> 2013-09-30 07:45:00,084 INFO  [cloud.agent.AgentShell] (main:null) Agent 
>> started
>> 2013-09-30 07:45:00,085 INFO  [cloud.agent.AgentShell] (main:null) 
>> Implementation Version is 4.1.1
>> 2013-09-30 07:45:00,088 INFO  [cloud.agent.AgentShell] (main:null) 
>> agent.properties found at /etc/cloudstack/agent/agent.properties
>> 2013-09-30 07:45:00,089 INFO  [cloud.agent.AgentShell] (main:null) 
>> Defaulting to using properties file for storage
>> 2013-09-30 07:45:00,090 INFO  [cloud.agent.AgentShell] (main:null) 
>> Defaulting to the constant time backoff algorithm
>> 2013-09-30 07:45:00,193 INFO  [cloud.agent.Agent] (main:null) id is 0
>> 2013-09-30 07:45:00,196 ERROR [cloud.resource.ServerResourceBase] 
>> (main:null) Nics are not configured!
>> 2013-09-30 07:45:00,206 INFO  [cloud.resource.ServerResourceBase] 
>> (main:null) Designating private to be nic eth1
>> 2013-09-30 07:45:00,226 INFO  
>> [resource.virtualnetwork.VirtualRoutingResource] (main:null) 
>> VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
>> 2013-09-30 07:45:00,228 WARN  [utils.script.Script] (main:null) Unable to 
>> find s

Re: cannot start agent on KVM/Ubuntu

2013-09-30 Thread Travis Graham
Did you rerun cloudstack-setup-agent and let it reconfigure the 
agent.properties file and reconfigure the networking and all the other stuff it 
does?

Travis

On Sep 30, 2013, at 10:49 AM, sebgoa  wrote:

> 
> On Sep 30, 2013, at 4:46 PM, Nguyen Anh Tu  wrote:
> 
>> 2013/9/30 sebgoa 
>> 
>>> I am on ubuntu 12.04 with KVM.
>>> I was playing with various network configuration and messed up my agent.
>>> Now when I start to start it I get:
>>> # service cloudstack-agent start
>>> * Starting CloudStack Agent cloud-agent
>>> cat: /var/run/cloud-agent.pid: No such file or directory
>>> * jsvc failed to start
>>> 
>> 
>> could you please post /var/log/cloud/agent/agent.log ?
>> 
>> 
>> -- 
>> 
>> N.g.U.y.e.N.A.n.H.t.U
> 
> 2013-09-30 06:34:14,380 INFO  [cloud.agent.Agent] (main:null) id is 0
> 2013-09-30 06:34:14,383 ERROR [cloud.resource.ServerResourceBase] (main:null) 
> Nics are not configured!
> 2013-09-30 06:34:14,388 INFO  [cloud.resource.ServerResourceBase] (main:null) 
> Designating private to be nic eth1
> 2013-09-30 06:34:14,396 INFO  
> [resource.virtualnetwork.VirtualRoutingResource] (main:null) 
> VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
> 2013-09-30 06:34:14,738 ERROR [cloud.agent.AgentShell] (main:null) Unable to 
> start agent: Failed to get private nic name
> 2013-09-30 06:35:37,447 INFO  [cloud.agent.AgentShell] (main:null) Agent 
> started
> 2013-09-30 06:35:37,448 INFO  [cloud.agent.AgentShell] (main:null) 
> Implementation Version is 4.1.1
> 2013-09-30 06:36:32,052 INFO  [cloud.agent.AgentShell] (main:null) Agent 
> started
> 2013-09-30 06:36:32,053 INFO  [cloud.agent.AgentShell] (main:null) 
> Implementation Version is 4.1.1
> 2013-09-30 06:45:35,106 INFO  [cloud.agent.AgentShell] (main:null) Agent 
> started
> 2013-09-30 06:45:35,107 INFO  [cloud.agent.AgentShell] (main:null) 
> Implementation Version is 4.1.1
> 2013-09-30 06:45:52,694 INFO  [cloud.agent.AgentShell] (main:null) Agent 
> started
> 2013-09-30 06:45:52,695 INFO  [cloud.agent.AgentShell] (main:null) 
> Implementation Version is 4.1.1
> 2013-09-30 07:27:37,437 INFO  [cloud.agent.AgentShell] (main:null) Agent 
> started
> 2013-09-30 07:27:37,439 INFO  [cloud.agent.AgentShell] (main:null) 
> Implementation Version is 4.1.1
> 2013-09-30 07:28:25,586 INFO  [cloud.agent.AgentShell] (main:null) Agent 
> started
> 2013-09-30 07:28:25,588 INFO  [cloud.agent.AgentShell] (main:null) 
> Implementation Version is 4.1.1
> 2013-09-30 07:41:29,428 INFO  [cloud.agent.AgentShell] (main:null) Agent 
> started
> 2013-09-30 07:41:29,429 INFO  [cloud.agent.AgentShell] (main:null) 
> Implementation Version is 4.1.1
> 2013-09-30 07:42:57,204 INFO  [cloud.agent.AgentShell] (main:null) Agent 
> started
> 2013-09-30 07:42:57,205 INFO  [cloud.agent.AgentShell] (main:null) 
> Implementation Version is 4.1.1
> 2013-09-30 07:42:57,208 INFO  [cloud.agent.AgentShell] (main:null) 
> agent.properties found at /etc/cloudstack/agent/agent.properties
> 2013-09-30 07:44:09,656 INFO  [cloud.agent.AgentShell] (main:null) Agent 
> started
> 2013-09-30 07:44:09,657 INFO  [cloud.agent.AgentShell] (main:null) 
> Implementation Version is 4.1.1
> 2013-09-30 07:44:09,660 INFO  [cloud.agent.AgentShell] (main:null) 
> agent.properties found at /etc/cloudstack/agent/agent.properties
> 2013-09-30 07:45:00,084 INFO  [cloud.agent.AgentShell] (main:null) Agent 
> started
> 2013-09-30 07:45:00,085 INFO  [cloud.agent.AgentShell] (main:null) 
> Implementation Version is 4.1.1
> 2013-09-30 07:45:00,088 INFO  [cloud.agent.AgentShell] (main:null) 
> agent.properties found at /etc/cloudstack/agent/agent.properties
> 2013-09-30 07:45:00,089 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
> to using properties file for storage
> 2013-09-30 07:45:00,090 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
> to the constant time backoff algorithm
> 2013-09-30 07:45:00,193 INFO  [cloud.agent.Agent] (main:null) id is 0
> 2013-09-30 07:45:00,196 ERROR [cloud.resource.ServerResourceBase] (main:null) 
> Nics are not configured!
> 2013-09-30 07:45:00,206 INFO  [cloud.resource.ServerResourceBase] (main:null) 
> Designating private to be nic eth1
> 2013-09-30 07:45:00,226 INFO  
> [resource.virtualnetwork.VirtualRoutingResource] (main:null) 
> VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
> 2013-09-30 07:45:00,228 WARN  [utils.script.Script] (main:null) Unable to 
> find script call_firewall.sh
> 2013-09-30 07:45:00,228 ERROR [cloud.agent.AgentShell] (main:null) Unable to 
> start agent: Unable to find the call_firewall.sh
> 2013-09-30 07:45:47,022 INFO  [cloud.agent.AgentShell] (main:null) Agent 
> started
> 2013-09-30 07:45:47,023 INFO  [cloud.agent.AgentShell] (main:null) 
> Implementation Version is 4.1.1
> 2013-09-30 07:45:47,026 INFO  [cloud.agent.AgentShell] (main:null) 
> agent.properties found at /etc/cloudstack/agent/agent.properties
> 2013-09-30 07:45:47,027 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
> to using properti

Re: cannot start agent on KVM/Ubuntu

2013-09-30 Thread sebgoa

On Sep 30, 2013, at 4:46 PM, Nguyen Anh Tu  wrote:

> 2013/9/30 sebgoa 
> 
>> I am on ubuntu 12.04 with KVM.
>> I was playing with various network configuration and messed up my agent.
>> Now when I start to start it I get:
>> # service cloudstack-agent start
>> * Starting CloudStack Agent cloud-agent
>> cat: /var/run/cloud-agent.pid: No such file or directory
>> * jsvc failed to start
>> 
> 
> could you please post /var/log/cloud/agent/agent.log ?
> 
> 
> -- 
> 
> N.g.U.y.e.N.A.n.H.t.U

2013-09-30 06:34:14,380 INFO  [cloud.agent.Agent] (main:null) id is 0
2013-09-30 06:34:14,383 ERROR [cloud.resource.ServerResourceBase] (main:null) 
Nics are not configured!
2013-09-30 06:34:14,388 INFO  [cloud.resource.ServerResourceBase] (main:null) 
Designating private to be nic eth1
2013-09-30 06:34:14,396 INFO  [resource.virtualnetwork.VirtualRoutingResource] 
(main:null) VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
2013-09-30 06:34:14,738 ERROR [cloud.agent.AgentShell] (main:null) Unable to 
start agent: Failed to get private nic name
2013-09-30 06:35:37,447 INFO  [cloud.agent.AgentShell] (main:null) Agent started
2013-09-30 06:35:37,448 INFO  [cloud.agent.AgentShell] (main:null) 
Implementation Version is 4.1.1
2013-09-30 06:36:32,052 INFO  [cloud.agent.AgentShell] (main:null) Agent started
2013-09-30 06:36:32,053 INFO  [cloud.agent.AgentShell] (main:null) 
Implementation Version is 4.1.1
2013-09-30 06:45:35,106 INFO  [cloud.agent.AgentShell] (main:null) Agent started
2013-09-30 06:45:35,107 INFO  [cloud.agent.AgentShell] (main:null) 
Implementation Version is 4.1.1
2013-09-30 06:45:52,694 INFO  [cloud.agent.AgentShell] (main:null) Agent started
2013-09-30 06:45:52,695 INFO  [cloud.agent.AgentShell] (main:null) 
Implementation Version is 4.1.1
2013-09-30 07:27:37,437 INFO  [cloud.agent.AgentShell] (main:null) Agent started
2013-09-30 07:27:37,439 INFO  [cloud.agent.AgentShell] (main:null) 
Implementation Version is 4.1.1
2013-09-30 07:28:25,586 INFO  [cloud.agent.AgentShell] (main:null) Agent started
2013-09-30 07:28:25,588 INFO  [cloud.agent.AgentShell] (main:null) 
Implementation Version is 4.1.1
2013-09-30 07:41:29,428 INFO  [cloud.agent.AgentShell] (main:null) Agent started
2013-09-30 07:41:29,429 INFO  [cloud.agent.AgentShell] (main:null) 
Implementation Version is 4.1.1
2013-09-30 07:42:57,204 INFO  [cloud.agent.AgentShell] (main:null) Agent started
2013-09-30 07:42:57,205 INFO  [cloud.agent.AgentShell] (main:null) 
Implementation Version is 4.1.1
2013-09-30 07:42:57,208 INFO  [cloud.agent.AgentShell] (main:null) 
agent.properties found at /etc/cloudstack/agent/agent.properties
2013-09-30 07:44:09,656 INFO  [cloud.agent.AgentShell] (main:null) Agent started
2013-09-30 07:44:09,657 INFO  [cloud.agent.AgentShell] (main:null) 
Implementation Version is 4.1.1
2013-09-30 07:44:09,660 INFO  [cloud.agent.AgentShell] (main:null) 
agent.properties found at /etc/cloudstack/agent/agent.properties
2013-09-30 07:45:00,084 INFO  [cloud.agent.AgentShell] (main:null) Agent started
2013-09-30 07:45:00,085 INFO  [cloud.agent.AgentShell] (main:null) 
Implementation Version is 4.1.1
2013-09-30 07:45:00,088 INFO  [cloud.agent.AgentShell] (main:null) 
agent.properties found at /etc/cloudstack/agent/agent.properties
2013-09-30 07:45:00,089 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
to using properties file for storage
2013-09-30 07:45:00,090 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
to the constant time backoff algorithm
2013-09-30 07:45:00,193 INFO  [cloud.agent.Agent] (main:null) id is 0
2013-09-30 07:45:00,196 ERROR [cloud.resource.ServerResourceBase] (main:null) 
Nics are not configured!
2013-09-30 07:45:00,206 INFO  [cloud.resource.ServerResourceBase] (main:null) 
Designating private to be nic eth1
2013-09-30 07:45:00,226 INFO  [resource.virtualnetwork.VirtualRoutingResource] 
(main:null) VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
2013-09-30 07:45:00,228 WARN  [utils.script.Script] (main:null) Unable to find 
script call_firewall.sh
2013-09-30 07:45:00,228 ERROR [cloud.agent.AgentShell] (main:null) Unable to 
start agent: Unable to find the call_firewall.sh
2013-09-30 07:45:47,022 INFO  [cloud.agent.AgentShell] (main:null) Agent started
2013-09-30 07:45:47,023 INFO  [cloud.agent.AgentShell] (main:null) 
Implementation Version is 4.1.1
2013-09-30 07:45:47,026 INFO  [cloud.agent.AgentShell] (main:null) 
agent.properties found at /etc/cloudstack/agent/agent.properties
2013-09-30 07:45:47,027 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
to using properties file for storage
2013-09-30 07:45:47,028 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
to the constant time backoff algorithm
2013-09-30 07:45:47,131 INFO  [cloud.agent.Agent] (main:null) id is 0
2013-09-30 07:45:47,134 ERROR [cloud.resource.ServerResourceBase] (main:null) 
Nics are not configured!
2013-09-30 07:45:47,145 INFO  [cloud.resource.ServerResourceBase] (main:null) 
Designating pr

Re: cannot start agent on KVM/Ubuntu

2013-09-30 Thread Nguyen Anh Tu
2013/9/30 sebgoa 

> I am on ubuntu 12.04 with KVM.
> I was playing with various network configuration and messed up my agent.
> Now when I start to start it I get:
> # service cloudstack-agent start
>  * Starting CloudStack Agent cloud-agent
>  cat: /var/run/cloud-agent.pid: No such file or directory
>  * jsvc failed to start
>

could you please post /var/log/cloud/agent/agent.log ?


-- 

N.g.U.y.e.N.A.n.H.t.U