You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Er Krishna <er...@gmail.com> on 2013/06/04 13:56:27 UTC

unable to add host

I am not able to add host. Pls help me to debug this.

My host machine agent.log is:
2016-11-02 18:46:56,633 INFO  [utils.nio.NioClient] (Agent-Selector:null)
Connecting to localhost:8250
2016-11-02 18:46:56,633 ERROR [utils.nio.NioConnection]
(Agent-Selector:null) Unable to connect to remote
2016-11-02 18:46:56,732 INFO  [cloud.agent.Agent]
(AgentShutdownThread:null) Stopping the agent: Reason = sig.kill


Management server log is :

2013-06-04 17:18:14,118 DEBUG
[storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Zone 2
is not ready to launch secondary storage VM yet
2013-06-04 17:18:14,157 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl]
(consoleproxy-1:null) Skip capacity scan due to there is no Primary Storage
UPintenance mode
2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
(CapacityChecker:null) Running Capacity Checker ...
2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
(CapacityChecker:null) recalculating system capacity
2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
(CapacityChecker:null) Executing cpu/ram capacity update
2013-06-04 17:18:14,547 DEBUG [cloud.alert.AlertManagerImpl]
(CapacityChecker:null) Done executing cpu/ram capacity update



Krishna

Re: unable to add host

Posted by Er Krishna <er...@gmail.com>.
Venketa,

I have checked it and it is already set to management IP address.

Krishna


On Thu, Jun 6, 2013 at 7:34 PM, Venkata SwamyBabu Budumuru <
venkataswamybabu.budumuru@citrix.com> wrote:

> Hi,
>
> Can you quickly check for the following global setting on your management
> server? I am doubting that the following could be the reason for the
> errors.
>
> Go to -> Global Settings -> search setting called "host" => Make sure that
> it is not set to "localhost" instead, it should be set to your mgmt server
> IP address.
>
> Once the above is done then please restart your mgmt server and
> /etc/init.d/cloudstack-agent restart.
>
>
> Thanks,
> SWAMY
>
> On 06/06/13 5:54 PM, "Er Krishna" <er...@gmail.com> wrote:
>
> >I have pasted the log after doing trace enable and agent restart. One
> >confusion : I have not configured xenbr0 and cloud 0 or cloudbr0 . I think
> >if I am using on same network (mean to say host and management server are
> >on same subnet), so xenbr0 is required or not ? Although I have not
> >configured cloud0 but some times it appears on ifconfig and some time it
> >disappears from ifconfig automatically. Is it a problem ?
> >
> >Do I need to configure xenbridge and cloudbridge on host via
> >/etc/network/interfaces file and is it required ?
> >
> >Link for the log: http://apaste.info/kB4Y
> >
> >My ifconfig is as follows:
> >
> >
> >root@krishna-S1400RP:/var/log/cloud/agent# ifconfig
> >cloud0    Link encap:Ethernet  HWaddr d2:a3:d7:58:ec:d9
> >          inet addr:169.254.0.1  Bcast:169.254.255.255  Mask:255.255.0.0
> >          inet6 addr: fe80::d0a3:d7ff:fe58:ecd9/64 Scope:Link
> >          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> >          TX packets:71 errors:0 dropped:0 overruns:0 carrier:0
> >          collisions:0 txqueuelen:0
> >          RX bytes:0 (0.0 B)  TX bytes:11405 (11.4 KB)
> >
> >eth2      Link encap:Ethernet  HWaddr 00:1e:67:4d:06:84
> >          inet addr:10.223.169.166  Bcast:10.223.169.255
> >Mask:255.255.255.0
> >          inet6 addr: fe80::21e:67ff:fe4d:684/64 Scope:Link
> >          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >          RX packets:120393 errors:0 dropped:0 overruns:0 frame:0
> >          TX packets:54959 errors:0 dropped:0 overruns:0 carrier:0
> >          collisions:0 txqueuelen:1000
> >          RX bytes:53992336 (53.9 MB)  TX bytes:8380555 (8.3 MB)
> >          Memory:c0900000-c0a00000
> >
> >eth3      Link encap:Ethernet  HWaddr 00:1e:67:4d:06:83
> >          UP BROADCAST MULTICAST  MTU:1500  Metric:1
> >          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> >          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> >          collisions:0 txqueuelen:1000
> >          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
> >          Memory:c0b00000-c0c00000
> >
> >lo        Link encap:Local Loopback
> >          inet addr:127.0.0.1  Mask:255.0.0.0
> >          inet6 addr: ::1/128 Scope:Host
> >          UP LOOPBACK RUNNING  MTU:16436  Metric:1
> >          RX packets:8818 errors:0 dropped:0 overruns:0 frame:0
> >          TX packets:8818 errors:0 dropped:0 overruns:0 carrier:0
> >          collisions:0 txqueuelen:0
> >          RX bytes:442416 (442.4 KB)  TX bytes:442416 (442.4 KB)
> >
> >virbr0    Link encap:Ethernet  HWaddr b2:92:ad:9d:e9:2e
> >          inet addr:192.168.122.1  Bcast:192.168.122.255
> >Mask:255.255.255.0
> >          UP BROADCAST MULTICAST  MTU:1500  Metric:1
> >          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> >          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> >          collisions:0 txqueuelen:0
> >          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
> >
> >
> >
> >
> >
> >On Thu, Jun 6, 2013 at 2:19 PM, Prasanna Santhanam <ts...@apache.org>
> wrote:
> >
> >> On Thu, Jun 06, 2013 at 01:58:51PM +0530, Er Krishna wrote:
> >> > Ahmad
> >> >
> >> > You mean to say in same file I should replace info from Trace? And
> >>what
> >> > about first line : debug = true is fine or shall I replace debug to
> >>trace
> >> > and should do trace=true ?
> >>
> >> First line doesn't matter. Just replace the instances of INFO with
> >> TRACE and share the info post agent restart via a pastebin.
> >>
> >>
> >> --
> >> Prasanna.,
> >>
> >> ------------------------
> >> Powered by BigRock.com
> >>
> >>
>
>

Re: unable to add host

Posted by Venkata SwamyBabu Budumuru <ve...@citrix.com>.
Hi,

Can you quickly check for the following global setting on your management
server? I am doubting that the following could be the reason for the
errors.

Go to -> Global Settings -> search setting called "host" => Make sure that
it is not set to "localhost" instead, it should be set to your mgmt server
IP address.

Once the above is done then please restart your mgmt server and
/etc/init.d/cloudstack-agent restart.


Thanks,
SWAMY

On 06/06/13 5:54 PM, "Er Krishna" <er...@gmail.com> wrote:

>I have pasted the log after doing trace enable and agent restart. One
>confusion : I have not configured xenbr0 and cloud 0 or cloudbr0 . I think
>if I am using on same network (mean to say host and management server are
>on same subnet), so xenbr0 is required or not ? Although I have not
>configured cloud0 but some times it appears on ifconfig and some time it
>disappears from ifconfig automatically. Is it a problem ?
>
>Do I need to configure xenbridge and cloudbridge on host via
>/etc/network/interfaces file and is it required ?
>
>Link for the log: http://apaste.info/kB4Y
>
>My ifconfig is as follows:
>
>
>root@krishna-S1400RP:/var/log/cloud/agent# ifconfig
>cloud0    Link encap:Ethernet  HWaddr d2:a3:d7:58:ec:d9
>          inet addr:169.254.0.1  Bcast:169.254.255.255  Mask:255.255.0.0
>          inet6 addr: fe80::d0a3:d7ff:fe58:ecd9/64 Scope:Link
>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:71 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:0
>          RX bytes:0 (0.0 B)  TX bytes:11405 (11.4 KB)
>
>eth2      Link encap:Ethernet  HWaddr 00:1e:67:4d:06:84
>          inet addr:10.223.169.166  Bcast:10.223.169.255
>Mask:255.255.255.0
>          inet6 addr: fe80::21e:67ff:fe4d:684/64 Scope:Link
>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>          RX packets:120393 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:54959 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:1000
>          RX bytes:53992336 (53.9 MB)  TX bytes:8380555 (8.3 MB)
>          Memory:c0900000-c0a00000
>
>eth3      Link encap:Ethernet  HWaddr 00:1e:67:4d:06:83
>          UP BROADCAST MULTICAST  MTU:1500  Metric:1
>          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:1000
>          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>          Memory:c0b00000-c0c00000
>
>lo        Link encap:Local Loopback
>          inet addr:127.0.0.1  Mask:255.0.0.0
>          inet6 addr: ::1/128 Scope:Host
>          UP LOOPBACK RUNNING  MTU:16436  Metric:1
>          RX packets:8818 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:8818 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:0
>          RX bytes:442416 (442.4 KB)  TX bytes:442416 (442.4 KB)
>
>virbr0    Link encap:Ethernet  HWaddr b2:92:ad:9d:e9:2e
>          inet addr:192.168.122.1  Bcast:192.168.122.255
>Mask:255.255.255.0
>          UP BROADCAST MULTICAST  MTU:1500  Metric:1
>          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:0
>          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>
>
>
>
>
>On Thu, Jun 6, 2013 at 2:19 PM, Prasanna Santhanam <ts...@apache.org> wrote:
>
>> On Thu, Jun 06, 2013 at 01:58:51PM +0530, Er Krishna wrote:
>> > Ahmad
>> >
>> > You mean to say in same file I should replace info from Trace? And
>>what
>> > about first line : debug = true is fine or shall I replace debug to
>>trace
>> > and should do trace=true ?
>>
>> First line doesn't matter. Just replace the instances of INFO with
>> TRACE and share the info post agent restart via a pastebin.
>>
>>
>> --
>> Prasanna.,
>>
>> ------------------------
>> Powered by BigRock.com
>>
>>


Re: unable to add host

Posted by Er Krishna <er...@gmail.com>.
I have pasted the log after doing trace enable and agent restart. One
confusion : I have not configured xenbr0 and cloud 0 or cloudbr0 . I think
if I am using on same network (mean to say host and management server are
on same subnet), so xenbr0 is required or not ? Although I have not
configured cloud0 but some times it appears on ifconfig and some time it
disappears from ifconfig automatically. Is it a problem ?

Do I need to configure xenbridge and cloudbridge on host via
/etc/network/interfaces file and is it required ?

Link for the log: http://apaste.info/kB4Y

My ifconfig is as follows:


root@krishna-S1400RP:/var/log/cloud/agent# ifconfig
cloud0    Link encap:Ethernet  HWaddr d2:a3:d7:58:ec:d9
          inet addr:169.254.0.1  Bcast:169.254.255.255  Mask:255.255.0.0
          inet6 addr: fe80::d0a3:d7ff:fe58:ecd9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:71 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:11405 (11.4 KB)

eth2      Link encap:Ethernet  HWaddr 00:1e:67:4d:06:84
          inet addr:10.223.169.166  Bcast:10.223.169.255  Mask:255.255.255.0
          inet6 addr: fe80::21e:67ff:fe4d:684/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:120393 errors:0 dropped:0 overruns:0 frame:0
          TX packets:54959 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:53992336 (53.9 MB)  TX bytes:8380555 (8.3 MB)
          Memory:c0900000-c0a00000

eth3      Link encap:Ethernet  HWaddr 00:1e:67:4d:06:83
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Memory:c0b00000-c0c00000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8818 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8818 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:442416 (442.4 KB)  TX bytes:442416 (442.4 KB)

virbr0    Link encap:Ethernet  HWaddr b2:92:ad:9d:e9:2e
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)





On Thu, Jun 6, 2013 at 2:19 PM, Prasanna Santhanam <ts...@apache.org> wrote:

> On Thu, Jun 06, 2013 at 01:58:51PM +0530, Er Krishna wrote:
> > Ahmad
> >
> > You mean to say in same file I should replace info from Trace? And what
> > about first line : debug = true is fine or shall I replace debug to trace
> > and should do trace=true ?
>
> First line doesn't matter. Just replace the instances of INFO with
> TRACE and share the info post agent restart via a pastebin.
>
>
> --
> Prasanna.,
>
> ------------------------
> Powered by BigRock.com
>
>

Re: unable to add host

Posted by Prasanna Santhanam <ts...@apache.org>.
On Thu, Jun 06, 2013 at 01:58:51PM +0530, Er Krishna wrote:
> Ahmad
> 
> You mean to say in same file I should replace info from Trace? And what
> about first line : debug = true is fine or shall I replace debug to trace
> and should do trace=true ?

First line doesn't matter. Just replace the instances of INFO with
TRACE and share the info post agent restart via a pastebin.


-- 
Prasanna.,

------------------------
Powered by BigRock.com


Re: unable to add host

Posted by Er Krishna <er...@gmail.com>.
Ahmad

You mean to say in same file I should replace info from Trace? And what
about first line : debug = true is fine or shall I replace debug to trace
and should do trace=true ?

Krish


On Thu, Jun 6, 2013 at 1:01 PM, Ahmad Emneina <ae...@gmail.com> wrote:

> I think TRACE is the better option, lets go with that.
>
> Ahmad
>
> On Jun 6, 2013, at 12:21 AM, Er Krishna <er...@gmail.com> wrote:
>
> > Hi Prasanna,
> >
> > On third point I followed the link. But I have only:
> >
> > ls -l /etc/cloud/agent/log4j-cloud.xml file. There is no directory like
> > /etc/clodstack. So I made a change in this file like :
> >
> > sed -i 's/INFO/DEBUG/g' log4j-cloud.xml
> >
> > and below mentioned one line
> >
> > <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
> > debug="true">
> >
> > Will it be fine ?
> >
> >
> > Krishna
> >
> > On Thu, Jun 6, 2013 at 12:35 PM, Prasanna Santhanam <ts...@apache.org>
> wrote:
> >
> >> On Thu, Jun 06, 2013 at 12:29:32PM +0530, Er Krishna wrote:
> >>> Prasanna,
> >>>
> >>> Thanks for the mail. here is my inline reply:
> >>>
> >>>
> >>> Before that -
> >>> 1. Is port 8250 open on the management server and listening for
> >>> connections?
> >>>
> >>>
> >>> |yes : O/P  on Management server is :
> >>> |root@krishna-S1200RP:~# lsof -i | grep -Rin 8250
> >>> |45:jsvc      1201           cloud  150u  IPv6  12925      0t0  TCP
> >> *:8250
> >>> (LISTEN)
> >>> |Pls confirm above is fine or not ? In case if it need any change, let
> me
> >>> know.
> >>
> >> This is good.
> >>
> >>>
> >>>
> >>>
> >>> 2. On your ubuntu host what is the output of lsmod | grep kvm
> >>>
> >>>
> >>> |root@krishna-S1200RP:~# lsmod | grep -Rin KVM
> >>> |39:kvm_intel             137888  0
> >>> |40:kvm                   422160  1 kvm_intel
> >>> root@krishna-S1200RP:~#
> >>>
> >>
> >> Good here!
> >>
> >>>
> >>> On the agent go to /etc/cloudstack/agent/log4j-*.
> >>>>
> >>>> xml. Within that
> >>>> s/DEBUG/TRACE/g and that should turn on TRACE for all components.
> >>>
> >>>
> >>> |I found       log4j-cloud.xml file in /etc/cloud/agent directory and
> >>> change below line. Is it fine ? Will it make debug enable ?
> >>> |<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
> >>> debug="false">
> >>> |to
> >>> |<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
> >>> debug="true">
> >>
> >> Sorry, the log should be set as explained in #3 at
> >> https://cwiki.apache.org/confluence/x/FgPMAQ
> >> --
> >> Prasanna.,
> >>
> >> ------------------------
> >> Powered by BigRock.com
> >>
> >>
>

Re: unable to add host

Posted by Ahmad Emneina <ae...@gmail.com>.
I think TRACE is the better option, lets go with that.

Ahmad

On Jun 6, 2013, at 12:21 AM, Er Krishna <er...@gmail.com> wrote:

> Hi Prasanna,
> 
> On third point I followed the link. But I have only:
> 
> ls -l /etc/cloud/agent/log4j-cloud.xml file. There is no directory like
> /etc/clodstack. So I made a change in this file like :
> 
> sed -i 's/INFO/DEBUG/g' log4j-cloud.xml
> 
> and below mentioned one line
> 
> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
> debug="true">
> 
> Will it be fine ?
> 
> 
> Krishna
> 
> On Thu, Jun 6, 2013 at 12:35 PM, Prasanna Santhanam <ts...@apache.org> wrote:
> 
>> On Thu, Jun 06, 2013 at 12:29:32PM +0530, Er Krishna wrote:
>>> Prasanna,
>>> 
>>> Thanks for the mail. here is my inline reply:
>>> 
>>> 
>>> Before that -
>>> 1. Is port 8250 open on the management server and listening for
>>> connections?
>>> 
>>> 
>>> |yes : O/P  on Management server is :
>>> |root@krishna-S1200RP:~# lsof -i | grep -Rin 8250
>>> |45:jsvc      1201           cloud  150u  IPv6  12925      0t0  TCP
>> *:8250
>>> (LISTEN)
>>> |Pls confirm above is fine or not ? In case if it need any change, let me
>>> know.
>> 
>> This is good.
>> 
>>> 
>>> 
>>> 
>>> 2. On your ubuntu host what is the output of lsmod | grep kvm
>>> 
>>> 
>>> |root@krishna-S1200RP:~# lsmod | grep -Rin KVM
>>> |39:kvm_intel             137888  0
>>> |40:kvm                   422160  1 kvm_intel
>>> root@krishna-S1200RP:~#
>>> 
>> 
>> Good here!
>> 
>>> 
>>> On the agent go to /etc/cloudstack/agent/log4j-*.
>>>> 
>>>> xml. Within that
>>>> s/DEBUG/TRACE/g and that should turn on TRACE for all components.
>>> 
>>> 
>>> |I found       log4j-cloud.xml file in /etc/cloud/agent directory and
>>> change below line. Is it fine ? Will it make debug enable ?
>>> |<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
>>> debug="false">
>>> |to
>>> |<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
>>> debug="true">
>> 
>> Sorry, the log should be set as explained in #3 at
>> https://cwiki.apache.org/confluence/x/FgPMAQ
>> --
>> Prasanna.,
>> 
>> ------------------------
>> Powered by BigRock.com
>> 
>> 

Re: unable to add host

Posted by Er Krishna <er...@gmail.com>.
Hi Prasanna,

On third point I followed the link. But I have only:

ls -l /etc/cloud/agent/log4j-cloud.xml file. There is no directory like
/etc/clodstack. So I made a change in this file like :

sed -i 's/INFO/DEBUG/g' log4j-cloud.xml

and below mentioned one line

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
debug="true">

Will it be fine ?


Krishna

On Thu, Jun 6, 2013 at 12:35 PM, Prasanna Santhanam <ts...@apache.org> wrote:

> On Thu, Jun 06, 2013 at 12:29:32PM +0530, Er Krishna wrote:
> > Prasanna,
> >
> > Thanks for the mail. here is my inline reply:
> >
> >
> > Before that -
> > 1. Is port 8250 open on the management server and listening for
> > connections?
> >
> >
> > |yes : O/P  on Management server is :
> > |root@krishna-S1200RP:~# lsof -i | grep -Rin 8250
> > |45:jsvc      1201           cloud  150u  IPv6  12925      0t0  TCP
> *:8250
> > (LISTEN)
> > |Pls confirm above is fine or not ? In case if it need any change, let me
> > know.
>
> This is good.
>
> >
> >
> >
> > 2. On your ubuntu host what is the output of lsmod | grep kvm
> >
> >
> > |root@krishna-S1200RP:~# lsmod | grep -Rin KVM
> > |39:kvm_intel             137888  0
> > |40:kvm                   422160  1 kvm_intel
> > root@krishna-S1200RP:~#
> >
>
> Good here!
>
> >
> > On the agent go to /etc/cloudstack/agent/log4j-*.
> > >
> > > xml. Within that
> > > s/DEBUG/TRACE/g and that should turn on TRACE for all components.
> >
> >
> > |I found       log4j-cloud.xml file in /etc/cloud/agent directory and
> > change below line. Is it fine ? Will it make debug enable ?
> > |<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
> > debug="false">
> > |to
> > |<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
> > debug="true">
>
> Sorry, the log should be set as explained in #3 at
> https://cwiki.apache.org/confluence/x/FgPMAQ
> --
> Prasanna.,
>
> ------------------------
> Powered by BigRock.com
>
>

Re: unable to add host

Posted by Prasanna Santhanam <ts...@apache.org>.
On Thu, Jun 06, 2013 at 12:29:32PM +0530, Er Krishna wrote:
> Prasanna,
> 
> Thanks for the mail. here is my inline reply:
> 
> 
> Before that -
> 1. Is port 8250 open on the management server and listening for
> connections?
> 
> 
> |yes : O/P  on Management server is :
> |root@krishna-S1200RP:~# lsof -i | grep -Rin 8250
> |45:jsvc      1201           cloud  150u  IPv6  12925      0t0  TCP *:8250
> (LISTEN)
> |Pls confirm above is fine or not ? In case if it need any change, let me
> know.

This is good.

> 
> 
> 
> 2. On your ubuntu host what is the output of lsmod | grep kvm
> 
> 
> |root@krishna-S1200RP:~# lsmod | grep -Rin KVM
> |39:kvm_intel             137888  0
> |40:kvm                   422160  1 kvm_intel
> root@krishna-S1200RP:~#
> 

Good here!

> 
> On the agent go to /etc/cloudstack/agent/log4j-*.
> >
> > xml. Within that
> > s/DEBUG/TRACE/g and that should turn on TRACE for all components.
> 
> 
> |I found       log4j-cloud.xml file in /etc/cloud/agent directory and
> change below line. Is it fine ? Will it make debug enable ?
> |<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
> debug="false">
> |to
> |<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
> debug="true">

Sorry, the log should be set as explained in #3 at
https://cwiki.apache.org/confluence/x/FgPMAQ
-- 
Prasanna.,

------------------------
Powered by BigRock.com


Re: unable to add host

Posted by Er Krishna <er...@gmail.com>.
Prasanna,

Thanks for the mail. here is my inline reply:


Before that -
1. Is port 8250 open on the management server and listening for
connections?


|yes : O/P  on Management server is :
|root@krishna-S1200RP:~# lsof -i | grep -Rin 8250
|45:jsvc      1201           cloud  150u  IPv6  12925      0t0  TCP *:8250
(LISTEN)
|Pls confirm above is fine or not ? In case if it need any change, let me
know.



2. On your ubuntu host what is the output of lsmod | grep kvm


|root@krishna-S1200RP:~# lsmod | grep -Rin KVM
|39:kvm_intel             137888  0
|40:kvm                   422160  1 kvm_intel
root@krishna-S1200RP:~#


On the agent go to /etc/cloudstack/agent/log4j-*.
>
> xml. Within that
> s/DEBUG/TRACE/g and that should turn on TRACE for all components.


|I found       log4j-cloud.xml file in /etc/cloud/agent directory and
change below line. Is it fine ? Will it make debug enable ?
|<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
debug="false">
|to
|<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
debug="true">





On Thu, Jun 6, 2013 at 12:04 PM, Prasanna Santhanam <ts...@apache.org> wrote:

> On Thu, Jun 06, 2013 at 12:00:31PM +0530, Er Krishna wrote:
> > Ahmad,
> >
> > I have restarted clod-agent and the log is as follows: at this time I
> have
> > not tried to add the host from management server: This log is just after
> > cloud-agent restart:
> >
> > 2013-06-06 11:41:03,225 INFO  [utils.component.ComponentLocator]
> > (main:null) Unable to find components.xml
> > 2013-06-06 11:41:03,226 INFO  [utils.component.ComponentLocator]
> > (main:null) Skipping configuration using components.xml
> > 2013-06-06 11:41:03,226 INFO  [cloud.agent.AgentShell] (main:null)
> > Implementation Version is 4.0.2.20130501180711
> > 2013-06-06 11:41:03,226 INFO  [cloud.agent.AgentShell] (main:null)
> > agent.properties found at /etc/cloud/agent/agent.properties
> > 2013-06-06 11:41:03,227 INFO  [cloud.agent.AgentShell] (main:null)
> > Defaulting to using properties file for storage
> > 2013-06-06 11:41:03,228 INFO  [cloud.agent.AgentShell] (main:null)
> > Defaulting to the constant time backoff algorithm
> > 2013-06-06 11:41:03,350 INFO  [cloud.agent.Agent] (main:null) id is
> > 2013-06-06 11:41:03,352 ERROR [cloud.resource.ServerResourceBase]
> > (main:null) Nics are not configured!
> > 2013-06-06 11:41:03,355 INFO  [cloud.resource.ServerResourceBase]
> > (main:null) Designating private to be nic eth2
> > 2013-06-06 11:41:03,420 INFO
> > [resource.virtualnetwork.VirtualRoutingResource] (main:null)
> > VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
> > 2013-06-06 11:41:03,961 INFO  [kvm.resource.LibvirtComputingResource]
> > (main:null) No libvirt.vif.driver specififed. Defaults to
> BridgeVifDriver.
> > 2013-06-06 11:41:04,016 INFO  [cloud.agent.Agent] (main:null) Agent [id =
> > new : type = LibvirtComputingResource : zone = default : pod = default :
> > workers = 5 : host = localhost : port = 8250
> > 2013-06-06 11:41:04,034 INFO  [utils.nio.NioClient] (Agent-Selector:null)
> > Connecting to localhost:8250
> > 2013-06-06 11:41:04,036 ERROR [utils.nio.NioConnection]
> > (Agent-Selector:null) Unable to connect to remote
> > 2013-06-06 11:41:09,041 INFO  [utils.nio.NioClient] (Agent-Selector:null)
> > Connecting to localhost:8250
> > 2013-06-06 11:41:09,042 ERROR [utils.nio.NioConnection]
> > (Agent-Selector:null) Unable to connect to remote
> >
> >
> >
> >
> >
> >
> > I am first time using java and cloudstack so pls help me to set the log4j
> > properties to debug or trace level. How to do it, I dont know. I have
> used
> > repositories to install the cloudagent packages. pls tell me which file I
> > need to make what entries and how to restart it ?
>
> On the agent go to /etc/cloudstack/agent/log4j-*.xml. Within that
> s/DEBUG/TRACE/g and that should turn on TRACE for all components.
>
> Before that -
> 1. Is port 8250 open on the management server and listening for
> connections?
> 2. On your ubuntu host what is the output of lsmod | grep kvm
> >
> > Krishna
> >
> >
> >
> >
> > On Wed, Jun 5, 2013 at 10:22 PM, Ahmad Emneina <ae...@gmail.com>
> wrote:
> >
> > > Can you restart the cloud-agent service on the hypervisor host and post
> > > the output from those logs? Also ensure log4j is set to TRACE or DEBUG
> > > level logging before the restart.
> > >
> > > Ahmad
> > >
> > > On Jun 5, 2013, at 9:35 AM, Er Krishna <er...@gmail.com> wrote:
> > >
> > > > On 5 Jun 2013 21:59, "Ahmad Emneina" <ae...@gmail.com> wrote:
> > > >>
> > > >> Looks like there was a timeout connecting to the host. What
> hypervisor
> > > > are you using?
> > > >
> > > > Kvm
> > > >>
> > > >> Ahmad
> > > >>
> > > >> On Jun 5, 2013, at 7:14 AM, Er Krishna <er...@gmail.com> wrote:
> > > >>
> > > >>> Host and management Server are seperated and both have Ubuntu
> 12.0.4
> > > and
> > > >>> cloudstack version on both node is 4.0.2 . I have exported primary
> and
> > > >>> secondry directory via NFS from management to host.  On secondry
> node
> > > VM
> > > >>> templates are there. I have configured NTP on both but still the
> > > problem
> > > >>> persist. I have pasted management server log at following location:
> > > >>>
> > > >>>
> > > >>> http://apaste.info/in3l
> > > >>>
> > > >>> Krishna
> > > >>>
> > > >>>
> > > >>> On Tue, Jun 4, 2013 at 6:04 PM, David Nalley <da...@gnsa.us>
> wrote:
> > > >>>
> > > >>>> How about we start with what platform and what version of
> CloudStack.
> > > >>>>
> > > >>>> Also - your agent.log timestamp and management server log
> timestamps
> > > >>>> have a 30 minute skew, and the management server logs are remotely
> > > >>>> related to adding an agent - can we see the actual time period
> that
> > > >>>> you tried to add a host - preferably several hundred lines -
> > > >>>> apaste.info that and share a link.
> > > >>>>
> > > >>>> --David
> > > >>>>
> > > >>>> On Tue, Jun 4, 2013 at 7:56 AM, Er Krishna <er...@gmail.com>
> > > wrote:
> > > >>>>> I am not able to add host. Pls help me to debug this.
> > > >>>>>
> > > >>>>> My host machine agent.log is:
> > > >>>>> 2016-11-02 18:46:56,633 INFO  [utils.nio.NioClient]
> > > > (Agent-Selector:null)
> > > >>>>> Connecting to localhost:8250
> > > >>>>> 2016-11-02 18:46:56,633 ERROR [utils.nio.NioConnection]
> > > >>>>> (Agent-Selector:null) Unable to connect to remote
> > > >>>>> 2016-11-02 18:46:56,732 INFO  [cloud.agent.Agent]
> > > >>>>> (AgentShutdownThread:null) Stopping the agent: Reason = sig.kill
> > > >>>>>
> > > >>>>>
> > > >>>>> Management server log is :
> > > >>>>>
> > > >>>>> 2013-06-04 17:18:14,118 DEBUG
> > > >>>>> [storage.secondary.SecondaryStorageManagerImpl]
> (secstorage-1:null)
> > > > Zone
> > > >>>> 2
> > > >>>>> is not ready to launch secondary storage VM yet
> > > >>>>> 2013-06-04 17:18:14,157 DEBUG
> > > >>>> [cloud.consoleproxy.ConsoleProxyManagerImpl]
> > > >>>>> (consoleproxy-1:null) Skip capacity scan due to there is no
> Primary
> > > >>>> Storage
> > > >>>>> UPintenance mode
> > > >>>>> 2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
> > > >>>>> (CapacityChecker:null) Running Capacity Checker ...
> > > >>>>> 2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
> > > >>>>> (CapacityChecker:null) recalculating system capacity
> > > >>>>> 2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
> > > >>>>> (CapacityChecker:null) Executing cpu/ram capacity update
> > > >>>>> 2013-06-04 17:18:14,547 DEBUG [cloud.alert.AlertManagerImpl]
> > > >>>>> (CapacityChecker:null) Done executing cpu/ram capacity update
> > > >>>>>
> > > >>>>>
> > > >>>>>
> > > >>>>> Krishna
> > > >>>>
> > >
>
> --
> Prasanna.,
>
> ------------------------
> Powered by BigRock.com
>
>

Re: unable to add host

Posted by Prasanna Santhanam <ts...@apache.org>.
On Thu, Jun 06, 2013 at 12:00:31PM +0530, Er Krishna wrote:
> Ahmad,
> 
> I have restarted clod-agent and the log is as follows: at this time I have
> not tried to add the host from management server: This log is just after
> cloud-agent restart:
> 
> 2013-06-06 11:41:03,225 INFO  [utils.component.ComponentLocator]
> (main:null) Unable to find components.xml
> 2013-06-06 11:41:03,226 INFO  [utils.component.ComponentLocator]
> (main:null) Skipping configuration using components.xml
> 2013-06-06 11:41:03,226 INFO  [cloud.agent.AgentShell] (main:null)
> Implementation Version is 4.0.2.20130501180711
> 2013-06-06 11:41:03,226 INFO  [cloud.agent.AgentShell] (main:null)
> agent.properties found at /etc/cloud/agent/agent.properties
> 2013-06-06 11:41:03,227 INFO  [cloud.agent.AgentShell] (main:null)
> Defaulting to using properties file for storage
> 2013-06-06 11:41:03,228 INFO  [cloud.agent.AgentShell] (main:null)
> Defaulting to the constant time backoff algorithm
> 2013-06-06 11:41:03,350 INFO  [cloud.agent.Agent] (main:null) id is
> 2013-06-06 11:41:03,352 ERROR [cloud.resource.ServerResourceBase]
> (main:null) Nics are not configured!
> 2013-06-06 11:41:03,355 INFO  [cloud.resource.ServerResourceBase]
> (main:null) Designating private to be nic eth2
> 2013-06-06 11:41:03,420 INFO
> [resource.virtualnetwork.VirtualRoutingResource] (main:null)
> VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
> 2013-06-06 11:41:03,961 INFO  [kvm.resource.LibvirtComputingResource]
> (main:null) No libvirt.vif.driver specififed. Defaults to BridgeVifDriver.
> 2013-06-06 11:41:04,016 INFO  [cloud.agent.Agent] (main:null) Agent [id =
> new : type = LibvirtComputingResource : zone = default : pod = default :
> workers = 5 : host = localhost : port = 8250
> 2013-06-06 11:41:04,034 INFO  [utils.nio.NioClient] (Agent-Selector:null)
> Connecting to localhost:8250
> 2013-06-06 11:41:04,036 ERROR [utils.nio.NioConnection]
> (Agent-Selector:null) Unable to connect to remote
> 2013-06-06 11:41:09,041 INFO  [utils.nio.NioClient] (Agent-Selector:null)
> Connecting to localhost:8250
> 2013-06-06 11:41:09,042 ERROR [utils.nio.NioConnection]
> (Agent-Selector:null) Unable to connect to remote
> 
> 
> 
> 
> 
> 
> I am first time using java and cloudstack so pls help me to set the log4j
> properties to debug or trace level. How to do it, I dont know. I have used
> repositories to install the cloudagent packages. pls tell me which file I
> need to make what entries and how to restart it ?

On the agent go to /etc/cloudstack/agent/log4j-*.xml. Within that
s/DEBUG/TRACE/g and that should turn on TRACE for all components.

Before that -
1. Is port 8250 open on the management server and listening for
connections?
2. On your ubuntu host what is the output of lsmod | grep kvm
> 
> Krishna
> 
> 
> 
> 
> On Wed, Jun 5, 2013 at 10:22 PM, Ahmad Emneina <ae...@gmail.com> wrote:
> 
> > Can you restart the cloud-agent service on the hypervisor host and post
> > the output from those logs? Also ensure log4j is set to TRACE or DEBUG
> > level logging before the restart.
> >
> > Ahmad
> >
> > On Jun 5, 2013, at 9:35 AM, Er Krishna <er...@gmail.com> wrote:
> >
> > > On 5 Jun 2013 21:59, "Ahmad Emneina" <ae...@gmail.com> wrote:
> > >>
> > >> Looks like there was a timeout connecting to the host. What hypervisor
> > > are you using?
> > >
> > > Kvm
> > >>
> > >> Ahmad
> > >>
> > >> On Jun 5, 2013, at 7:14 AM, Er Krishna <er...@gmail.com> wrote:
> > >>
> > >>> Host and management Server are seperated and both have Ubuntu 12.0.4
> > and
> > >>> cloudstack version on both node is 4.0.2 . I have exported primary and
> > >>> secondry directory via NFS from management to host.  On secondry node
> > VM
> > >>> templates are there. I have configured NTP on both but still the
> > problem
> > >>> persist. I have pasted management server log at following location:
> > >>>
> > >>>
> > >>> http://apaste.info/in3l
> > >>>
> > >>> Krishna
> > >>>
> > >>>
> > >>> On Tue, Jun 4, 2013 at 6:04 PM, David Nalley <da...@gnsa.us> wrote:
> > >>>
> > >>>> How about we start with what platform and what version of CloudStack.
> > >>>>
> > >>>> Also - your agent.log timestamp and management server log timestamps
> > >>>> have a 30 minute skew, and the management server logs are remotely
> > >>>> related to adding an agent - can we see the actual time period that
> > >>>> you tried to add a host - preferably several hundred lines -
> > >>>> apaste.info that and share a link.
> > >>>>
> > >>>> --David
> > >>>>
> > >>>> On Tue, Jun 4, 2013 at 7:56 AM, Er Krishna <er...@gmail.com>
> > wrote:
> > >>>>> I am not able to add host. Pls help me to debug this.
> > >>>>>
> > >>>>> My host machine agent.log is:
> > >>>>> 2016-11-02 18:46:56,633 INFO  [utils.nio.NioClient]
> > > (Agent-Selector:null)
> > >>>>> Connecting to localhost:8250
> > >>>>> 2016-11-02 18:46:56,633 ERROR [utils.nio.NioConnection]
> > >>>>> (Agent-Selector:null) Unable to connect to remote
> > >>>>> 2016-11-02 18:46:56,732 INFO  [cloud.agent.Agent]
> > >>>>> (AgentShutdownThread:null) Stopping the agent: Reason = sig.kill
> > >>>>>
> > >>>>>
> > >>>>> Management server log is :
> > >>>>>
> > >>>>> 2013-06-04 17:18:14,118 DEBUG
> > >>>>> [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null)
> > > Zone
> > >>>> 2
> > >>>>> is not ready to launch secondary storage VM yet
> > >>>>> 2013-06-04 17:18:14,157 DEBUG
> > >>>> [cloud.consoleproxy.ConsoleProxyManagerImpl]
> > >>>>> (consoleproxy-1:null) Skip capacity scan due to there is no Primary
> > >>>> Storage
> > >>>>> UPintenance mode
> > >>>>> 2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
> > >>>>> (CapacityChecker:null) Running Capacity Checker ...
> > >>>>> 2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
> > >>>>> (CapacityChecker:null) recalculating system capacity
> > >>>>> 2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
> > >>>>> (CapacityChecker:null) Executing cpu/ram capacity update
> > >>>>> 2013-06-04 17:18:14,547 DEBUG [cloud.alert.AlertManagerImpl]
> > >>>>> (CapacityChecker:null) Done executing cpu/ram capacity update
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>> Krishna
> > >>>>
> >

-- 
Prasanna.,

------------------------
Powered by BigRock.com


Re: unable to add host

Posted by Er Krishna <er...@gmail.com>.
Ahmad,

I have restarted clod-agent and the log is as follows: at this time I have
not tried to add the host from management server: This log is just after
cloud-agent restart:

2013-06-06 11:41:03,225 INFO  [utils.component.ComponentLocator]
(main:null) Unable to find components.xml
2013-06-06 11:41:03,226 INFO  [utils.component.ComponentLocator]
(main:null) Skipping configuration using components.xml
2013-06-06 11:41:03,226 INFO  [cloud.agent.AgentShell] (main:null)
Implementation Version is 4.0.2.20130501180711
2013-06-06 11:41:03,226 INFO  [cloud.agent.AgentShell] (main:null)
agent.properties found at /etc/cloud/agent/agent.properties
2013-06-06 11:41:03,227 INFO  [cloud.agent.AgentShell] (main:null)
Defaulting to using properties file for storage
2013-06-06 11:41:03,228 INFO  [cloud.agent.AgentShell] (main:null)
Defaulting to the constant time backoff algorithm
2013-06-06 11:41:03,350 INFO  [cloud.agent.Agent] (main:null) id is
2013-06-06 11:41:03,352 ERROR [cloud.resource.ServerResourceBase]
(main:null) Nics are not configured!
2013-06-06 11:41:03,355 INFO  [cloud.resource.ServerResourceBase]
(main:null) Designating private to be nic eth2
2013-06-06 11:41:03,420 INFO
[resource.virtualnetwork.VirtualRoutingResource] (main:null)
VirtualRoutingResource _scriptDir to use: scripts/network/domr/kvm
2013-06-06 11:41:03,961 INFO  [kvm.resource.LibvirtComputingResource]
(main:null) No libvirt.vif.driver specififed. Defaults to BridgeVifDriver.
2013-06-06 11:41:04,016 INFO  [cloud.agent.Agent] (main:null) Agent [id =
new : type = LibvirtComputingResource : zone = default : pod = default :
workers = 5 : host = localhost : port = 8250
2013-06-06 11:41:04,034 INFO  [utils.nio.NioClient] (Agent-Selector:null)
Connecting to localhost:8250
2013-06-06 11:41:04,036 ERROR [utils.nio.NioConnection]
(Agent-Selector:null) Unable to connect to remote
2013-06-06 11:41:09,041 INFO  [utils.nio.NioClient] (Agent-Selector:null)
Connecting to localhost:8250
2013-06-06 11:41:09,042 ERROR [utils.nio.NioConnection]
(Agent-Selector:null) Unable to connect to remote






I am first time using java and cloudstack so pls help me to set the log4j
properties to debug or trace level. How to do it, I dont know. I have used
repositories to install the cloudagent packages. pls tell me which file I
need to make what entries and how to restart it ?

Krishna




On Wed, Jun 5, 2013 at 10:22 PM, Ahmad Emneina <ae...@gmail.com> wrote:

> Can you restart the cloud-agent service on the hypervisor host and post
> the output from those logs? Also ensure log4j is set to TRACE or DEBUG
> level logging before the restart.
>
> Ahmad
>
> On Jun 5, 2013, at 9:35 AM, Er Krishna <er...@gmail.com> wrote:
>
> > On 5 Jun 2013 21:59, "Ahmad Emneina" <ae...@gmail.com> wrote:
> >>
> >> Looks like there was a timeout connecting to the host. What hypervisor
> > are you using?
> >
> > Kvm
> >>
> >> Ahmad
> >>
> >> On Jun 5, 2013, at 7:14 AM, Er Krishna <er...@gmail.com> wrote:
> >>
> >>> Host and management Server are seperated and both have Ubuntu 12.0.4
> and
> >>> cloudstack version on both node is 4.0.2 . I have exported primary and
> >>> secondry directory via NFS from management to host.  On secondry node
> VM
> >>> templates are there. I have configured NTP on both but still the
> problem
> >>> persist. I have pasted management server log at following location:
> >>>
> >>>
> >>> http://apaste.info/in3l
> >>>
> >>> Krishna
> >>>
> >>>
> >>> On Tue, Jun 4, 2013 at 6:04 PM, David Nalley <da...@gnsa.us> wrote:
> >>>
> >>>> How about we start with what platform and what version of CloudStack.
> >>>>
> >>>> Also - your agent.log timestamp and management server log timestamps
> >>>> have a 30 minute skew, and the management server logs are remotely
> >>>> related to adding an agent - can we see the actual time period that
> >>>> you tried to add a host - preferably several hundred lines -
> >>>> apaste.info that and share a link.
> >>>>
> >>>> --David
> >>>>
> >>>> On Tue, Jun 4, 2013 at 7:56 AM, Er Krishna <er...@gmail.com>
> wrote:
> >>>>> I am not able to add host. Pls help me to debug this.
> >>>>>
> >>>>> My host machine agent.log is:
> >>>>> 2016-11-02 18:46:56,633 INFO  [utils.nio.NioClient]
> > (Agent-Selector:null)
> >>>>> Connecting to localhost:8250
> >>>>> 2016-11-02 18:46:56,633 ERROR [utils.nio.NioConnection]
> >>>>> (Agent-Selector:null) Unable to connect to remote
> >>>>> 2016-11-02 18:46:56,732 INFO  [cloud.agent.Agent]
> >>>>> (AgentShutdownThread:null) Stopping the agent: Reason = sig.kill
> >>>>>
> >>>>>
> >>>>> Management server log is :
> >>>>>
> >>>>> 2013-06-04 17:18:14,118 DEBUG
> >>>>> [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null)
> > Zone
> >>>> 2
> >>>>> is not ready to launch secondary storage VM yet
> >>>>> 2013-06-04 17:18:14,157 DEBUG
> >>>> [cloud.consoleproxy.ConsoleProxyManagerImpl]
> >>>>> (consoleproxy-1:null) Skip capacity scan due to there is no Primary
> >>>> Storage
> >>>>> UPintenance mode
> >>>>> 2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
> >>>>> (CapacityChecker:null) Running Capacity Checker ...
> >>>>> 2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
> >>>>> (CapacityChecker:null) recalculating system capacity
> >>>>> 2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
> >>>>> (CapacityChecker:null) Executing cpu/ram capacity update
> >>>>> 2013-06-04 17:18:14,547 DEBUG [cloud.alert.AlertManagerImpl]
> >>>>> (CapacityChecker:null) Done executing cpu/ram capacity update
> >>>>>
> >>>>>
> >>>>>
> >>>>> Krishna
> >>>>
>

Re: unable to add host

Posted by Ahmad Emneina <ae...@gmail.com>.
Can you restart the cloud-agent service on the hypervisor host and post the output from those logs? Also ensure log4j is set to TRACE or DEBUG level logging before the restart.

Ahmad

On Jun 5, 2013, at 9:35 AM, Er Krishna <er...@gmail.com> wrote:

> On 5 Jun 2013 21:59, "Ahmad Emneina" <ae...@gmail.com> wrote:
>> 
>> Looks like there was a timeout connecting to the host. What hypervisor
> are you using?
> 
> Kvm
>> 
>> Ahmad
>> 
>> On Jun 5, 2013, at 7:14 AM, Er Krishna <er...@gmail.com> wrote:
>> 
>>> Host and management Server are seperated and both have Ubuntu 12.0.4 and
>>> cloudstack version on both node is 4.0.2 . I have exported primary and
>>> secondry directory via NFS from management to host.  On secondry node VM
>>> templates are there. I have configured NTP on both but still the problem
>>> persist. I have pasted management server log at following location:
>>> 
>>> 
>>> http://apaste.info/in3l
>>> 
>>> Krishna
>>> 
>>> 
>>> On Tue, Jun 4, 2013 at 6:04 PM, David Nalley <da...@gnsa.us> wrote:
>>> 
>>>> How about we start with what platform and what version of CloudStack.
>>>> 
>>>> Also - your agent.log timestamp and management server log timestamps
>>>> have a 30 minute skew, and the management server logs are remotely
>>>> related to adding an agent - can we see the actual time period that
>>>> you tried to add a host - preferably several hundred lines -
>>>> apaste.info that and share a link.
>>>> 
>>>> --David
>>>> 
>>>> On Tue, Jun 4, 2013 at 7:56 AM, Er Krishna <er...@gmail.com> wrote:
>>>>> I am not able to add host. Pls help me to debug this.
>>>>> 
>>>>> My host machine agent.log is:
>>>>> 2016-11-02 18:46:56,633 INFO  [utils.nio.NioClient]
> (Agent-Selector:null)
>>>>> Connecting to localhost:8250
>>>>> 2016-11-02 18:46:56,633 ERROR [utils.nio.NioConnection]
>>>>> (Agent-Selector:null) Unable to connect to remote
>>>>> 2016-11-02 18:46:56,732 INFO  [cloud.agent.Agent]
>>>>> (AgentShutdownThread:null) Stopping the agent: Reason = sig.kill
>>>>> 
>>>>> 
>>>>> Management server log is :
>>>>> 
>>>>> 2013-06-04 17:18:14,118 DEBUG
>>>>> [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null)
> Zone
>>>> 2
>>>>> is not ready to launch secondary storage VM yet
>>>>> 2013-06-04 17:18:14,157 DEBUG
>>>> [cloud.consoleproxy.ConsoleProxyManagerImpl]
>>>>> (consoleproxy-1:null) Skip capacity scan due to there is no Primary
>>>> Storage
>>>>> UPintenance mode
>>>>> 2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
>>>>> (CapacityChecker:null) Running Capacity Checker ...
>>>>> 2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
>>>>> (CapacityChecker:null) recalculating system capacity
>>>>> 2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
>>>>> (CapacityChecker:null) Executing cpu/ram capacity update
>>>>> 2013-06-04 17:18:14,547 DEBUG [cloud.alert.AlertManagerImpl]
>>>>> (CapacityChecker:null) Done executing cpu/ram capacity update
>>>>> 
>>>>> 
>>>>> 
>>>>> Krishna
>>>> 

Re: unable to add host

Posted by Er Krishna <er...@gmail.com>.
On 5 Jun 2013 21:59, "Ahmad Emneina" <ae...@gmail.com> wrote:
>
> Looks like there was a timeout connecting to the host. What hypervisor
are you using?

Kvm
>
> Ahmad
>
> On Jun 5, 2013, at 7:14 AM, Er Krishna <er...@gmail.com> wrote:
>
> > Host and management Server are seperated and both have Ubuntu 12.0.4 and
> > cloudstack version on both node is 4.0.2 . I have exported primary and
> > secondry directory via NFS from management to host.  On secondry node VM
> > templates are there. I have configured NTP on both but still the problem
> > persist. I have pasted management server log at following location:
> >
> >
> > http://apaste.info/in3l
> >
> > Krishna
> >
> >
> > On Tue, Jun 4, 2013 at 6:04 PM, David Nalley <da...@gnsa.us> wrote:
> >
> >> How about we start with what platform and what version of CloudStack.
> >>
> >> Also - your agent.log timestamp and management server log timestamps
> >> have a 30 minute skew, and the management server logs are remotely
> >> related to adding an agent - can we see the actual time period that
> >> you tried to add a host - preferably several hundred lines -
> >> apaste.info that and share a link.
> >>
> >> --David
> >>
> >> On Tue, Jun 4, 2013 at 7:56 AM, Er Krishna <er...@gmail.com> wrote:
> >>> I am not able to add host. Pls help me to debug this.
> >>>
> >>> My host machine agent.log is:
> >>> 2016-11-02 18:46:56,633 INFO  [utils.nio.NioClient]
(Agent-Selector:null)
> >>> Connecting to localhost:8250
> >>> 2016-11-02 18:46:56,633 ERROR [utils.nio.NioConnection]
> >>> (Agent-Selector:null) Unable to connect to remote
> >>> 2016-11-02 18:46:56,732 INFO  [cloud.agent.Agent]
> >>> (AgentShutdownThread:null) Stopping the agent: Reason = sig.kill
> >>>
> >>>
> >>> Management server log is :
> >>>
> >>> 2013-06-04 17:18:14,118 DEBUG
> >>> [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null)
Zone
> >> 2
> >>> is not ready to launch secondary storage VM yet
> >>> 2013-06-04 17:18:14,157 DEBUG
> >> [cloud.consoleproxy.ConsoleProxyManagerImpl]
> >>> (consoleproxy-1:null) Skip capacity scan due to there is no Primary
> >> Storage
> >>> UPintenance mode
> >>> 2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
> >>> (CapacityChecker:null) Running Capacity Checker ...
> >>> 2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
> >>> (CapacityChecker:null) recalculating system capacity
> >>> 2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
> >>> (CapacityChecker:null) Executing cpu/ram capacity update
> >>> 2013-06-04 17:18:14,547 DEBUG [cloud.alert.AlertManagerImpl]
> >>> (CapacityChecker:null) Done executing cpu/ram capacity update
> >>>
> >>>
> >>>
> >>> Krishna
> >>

Re: unable to add host

Posted by Ahmad Emneina <ae...@gmail.com>.
Looks like there was a timeout connecting to the host. What hypervisor are you using?

Ahmad

On Jun 5, 2013, at 7:14 AM, Er Krishna <er...@gmail.com> wrote:

> Host and management Server are seperated and both have Ubuntu 12.0.4 and
> cloudstack version on both node is 4.0.2 . I have exported primary and
> secondry directory via NFS from management to host.  On secondry node VM
> templates are there. I have configured NTP on both but still the problem
> persist. I have pasted management server log at following location:
> 
> 
> http://apaste.info/in3l
> 
> Krishna
> 
> 
> On Tue, Jun 4, 2013 at 6:04 PM, David Nalley <da...@gnsa.us> wrote:
> 
>> How about we start with what platform and what version of CloudStack.
>> 
>> Also - your agent.log timestamp and management server log timestamps
>> have a 30 minute skew, and the management server logs are remotely
>> related to adding an agent - can we see the actual time period that
>> you tried to add a host - preferably several hundred lines -
>> apaste.info that and share a link.
>> 
>> --David
>> 
>> On Tue, Jun 4, 2013 at 7:56 AM, Er Krishna <er...@gmail.com> wrote:
>>> I am not able to add host. Pls help me to debug this.
>>> 
>>> My host machine agent.log is:
>>> 2016-11-02 18:46:56,633 INFO  [utils.nio.NioClient] (Agent-Selector:null)
>>> Connecting to localhost:8250
>>> 2016-11-02 18:46:56,633 ERROR [utils.nio.NioConnection]
>>> (Agent-Selector:null) Unable to connect to remote
>>> 2016-11-02 18:46:56,732 INFO  [cloud.agent.Agent]
>>> (AgentShutdownThread:null) Stopping the agent: Reason = sig.kill
>>> 
>>> 
>>> Management server log is :
>>> 
>>> 2013-06-04 17:18:14,118 DEBUG
>>> [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Zone
>> 2
>>> is not ready to launch secondary storage VM yet
>>> 2013-06-04 17:18:14,157 DEBUG
>> [cloud.consoleproxy.ConsoleProxyManagerImpl]
>>> (consoleproxy-1:null) Skip capacity scan due to there is no Primary
>> Storage
>>> UPintenance mode
>>> 2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
>>> (CapacityChecker:null) Running Capacity Checker ...
>>> 2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
>>> (CapacityChecker:null) recalculating system capacity
>>> 2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
>>> (CapacityChecker:null) Executing cpu/ram capacity update
>>> 2013-06-04 17:18:14,547 DEBUG [cloud.alert.AlertManagerImpl]
>>> (CapacityChecker:null) Done executing cpu/ram capacity update
>>> 
>>> 
>>> 
>>> Krishna
>> 

Re: unable to add host

Posted by Er Krishna <er...@gmail.com>.
Yes ssh is fine and i have disabled firewall too.
On 5 Jun 2013 22:00, "Ahmad Emneina" <ae...@gmail.com> wrote:

> Sorry just noticed the agent.log. Can you ssh to the agent host from the
> management server?
>
> Ahmad
>
> On Jun 5, 2013, at 7:14 AM, Er Krishna <er...@gmail.com> wrote:
>
> > Host and management Server are seperated and both have Ubuntu 12.0.4 and
> > cloudstack version on both node is 4.0.2 . I have exported primary and
> > secondry directory via NFS from management to host.  On secondry node VM
> > templates are there. I have configured NTP on both but still the problem
> > persist. I have pasted management server log at following location:
> >
> >
> > http://apaste.info/in3l
> >
> > Krishna
> >
> >
> > On Tue, Jun 4, 2013 at 6:04 PM, David Nalley <da...@gnsa.us> wrote:
> >
> >> How about we start with what platform and what version of CloudStack.
> >>
> >> Also - your agent.log timestamp and management server log timestamps
> >> have a 30 minute skew, and the management server logs are remotely
> >> related to adding an agent - can we see the actual time period that
> >> you tried to add a host - preferably several hundred lines -
> >> apaste.info that and share a link.
> >>
> >> --David
> >>
> >> On Tue, Jun 4, 2013 at 7:56 AM, Er Krishna <er...@gmail.com> wrote:
> >>> I am not able to add host. Pls help me to debug this.
> >>>
> >>> My host machine agent.log is:
> >>> 2016-11-02 18:46:56,633 INFO  [utils.nio.NioClient]
> (Agent-Selector:null)
> >>> Connecting to localhost:8250
> >>> 2016-11-02 18:46:56,633 ERROR [utils.nio.NioConnection]
> >>> (Agent-Selector:null) Unable to connect to remote
> >>> 2016-11-02 18:46:56,732 INFO  [cloud.agent.Agent]
> >>> (AgentShutdownThread:null) Stopping the agent: Reason = sig.kill
> >>>
> >>>
> >>> Management server log is :
> >>>
> >>> 2013-06-04 17:18:14,118 DEBUG
> >>> [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null)
> Zone
> >> 2
> >>> is not ready to launch secondary storage VM yet
> >>> 2013-06-04 17:18:14,157 DEBUG
> >> [cloud.consoleproxy.ConsoleProxyManagerImpl]
> >>> (consoleproxy-1:null) Skip capacity scan due to there is no Primary
> >> Storage
> >>> UPintenance mode
> >>> 2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
> >>> (CapacityChecker:null) Running Capacity Checker ...
> >>> 2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
> >>> (CapacityChecker:null) recalculating system capacity
> >>> 2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
> >>> (CapacityChecker:null) Executing cpu/ram capacity update
> >>> 2013-06-04 17:18:14,547 DEBUG [cloud.alert.AlertManagerImpl]
> >>> (CapacityChecker:null) Done executing cpu/ram capacity update
> >>>
> >>>
> >>>
> >>> Krishna
> >>
>

Re: unable to add host

Posted by Ahmad Emneina <ae...@gmail.com>.
Sorry just noticed the agent.log. Can you ssh to the agent host from the management server?

Ahmad

On Jun 5, 2013, at 7:14 AM, Er Krishna <er...@gmail.com> wrote:

> Host and management Server are seperated and both have Ubuntu 12.0.4 and
> cloudstack version on both node is 4.0.2 . I have exported primary and
> secondry directory via NFS from management to host.  On secondry node VM
> templates are there. I have configured NTP on both but still the problem
> persist. I have pasted management server log at following location:
> 
> 
> http://apaste.info/in3l
> 
> Krishna
> 
> 
> On Tue, Jun 4, 2013 at 6:04 PM, David Nalley <da...@gnsa.us> wrote:
> 
>> How about we start with what platform and what version of CloudStack.
>> 
>> Also - your agent.log timestamp and management server log timestamps
>> have a 30 minute skew, and the management server logs are remotely
>> related to adding an agent - can we see the actual time period that
>> you tried to add a host - preferably several hundred lines -
>> apaste.info that and share a link.
>> 
>> --David
>> 
>> On Tue, Jun 4, 2013 at 7:56 AM, Er Krishna <er...@gmail.com> wrote:
>>> I am not able to add host. Pls help me to debug this.
>>> 
>>> My host machine agent.log is:
>>> 2016-11-02 18:46:56,633 INFO  [utils.nio.NioClient] (Agent-Selector:null)
>>> Connecting to localhost:8250
>>> 2016-11-02 18:46:56,633 ERROR [utils.nio.NioConnection]
>>> (Agent-Selector:null) Unable to connect to remote
>>> 2016-11-02 18:46:56,732 INFO  [cloud.agent.Agent]
>>> (AgentShutdownThread:null) Stopping the agent: Reason = sig.kill
>>> 
>>> 
>>> Management server log is :
>>> 
>>> 2013-06-04 17:18:14,118 DEBUG
>>> [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Zone
>> 2
>>> is not ready to launch secondary storage VM yet
>>> 2013-06-04 17:18:14,157 DEBUG
>> [cloud.consoleproxy.ConsoleProxyManagerImpl]
>>> (consoleproxy-1:null) Skip capacity scan due to there is no Primary
>> Storage
>>> UPintenance mode
>>> 2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
>>> (CapacityChecker:null) Running Capacity Checker ...
>>> 2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
>>> (CapacityChecker:null) recalculating system capacity
>>> 2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
>>> (CapacityChecker:null) Executing cpu/ram capacity update
>>> 2013-06-04 17:18:14,547 DEBUG [cloud.alert.AlertManagerImpl]
>>> (CapacityChecker:null) Done executing cpu/ram capacity update
>>> 
>>> 
>>> 
>>> Krishna
>> 

Re: unable to add host

Posted by Er Krishna <er...@gmail.com>.
Host and management Server are seperated and both have Ubuntu 12.0.4 and
cloudstack version on both node is 4.0.2 . I have exported primary and
secondry directory via NFS from management to host.  On secondry node VM
templates are there. I have configured NTP on both but still the problem
persist. I have pasted management server log at following location:


http://apaste.info/in3l

Krishna


On Tue, Jun 4, 2013 at 6:04 PM, David Nalley <da...@gnsa.us> wrote:

> How about we start with what platform and what version of CloudStack.
>
> Also - your agent.log timestamp and management server log timestamps
> have a 30 minute skew, and the management server logs are remotely
> related to adding an agent - can we see the actual time period that
> you tried to add a host - preferably several hundred lines -
> apaste.info that and share a link.
>
> --David
>
> On Tue, Jun 4, 2013 at 7:56 AM, Er Krishna <er...@gmail.com> wrote:
> > I am not able to add host. Pls help me to debug this.
> >
> > My host machine agent.log is:
> > 2016-11-02 18:46:56,633 INFO  [utils.nio.NioClient] (Agent-Selector:null)
> > Connecting to localhost:8250
> > 2016-11-02 18:46:56,633 ERROR [utils.nio.NioConnection]
> > (Agent-Selector:null) Unable to connect to remote
> > 2016-11-02 18:46:56,732 INFO  [cloud.agent.Agent]
> > (AgentShutdownThread:null) Stopping the agent: Reason = sig.kill
> >
> >
> > Management server log is :
> >
> > 2013-06-04 17:18:14,118 DEBUG
> > [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Zone
> 2
> > is not ready to launch secondary storage VM yet
> > 2013-06-04 17:18:14,157 DEBUG
> [cloud.consoleproxy.ConsoleProxyManagerImpl]
> > (consoleproxy-1:null) Skip capacity scan due to there is no Primary
> Storage
> > UPintenance mode
> > 2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
> > (CapacityChecker:null) Running Capacity Checker ...
> > 2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
> > (CapacityChecker:null) recalculating system capacity
> > 2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
> > (CapacityChecker:null) Executing cpu/ram capacity update
> > 2013-06-04 17:18:14,547 DEBUG [cloud.alert.AlertManagerImpl]
> > (CapacityChecker:null) Done executing cpu/ram capacity update
> >
> >
> >
> > Krishna
>

Re: unable to add host

Posted by David Nalley <da...@gnsa.us>.
How about we start with what platform and what version of CloudStack.

Also - your agent.log timestamp and management server log timestamps
have a 30 minute skew, and the management server logs are remotely
related to adding an agent - can we see the actual time period that
you tried to add a host - preferably several hundred lines -
apaste.info that and share a link.

--David

On Tue, Jun 4, 2013 at 7:56 AM, Er Krishna <er...@gmail.com> wrote:
> I am not able to add host. Pls help me to debug this.
>
> My host machine agent.log is:
> 2016-11-02 18:46:56,633 INFO  [utils.nio.NioClient] (Agent-Selector:null)
> Connecting to localhost:8250
> 2016-11-02 18:46:56,633 ERROR [utils.nio.NioConnection]
> (Agent-Selector:null) Unable to connect to remote
> 2016-11-02 18:46:56,732 INFO  [cloud.agent.Agent]
> (AgentShutdownThread:null) Stopping the agent: Reason = sig.kill
>
>
> Management server log is :
>
> 2013-06-04 17:18:14,118 DEBUG
> [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Zone 2
> is not ready to launch secondary storage VM yet
> 2013-06-04 17:18:14,157 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl]
> (consoleproxy-1:null) Skip capacity scan due to there is no Primary Storage
> UPintenance mode
> 2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
> (CapacityChecker:null) Running Capacity Checker ...
> 2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
> (CapacityChecker:null) recalculating system capacity
> 2013-06-04 17:18:14,545 DEBUG [cloud.alert.AlertManagerImpl]
> (CapacityChecker:null) Executing cpu/ram capacity update
> 2013-06-04 17:18:14,547 DEBUG [cloud.alert.AlertManagerImpl]
> (CapacityChecker:null) Done executing cpu/ram capacity update
>
>
>
> Krishna