You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by sebgoa <ru...@gmail.com> on 2013/09/30 16:31:06 UTC
cannot start agent on KVM/Ubuntu
Hi,
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
I tried various things including removing the package and re-installating but to no avail. The logs do say that it started (it's 4.1.1)
thoughts ?
-sebastien
Re: cannot start agent on KVM/Ubuntu
Posted by Travis Graham <tg...@tgraham.us>.
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 <ru...@gmail.com> wrote:
>
> On Sep 30, 2013, at 5:17 PM, Nguyen Anh Tu <ng...@gmail.com> wrote:
>
>> 2013/9/30 sebgoa <ru...@gmail.com>
>>
>>>
>>> On Sep 30, 2013, at 5:07 PM, Nguyen Anh Tu <ng...@gmail.com> wrote:
>>>
>>>> 2013/9/30 sebgoa <ru...@gmail.com>
>>>>
>>>>> 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
Posted by Nguyen Anh Tu <ng...@gmail.com>.
2013/9/30 sebgoa <ru...@gmail.com>
>
>
> 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
Posted by sebgoa <ru...@gmail.com>.
On Sep 30, 2013, at 5:17 PM, Nguyen Anh Tu <ng...@gmail.com> wrote:
> 2013/9/30 sebgoa <ru...@gmail.com>
>
>>
>> On Sep 30, 2013, at 5:07 PM, Nguyen Anh Tu <ng...@gmail.com> wrote:
>>
>>> 2013/9/30 sebgoa <ru...@gmail.com>
>>>
>>>> 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
Posted by Nguyen Anh Tu <ng...@gmail.com>.
2013/9/30 sebgoa <ru...@gmail.com>
>
> On Sep 30, 2013, at 5:07 PM, Nguyen Anh Tu <ng...@gmail.com> wrote:
>
> > 2013/9/30 sebgoa <ru...@gmail.com>
> >
> >> 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
Posted by sebgoa <ru...@gmail.com>.
On Sep 30, 2013, at 5:07 PM, Nguyen Anh Tu <ng...@gmail.com> wrote:
> 2013/9/30 sebgoa <ru...@gmail.com>
>
>> 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
Posted by Nguyen Anh Tu <ng...@gmail.com>.
2013/9/30 sebgoa <ru...@gmail.com>
> 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
Posted by sebgoa <ru...@gmail.com>.
On Sep 30, 2013, at 4:52 PM, Travis Graham <tg...@tgraham.us> 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 <ru...@gmail.com> wrote:
>
>>
>> On Sep 30, 2013, at 4:46 PM, Nguyen Anh Tu <ng...@gmail.com> wrote:
>>
>>> 2013/9/30 sebgoa <ru...@gmail.com>
>>>
>>>> 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 private to be nic eth1
>> 2013-09-30 07:45:47,164 INFO [resource.virtualnetwork.VirtualRoutingResource] (main:null) VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
>> 2013-09-30 07:45:47,166 WARN [utils.script.Script] (main:null) Unable to find script call_firewall.sh
>> 2013-09-30 07:45:47,166 ERROR [cloud.agent.AgentShell] (main:null) Unable to start agent: Unable to find the call_firewall.sh
>> 2013-09-30 07:46:29,355 INFO [cloud.agent.AgentShell] (main:null) Agent started
>> 2013-09-30 07:46:29,356 INFO [cloud.agent.AgentShell] (main:null) Implementation Version is 4.1.1
>> 2013-09-30 07:46:29,359 INFO [cloud.agent.AgentShell] (main:null) agent.properties found at /etc/cloudstack/agent/agent.properties
>> 2013-09-30 07:46:29,360 INFO [cloud.agent.AgentShell] (main:null) Defaulting to using properties file for storage
>> 2013-09-30 07:46:29,361 INFO [cloud.agent.AgentShell] (main:null) Defaulting to the constant time backoff algorithm
>> 2013-09-30 07:46:29,453 INFO [cloud.agent.Agent] (main:null) id is 0
>> 2013-09-30 07:46:29,456 ERROR [cloud.resource.ServerResourceBase] (main:null) Nics are not configured!
>> 2013-09-30 07:46:29,460 INFO [cloud.resource.ServerResourceBase] (main:null) Designating private to be nic eth1
>> 2013-09-30 07:46:29,469 INFO [resource.virtualnetwork.VirtualRoutingResource] (main:null) VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
>> 2013-09-30 07:46:29,472 WARN [utils.script.Script] (main:null) Unable to find script call_firewall.sh
>> 2013-09-30 07:46:29,472 ERROR [cloud.agent.AgentShell] (main:null) Unable to start agent: Unable to find the call_firewall.sh
>>
>>
>>
>> As I was messing with the network I removed the cloud0 and cloudbr0 that had been created. At some point I removed agent.properties file…:)
>>
>> So it's messed up but I can't seem to get back on my feet.
>>
>>
>
Re: cannot start agent on KVM/Ubuntu
Posted by Nguyen Anh Tu <ng...@gmail.com>.
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 <tg...@tgraham.us>
> 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 <ru...@gmail.com> wrote:
>
> >
> > On Sep 30, 2013, at 4:46 PM, Nguyen Anh Tu <ng...@gmail.com> wrote:
> >
> >> 2013/9/30 sebgoa <ru...@gmail.com>
> >>
> >>> 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 private to be nic eth1
> > 2013-09-30 07:45:47,164 INFO
> [resource.virtualnetwork.VirtualRoutingResource] (main:null)
> VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
> > 2013-09-30 07:45:47,166 WARN [utils.script.Script] (main:null) Unable
> to find script call_firewall.sh
> > 2013-09-30 07:45:47,166 ERROR [cloud.agent.AgentShell] (main:null)
> Unable to start agent: Unable to find the call_firewall.sh
> > 2013-09-30 07:46:29,355 INFO [cloud.agent.AgentShell] (main:null) Agent
> started
> > 2013-09-30 07:46:29,356 INFO [cloud.agent.AgentShell] (main:null)
> Implementation Version is 4.1.1
> > 2013-09-30 07:46:29,359 INFO [cloud.agent.AgentShell] (main:null)
> agent.properties found at /etc/cloudstack/agent/agent.properties
> > 2013-09-30 07:46:29,360 INFO [cloud.agent.AgentShell] (main:null)
> Defaulting to using properties file for storage
> > 2013-09-30 07:46:29,361 INFO [cloud.agent.AgentShell] (main:null)
> Defaulting to the constant time backoff algorithm
> > 2013-09-30 07:46:29,453 INFO [cloud.agent.Agent] (main:null) id is 0
> > 2013-09-30 07:46:29,456 ERROR [cloud.resource.ServerResourceBase]
> (main:null) Nics are not configured!
> > 2013-09-30 07:46:29,460 INFO [cloud.resource.ServerResourceBase]
> (main:null) Designating private to be nic eth1
> > 2013-09-30 07:46:29,469 INFO
> [resource.virtualnetwork.VirtualRoutingResource] (main:null)
> VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
> > 2013-09-30 07:46:29,472 WARN [utils.script.Script] (main:null) Unable
> to find script call_firewall.sh
> > 2013-09-30 07:46:29,472 ERROR [cloud.agent.AgentShell] (main:null)
> Unable to start agent: Unable to find the call_firewall.sh
> >
> >
> >
> > As I was messing with the network I removed the cloud0 and cloudbr0 that
> had been created. At some point I removed agent.properties file…:)
> >
> > So it's messed up but I can't seem to get back on my feet.
> >
> >
>
>
--
N.g.U.y.e.N.A.n.H.t.U
Re: cannot start agent on KVM/Ubuntu
Posted by Travis Graham <tg...@tgraham.us>.
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 <ru...@gmail.com> wrote:
>
> On Sep 30, 2013, at 4:46 PM, Nguyen Anh Tu <ng...@gmail.com> wrote:
>
>> 2013/9/30 sebgoa <ru...@gmail.com>
>>
>>> 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 private to be nic eth1
> 2013-09-30 07:45:47,164 INFO [resource.virtualnetwork.VirtualRoutingResource] (main:null) VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
> 2013-09-30 07:45:47,166 WARN [utils.script.Script] (main:null) Unable to find script call_firewall.sh
> 2013-09-30 07:45:47,166 ERROR [cloud.agent.AgentShell] (main:null) Unable to start agent: Unable to find the call_firewall.sh
> 2013-09-30 07:46:29,355 INFO [cloud.agent.AgentShell] (main:null) Agent started
> 2013-09-30 07:46:29,356 INFO [cloud.agent.AgentShell] (main:null) Implementation Version is 4.1.1
> 2013-09-30 07:46:29,359 INFO [cloud.agent.AgentShell] (main:null) agent.properties found at /etc/cloudstack/agent/agent.properties
> 2013-09-30 07:46:29,360 INFO [cloud.agent.AgentShell] (main:null) Defaulting to using properties file for storage
> 2013-09-30 07:46:29,361 INFO [cloud.agent.AgentShell] (main:null) Defaulting to the constant time backoff algorithm
> 2013-09-30 07:46:29,453 INFO [cloud.agent.Agent] (main:null) id is 0
> 2013-09-30 07:46:29,456 ERROR [cloud.resource.ServerResourceBase] (main:null) Nics are not configured!
> 2013-09-30 07:46:29,460 INFO [cloud.resource.ServerResourceBase] (main:null) Designating private to be nic eth1
> 2013-09-30 07:46:29,469 INFO [resource.virtualnetwork.VirtualRoutingResource] (main:null) VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
> 2013-09-30 07:46:29,472 WARN [utils.script.Script] (main:null) Unable to find script call_firewall.sh
> 2013-09-30 07:46:29,472 ERROR [cloud.agent.AgentShell] (main:null) Unable to start agent: Unable to find the call_firewall.sh
>
>
>
> As I was messing with the network I removed the cloud0 and cloudbr0 that had been created. At some point I removed agent.properties file…:)
>
> So it's messed up but I can't seem to get back on my feet.
>
>
Re: cannot start agent on KVM/Ubuntu
Posted by sebgoa <ru...@gmail.com>.
On Sep 30, 2013, at 4:46 PM, Nguyen Anh Tu <ng...@gmail.com> wrote:
> 2013/9/30 sebgoa <ru...@gmail.com>
>
>> 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 private to be nic eth1
2013-09-30 07:45:47,164 INFO [resource.virtualnetwork.VirtualRoutingResource] (main:null) VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
2013-09-30 07:45:47,166 WARN [utils.script.Script] (main:null) Unable to find script call_firewall.sh
2013-09-30 07:45:47,166 ERROR [cloud.agent.AgentShell] (main:null) Unable to start agent: Unable to find the call_firewall.sh
2013-09-30 07:46:29,355 INFO [cloud.agent.AgentShell] (main:null) Agent started
2013-09-30 07:46:29,356 INFO [cloud.agent.AgentShell] (main:null) Implementation Version is 4.1.1
2013-09-30 07:46:29,359 INFO [cloud.agent.AgentShell] (main:null) agent.properties found at /etc/cloudstack/agent/agent.properties
2013-09-30 07:46:29,360 INFO [cloud.agent.AgentShell] (main:null) Defaulting to using properties file for storage
2013-09-30 07:46:29,361 INFO [cloud.agent.AgentShell] (main:null) Defaulting to the constant time backoff algorithm
2013-09-30 07:46:29,453 INFO [cloud.agent.Agent] (main:null) id is 0
2013-09-30 07:46:29,456 ERROR [cloud.resource.ServerResourceBase] (main:null) Nics are not configured!
2013-09-30 07:46:29,460 INFO [cloud.resource.ServerResourceBase] (main:null) Designating private to be nic eth1
2013-09-30 07:46:29,469 INFO [resource.virtualnetwork.VirtualRoutingResource] (main:null) VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
2013-09-30 07:46:29,472 WARN [utils.script.Script] (main:null) Unable to find script call_firewall.sh
2013-09-30 07:46:29,472 ERROR [cloud.agent.AgentShell] (main:null) Unable to start agent: Unable to find the call_firewall.sh
As I was messing with the network I removed the cloud0 and cloudbr0 that had been created. At some point I removed agent.properties file…:)
So it's messed up but I can't seem to get back on my feet.
Re: cannot start agent on KVM/Ubuntu
Posted by Nguyen Anh Tu <ng...@gmail.com>.
2013/9/30 sebgoa <ru...@gmail.com>
> 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