Re: Unable to add host error ACS

2023-08-28 Thread Technology Mail
(GzipHandler.java:772)
    at 
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
    at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)

    at org.eclipse.jetty.server.Server.handle(Server.java:516)
    at 
org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487)
    at 
org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732)
    at 
org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479)
    at 
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
    at 
org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
    at 
org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
    at 
org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
    at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
    at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
    at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
    at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
    at 
org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409)
    at 
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)
    at 
org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)

    at java.base/java.lang.Thread.run(Thread.java:829)
2023-08-28 06:44:08,816 INFO  [c.c.a.ApiServer] 
(qtp1955920234-13:ctx-8d79a623 ctx-3a188920) (logid:722f5754) Unable to 
add the host: Cannot find the server resources at http://10.66.10.20


++


Please help me 


On 8/28/2023 11:26 AM, Rohit Yadav wrote:

Hi,

It appears there's something wrong in your 
/etc/cloudstack/agent/agent.properties, it can't find the passphrase 
to use cloud.jks as per:


2023-03-27 18:17:45,259 INFO [kvm.resource.LibvirtComputingResource] 
(main:null) (logid:) Failed to find passphrase for keystore: cloud.jks


You may re-add the host, or try this workaround:

 1. backup and then delete the cloud.* files from
/etc/cloudstack/agent/ directory
 2. change auth strictness global setting to false
(ca.plugin.root.auth.strictness) in cloudstack temporarily
 3. restart cloudstack agent on the KVM host, and once it's connected,
in CloudStack go to the UI-> infra ->host -> select the specific
host -> click button to re-provision certficates (this will
resetup the cloud.jks and certificates on the kvm host)
 4. finally, reset the ca.plugin.root.auth.strictness back to true


Regards.



*From:* Technology Mail 
*Sent:* Sunday, August 27, 2023 13:33
*To:* Rohit Yadav ; 
users@cloudstack.apache.org ; 
d...@cloudstack.apache.org 

*Subject:* Re: Unable to add host error ACS

Now I am using 4.18, Ubuntu 20.04 server. KVM server cloud and libvirt 
agent service not start.


see error below:

Error:

++

root@kvm:~# tail -f /var/log/cloudstack/agent/agent.log
2023-03-27 18:17:43,962 INFO  [cloud.agent.AgentShell] (main:null) 
(logid:) Implementation Version is 4.18.0.0
2023-03-27 18:17:43,979 INFO  [cloud.agent.AgentShell] (main:null) 
(logid:) agent.properties found at /etc/cloudstack/agent/agent.properties
2023-03-27 18:17:44,210 INFO  [cloud.agent.AgentShell] (main:null) 
(logid:) Defaulting to using properties file for storage
2023-03-27 18:17:44,223 INFO  [cloud.agent.AgentShell] (main:null) 
(logid:) Defaulting to the constant time backoff algorithm
2023-03-27 18:17:44,440 INFO  [cloud.utils.LogUtils] (main:null) 
(logid:) log4j configuration found at 
/etc/cloudstack/agent/log4j-cloud.xml
2023-03-27 18:17:44,441 INFO  [cloud.agent.AgentShell] (main:null) 
(logid:) Using default Java settings for IPv6 preference for agent 
connection
2023-03-27 18:17:44,951 INFO  [cloud.agent.Agent] (main:null) (logid:) 
id is
2023-03-27 18:17:45,018 ERROR [kvm.resource.LibvirtComputingResource] 
(main:null) (logid:) uefi properties file not found due to: Unable to 
find file uefi.properties.
2023-03-27 18:17:45,259 INFO [kvm.resource.LibvirtComputingResource] 
(main:null) (logid:) Failed to find passphrase for keystore: cloud.jks
2023-03-27 18:17:45,280 INFO  [kvm.resource.LibvirtConnection] 
(main:null) (logid:) No existing libvirtd connection found. Opening a 
new one

+


Thanks.


On 6/27/2021 6:45 PM, Rohit Yadav wrote:
Thanks for sharing, glad the issue is resolved. The specific issue 
only affects 4.15.0.0 and older releases, this issue is however fixed 
in 4.15.1.0.


After adding hosts you may actually revert the original sshd 
configuration

Re: Unable to add host error ACS

2023-08-27 Thread Rohit Yadav
Hi,

It appears there's something wrong in your 
/etc/cloudstack/agent/agent.properties, it can't find the passphrase to use 
cloud.jks as per:

2023-03-27 18:17:45,259 INFO  [kvm.resource.LibvirtComputingResource] 
(main:null) (logid:) Failed to find passphrase for keystore: cloud.jks

You may re-add the host, or try this workaround:


  1.  backup and then delete the cloud.* files from /etc/cloudstack/agent/ 
directory
  2.  change auth strictness global setting to false 
(ca.plugin.root.auth.strictness) in cloudstack temporarily
  3.  restart cloudstack agent on the KVM host, and once it's connected, in 
CloudStack go to the UI-> infra ->host -> select the specific host -> click 
button to re-provision certficates (this will resetup the cloud.jks and 
certificates on the kvm host)
  4.  finally, reset the ca.plugin.root.auth.strictness back to true


Regards.


From: Technology Mail 
Sent: Sunday, August 27, 2023 13:33
To: Rohit Yadav ; users@cloudstack.apache.org 
; d...@cloudstack.apache.org 

Subject: Re: Unable to add host error ACS


Now I am using 4.18, Ubuntu 20.04 server. KVM server cloud and libvirt agent 
service not start.

see error below:

Error:

++

root@kvm:~# tail -f /var/log/cloudstack/agent/agent.log
2023-03-27 18:17:43,962 INFO  [cloud.agent.AgentShell] (main:null) (logid:) 
Implementation Version is 4.18.0.0
2023-03-27 18:17:43,979 INFO  [cloud.agent.AgentShell] (main:null) (logid:) 
agent.properties found at /etc/cloudstack/agent/agent.properties
2023-03-27 18:17:44,210 INFO  [cloud.agent.AgentShell] (main:null) (logid:) 
Defaulting to using properties file for storage
2023-03-27 18:17:44,223 INFO  [cloud.agent.AgentShell] (main:null) (logid:) 
Defaulting to the constant time backoff algorithm
2023-03-27 18:17:44,440 INFO  [cloud.utils.LogUtils] (main:null) (logid:) log4j 
configuration found at /etc/cloudstack/agent/log4j-cloud.xml
2023-03-27 18:17:44,441 INFO  [cloud.agent.AgentShell] (main:null) (logid:) 
Using default Java settings for IPv6 preference for agent connection
2023-03-27 18:17:44,951 INFO  [cloud.agent.Agent] (main:null) (logid:) id is
2023-03-27 18:17:45,018 ERROR [kvm.resource.LibvirtComputingResource] 
(main:null) (logid:) uefi properties file not found due to: Unable to find file 
uefi.properties.
2023-03-27 18:17:45,259 INFO  [kvm.resource.LibvirtComputingResource] 
(main:null) (logid:) Failed to find passphrase for keystore: cloud.jks
2023-03-27 18:17:45,280 INFO  [kvm.resource.LibvirtConnection] (main:null) 
(logid:) No existing libvirtd connection found. Opening a new one
+


Thanks.


On 6/27/2021 6:45 PM, Rohit Yadav wrote:
Thanks for sharing, glad the issue is resolved. The specific issue only affects 
4.15.0.0 and older releases, this issue is however fixed in 4.15.1.0.

After adding hosts you may actually revert the original sshd configuration.


Regards.






From: Technologyrss Mail 
<mailto:technologyrss.m...@gmail.com>
Sent: Sunday, June 27, 2021 13:03
To: Wei ZHOU <mailto:ustcweiz...@gmail.com>; 
d...@cloudstack.apache.org<mailto:d...@cloudstack.apache.org> 
<mailto:d...@cloudstack.apache.org>
Subject: Re: Unable to add host error ACS


Thank you so much!
This 3 lines add into sshd_config file and restart sshd service then solved!

PubkeyAcceptedKeyTypes=+ssh-dss
HostKeyAlgorithms=+ssh-dss
KexAlgorithms=+diffie-hellman-group1-sha1

I am always try to find out ACS properly working with latest OS with latest 
version. I have Tech blog with YouTube channel.
Always I am appropriate your help & working as previous.

---
Alamin

On 6/27/2021 1:15 PM, Wei ZHOU wrote:
Hi,

Have you tried with 
http://docs.cloudstack.apache.org/en/4.15.0.0/releasenotes/about.html#workaround-for-adding-newer-kvm-hosts
 ?

-Wei


 

On Sun, 27 Jun 2021 at 02:18, Technologyrss Mail 
mailto:technologyrss.m...@gmail.com>> wrote:

>From MGMT error log

[cid:part3.64E24953.345219EA@gmail.com]

>From KVM error log

[cid:part4.5B07A141.1406078A@gmail.com]

---Alamin

On 6/27/2021 12:24 AM, Wei ZHOU wrote:

Are you able to ssh into host using username/password ?

-Wei

On Sat, 26 Jun 2021 at 20:02, Technologyrss Mail <
technologyrss.m...@gmail.com<mailto:technologyrss.m...@gmail.com>> wrote:



Please see below error, This is from ACS MGMT log error.

2021-06-25 18:29:23,782 WARN [c.c.a.d.ParamGenericValidationWorker]
(qtp1644231115-18:ctx-ad53a30c ctx-da493b27) (logid:fc697fe9) Received
unknown parameters for command addHost. Unknown parameters : clustertype
2021-06-25 18:29:23,812 INFO  [c.c.r.ResourceManagerImpl]
(qtp1644231115-18:ctx-ad53a30c ctx-da493b27) (logid:fc697fe9) Trying to
add a new host at http://10.66.100.50 in data center 1
2021-06-25 18:29:24,034 WARN  [c.c.h.k.d.LibvirtServerDiscoverer]
(qtp1644231115-18:ctx-ad53a30c ctx-da493b27) (logid:fc697fe9) can't
setup agent, due to java.io.IOExcepti

Re: Unable to add host error ACS

2023-08-27 Thread Technology Mail
Now I am using 4.18, Ubuntu 20.04 server. KVM server cloud and libvirt 
agent service not start.


see error below:

Error:

++

root@kvm:~# tail -f /var/log/cloudstack/agent/agent.log
2023-03-27 18:17:43,962 INFO  [cloud.agent.AgentShell] (main:null) 
(logid:) Implementation Version is 4.18.0.0
2023-03-27 18:17:43,979 INFO  [cloud.agent.AgentShell] (main:null) 
(logid:) agent.properties found at /etc/cloudstack/agent/agent.properties
2023-03-27 18:17:44,210 INFO  [cloud.agent.AgentShell] (main:null) 
(logid:) Defaulting to using properties file for storage
2023-03-27 18:17:44,223 INFO  [cloud.agent.AgentShell] (main:null) 
(logid:) Defaulting to the constant time backoff algorithm
2023-03-27 18:17:44,440 INFO  [cloud.utils.LogUtils] (main:null) 
(logid:) log4j configuration found at /etc/cloudstack/agent/log4j-cloud.xml
2023-03-27 18:17:44,441 INFO  [cloud.agent.AgentShell] (main:null) 
(logid:) Using default Java settings for IPv6 preference for agent 
connection

2023-03-27 18:17:44,951 INFO  [cloud.agent.Agent] (main:null) (logid:) id is
2023-03-27 18:17:45,018 ERROR [kvm.resource.LibvirtComputingResource] 
(main:null) (logid:) uefi properties file not found due to: Unable to 
find file uefi.properties.
2023-03-27 18:17:45,259 INFO [kvm.resource.LibvirtComputingResource] 
(main:null) (logid:) Failed to find passphrase for keystore: cloud.jks
2023-03-27 18:17:45,280 INFO  [kvm.resource.LibvirtConnection] 
(main:null) (logid:) No existing libvirtd connection found. Opening a 
new one

+


Thanks.


On 6/27/2021 6:45 PM, Rohit Yadav wrote:
Thanks for sharing, glad the issue is resolved. The specific issue 
only affects 4.15.0.0 and older releases, this issue is however fixed 
in 4.15.1.0.


After adding hosts you may actually revert the original sshd 
configuration.



Regards.



*From:* Technologyrss Mail 
*Sent:* Sunday, June 27, 2021 13:03
*To:* Wei ZHOU ; d...@cloudstack.apache.org 


*Subject:* Re: Unable to add host error ACS

*Thank you so much!*
This 3 lines add into sshd_config file and restart sshd service then 
solved!


PubkeyAcceptedKeyTypes=+ssh-dss
HostKeyAlgorithms=+ssh-dss
KexAlgorithms=+diffie-hellman-group1-sha1

I am always try to find out ACS properly working with latest OS with 
latest version. I have *Tech* blog with *YouTube* channel.

Always I am appropriate your help & working as previous.

---
Alamin

On 6/27/2021 1:15 PM, Wei ZHOU wrote:

Hi,

Have you tried with 
http://docs.cloudstack.apache.org/en/4.15.0.0/releasenotes/about.html#workaround-for-adding-newer-kvm-hosts 
?


-Wei

On Sun, 27 Jun 2021 at 02:18, Technologyrss Mail 
 wrote:


From MGMT error log

From KVM error log

---Alamin

On 6/27/2021 12:24 AM, Wei ZHOU wrote:

Are you able to ssh into host using username/password ?

-Wei

On Sat, 26 Jun 2021 at 20:02, Technologyrss Mail <
technologyrss.m...@gmail.com> wrote:


Please see below error, This is from ACS MGMT log error.

2021-06-25 18:29:23,782 WARN [c.c.a.d.ParamGenericValidationWorker]
(qtp1644231115-18:ctx-ad53a30c ctx-da493b27) (logid:fc697fe9) Received
unknown parameters for command addHost. Unknown parameters : clustertype
2021-06-25 18:29:23,812 INFO  [c.c.r.ResourceManagerImpl]
(qtp1644231115-18:ctx-ad53a30c ctx-da493b27) (logid:fc697fe9) Trying to
add a new host athttp://10.66.100.50  in data center 1
2021-06-25 18:29:24,034 WARN  [c.c.h.k.d.LibvirtServerDiscoverer]
(qtp1644231115-18:ctx-ad53a30c ctx-da493b27) (logid:fc697fe9) can't
setup agent, due to java.io.IOException: There was a problem while
connecting to10.66.100.50:22  <http://10.66.100.50:22>  - There was a 
problem while connecting to
10.66.100.50:22  <http://10.66.100.50:22>
2021-06-25 18:29:24,037 WARN  [c.c.r.ResourceManagerImpl]
(qtp1644231115-18:ctx-ad53a30c ctx-da493b27) (logid:fc697fe9) Unable to
find the server resources athttp://10.66.100.50
2021-06-25 18:29:24,049 INFO  [c.c.u.e.CSExceptionErrorCode]
(qtp1644231115-18:ctx-ad53a30c ctx-da493b27) (logid:fc697fe9) Could not
find exception: com.cloud.exception.DiscoveryException in error code
list for exceptions
2021-06-25 18:29:24,050 WARN  [o.a.c.a.c.a.h.AddHostCmd]
(qtp1644231115-18:ctx-ad53a30c ctx-da493b27) (logid:fc697fe9) Exception:
com.cloud.exception.DiscoveryException: Unable to add the host

---

Alamin

On 6/26/2021 10:18 PM, Rohit Yadav wrote:

Can you share logs, or the specific exceptions you're seeing if any? In

case you've attached them to your mail, the ML may not allow large
attachments.

Are you using ACS with basic zone on Ubuntu 20.04, both as mgmt server

and KVM host? In which case you may want to tail/investigate the logs on
both the management server and the KVM agent(s).

Regards.

___

Re: Unable to add host

2021-10-28 Thread James Steele
Have you allowed root ssh access?

vim /etc/ssh/sshd_config
# and set: 
PermitRootLogin=yes


Re: Unable to add host

2021-10-28 Thread vas...@gmx.de
Hi Nazmul,

okay sounds good.

Any Error-Logs from the host / agent.log availeable?

regards

Am Do., 28. Okt. 2021 um 14:59 Uhr schrieb Nazmul Parvej <
nazmul.par...@bol-online.com>:

> I am using the root account for adding host.
>
>
> Yours sincerely,
>
>
> Nazmul Parvej
>
>
> On Wed, Oct 27, 2021 at 5:30 PM vas...@gmx.de  wrote:
>
> > which kind of useraccount are you using to add the host?
> >
> > had similar problems adding a host with an "sudo"- enabled account as the
> > commands performed while performing the generation of an keystore-file
> > weren't working correctly.
> >
> > Am Mi., 27. Okt. 2021 um 12:53 Uhr schrieb Nazmul Parvej <
> > nazmul.par...@bol-online.com>:
> >
> > > Hi There,
> > >
> > > Please see my WARNING log, I can't understand why not added host on my
> > > Advanced
> > > zone. All servers are Ubuntu 20.04 LTS
> > >
> > > Management Server:
> > > In Web Portal Global Settings
> > >
> > > |ca.plugin.root.auth.strictness|is set to|false
> > >
> > >
> > > for ssh setting below config
> > >
> > > PubkeyAcceptedKeyTypes=+ssh-dss
> > > HostKeyAlgorithms=+ssh-dss
> > > KexAlgorithms=+diffie-hellman-group1-sha1
> > >
> > >
> > > In Host Server:
> > > Host as KVM Server Installation
> > > ==
> > >
> > > apt-get install qemu-kvm cloudstack-agent
> > > sed -i -e 's/\#vnc_listen.*$/vnc_listen = "0.0.0.0"/g'
> > > /etc/libvirt/qemu.conf
> > > sed -i -e 's/.*libvirtd_opts.*/env libvirtd_opts="-l"/'
> > > /etc/default/libvirtd
> > > echo 'listen_tls=0' >> /etc/libvirt/libvirtd.conf
> > > echo 'listen_tcp=1' >> /etc/libvirt/libvirtd.conf
> > > echo 'tcp_port = "16509"' >> /etc/libvirt/libvirtd.conf
> > > echo 'mdns_adv = 0' >> /etc/libvirt/libvirtd.conf
> > > echo 'auth_tcp = "none"' >> /etc/libvirt/libvirtd.conf
> > >
> > > systemctl restart libvirtd
> > >
> > > apt-get install uuid
> > > UUID=$(uuid)
> > > echo host_uuid = \"$UUID\" >> /etc/libvirt/libvirtd.conf
> > > systemctl restart libvirtd
> > >
> > > vi /etc/ssh/sshd_config
> > > PubkeyAcceptedKeyTypes=+ssh-dss
> > > HostKeyAlgorithms=+ssh-dss
> > > KexAlgorithms=+diffie-hellman-group1-sha1
> > >
> > > systemctl restart ssh
> > > systemctl restart sshd
> > >
> > >
> > >
> > >
> > > Please see my log error from ACS mgmt server
> > >
> > >
> > >
> > > 021-10-27 15:59:16,063 WARN  [c.c.u.n.Link]
> > > (AgentManager-SSLHandshakeHandler-1:null) (logid:) This SSL engine was
> > > forced to close inbound due to end of stream.
> > > 2021-10-27 15:59:16,959 WARN  [c.c.a.d.ParamGenericValidationWorker]
> > > (qtp1074389766-290:ctx-827d2286 ctx-57d77cbc) (logid:8809eb47) Received
> > > unknown parameters for command addHost. Unknown parameters :
> clustertype
> > > 2021-10-27 15:59:30,870 WARN  [c.c.h.k.d.LibvirtServerDiscoverer]
> > > (qtp1074389766-290:ctx-827d2286 ctx-57d77cbc) (logid:8809eb47)  can't
> > setup
> > > agent, due to com.cloud.utils.exception.CloudRuntimeException: Failed
> to
> > > setup keystore on the KVM host: 10.10.9.51 - Failed to setup keystore
> on
> > > the KVM host: 10.10.9.51
> > > 2021-10-27 15:59:30,871 WARN  [c.c.r.ResourceManagerImpl]
> > > (qtp1074389766-290:ctx-827d2286 ctx-57d77cbc) (logid:8809eb47) Unable
> to
> > > find the server resources at http://10.10.9.51
> > > 2021-10-27 15:59:30,872 WARN  [o.a.c.a.c.a.h.AddHostCmd]
> > > (qtp1074389766-290:ctx-827d2286 ctx-57d77cbc) (logid:8809eb47)
> Exception:
> > > 2021-10-27 16:00:09,415 WARN  [c.c.a.d.ParamGenericValidationWorker]
> > > (qtp1074389766-291:ctx-32254b38 ctx-81598c92) (logid:276372ee) Received
> > > unknown parameters for command addHost. Unknown parameters :
> clustertype
> > > 2021-10-27 16:00:23,404 WARN  [c.c.h.k.d.LibvirtServerDiscoverer]
> > > (qtp1074389766-291:ctx-32254b38 ctx-81598c92) (logid:276372ee)  can't
> > setup
> > > agent, due to com.cloud.utils.exception.CloudRuntimeException: Failed
> to
> > > setup keystore on the KVM host: 10.10.9.51 - Failed to setup keystore
> on
> > > the KVM host: 10.10.9.51
> > > 2021-10-27 16:00:23,405 WARN  [c.c.r.ResourceManagerImpl]
> > > (qtp1074389766-291:ctx-32254b38 ctx-81598c92) (logid:276372ee) Unable
> to
> > > find the server resources at http://10.10.9.51
> > > 2021-10-27 16:00:23,408 WARN  [o.a.c.a.c.a.h.AddHostCmd]
> > > (qtp1074389766-291:ctx-32254b38 ctx-81598c92) (logid:276372ee)
> Exception:
> > > 2021-10-27 16:00:27,313 WARN  [c.c.u.n.Link]
> > > (AgentManager-SSLHandshakeHandler-1:null) (logid:) This SSL engine was
> > > forced to close inbound due to end of stream.
> > >
> > >
> > >
> > > Yours sincerely,
> > >
> > > Nazmul Parvej
> > >
> >
>


Re: Unable to add host

2021-10-28 Thread Nazmul Parvej
I am using the root account for adding host.


Yours sincerely,


Nazmul Parvej


On Wed, Oct 27, 2021 at 5:30 PM vas...@gmx.de  wrote:

> which kind of useraccount are you using to add the host?
>
> had similar problems adding a host with an "sudo"- enabled account as the
> commands performed while performing the generation of an keystore-file
> weren't working correctly.
>
> Am Mi., 27. Okt. 2021 um 12:53 Uhr schrieb Nazmul Parvej <
> nazmul.par...@bol-online.com>:
>
> > Hi There,
> >
> > Please see my WARNING log, I can't understand why not added host on my
> > Advanced
> > zone. All servers are Ubuntu 20.04 LTS
> >
> > Management Server:
> > In Web Portal Global Settings
> >
> > |ca.plugin.root.auth.strictness|is set to|false
> >
> >
> > for ssh setting below config
> >
> > PubkeyAcceptedKeyTypes=+ssh-dss
> > HostKeyAlgorithms=+ssh-dss
> > KexAlgorithms=+diffie-hellman-group1-sha1
> >
> >
> > In Host Server:
> > Host as KVM Server Installation
> > ==
> >
> > apt-get install qemu-kvm cloudstack-agent
> > sed -i -e 's/\#vnc_listen.*$/vnc_listen = "0.0.0.0"/g'
> > /etc/libvirt/qemu.conf
> > sed -i -e 's/.*libvirtd_opts.*/env libvirtd_opts="-l"/'
> > /etc/default/libvirtd
> > echo 'listen_tls=0' >> /etc/libvirt/libvirtd.conf
> > echo 'listen_tcp=1' >> /etc/libvirt/libvirtd.conf
> > echo 'tcp_port = "16509"' >> /etc/libvirt/libvirtd.conf
> > echo 'mdns_adv = 0' >> /etc/libvirt/libvirtd.conf
> > echo 'auth_tcp = "none"' >> /etc/libvirt/libvirtd.conf
> >
> > systemctl restart libvirtd
> >
> > apt-get install uuid
> > UUID=$(uuid)
> > echo host_uuid = \"$UUID\" >> /etc/libvirt/libvirtd.conf
> > systemctl restart libvirtd
> >
> > vi /etc/ssh/sshd_config
> > PubkeyAcceptedKeyTypes=+ssh-dss
> > HostKeyAlgorithms=+ssh-dss
> > KexAlgorithms=+diffie-hellman-group1-sha1
> >
> > systemctl restart ssh
> > systemctl restart sshd
> >
> >
> >
> >
> > Please see my log error from ACS mgmt server
> >
> >
> >
> > 021-10-27 15:59:16,063 WARN  [c.c.u.n.Link]
> > (AgentManager-SSLHandshakeHandler-1:null) (logid:) This SSL engine was
> > forced to close inbound due to end of stream.
> > 2021-10-27 15:59:16,959 WARN  [c.c.a.d.ParamGenericValidationWorker]
> > (qtp1074389766-290:ctx-827d2286 ctx-57d77cbc) (logid:8809eb47) Received
> > unknown parameters for command addHost. Unknown parameters : clustertype
> > 2021-10-27 15:59:30,870 WARN  [c.c.h.k.d.LibvirtServerDiscoverer]
> > (qtp1074389766-290:ctx-827d2286 ctx-57d77cbc) (logid:8809eb47)  can't
> setup
> > agent, due to com.cloud.utils.exception.CloudRuntimeException: Failed to
> > setup keystore on the KVM host: 10.10.9.51 - Failed to setup keystore on
> > the KVM host: 10.10.9.51
> > 2021-10-27 15:59:30,871 WARN  [c.c.r.ResourceManagerImpl]
> > (qtp1074389766-290:ctx-827d2286 ctx-57d77cbc) (logid:8809eb47) Unable to
> > find the server resources at http://10.10.9.51
> > 2021-10-27 15:59:30,872 WARN  [o.a.c.a.c.a.h.AddHostCmd]
> > (qtp1074389766-290:ctx-827d2286 ctx-57d77cbc) (logid:8809eb47) Exception:
> > 2021-10-27 16:00:09,415 WARN  [c.c.a.d.ParamGenericValidationWorker]
> > (qtp1074389766-291:ctx-32254b38 ctx-81598c92) (logid:276372ee) Received
> > unknown parameters for command addHost. Unknown parameters : clustertype
> > 2021-10-27 16:00:23,404 WARN  [c.c.h.k.d.LibvirtServerDiscoverer]
> > (qtp1074389766-291:ctx-32254b38 ctx-81598c92) (logid:276372ee)  can't
> setup
> > agent, due to com.cloud.utils.exception.CloudRuntimeException: Failed to
> > setup keystore on the KVM host: 10.10.9.51 - Failed to setup keystore on
> > the KVM host: 10.10.9.51
> > 2021-10-27 16:00:23,405 WARN  [c.c.r.ResourceManagerImpl]
> > (qtp1074389766-291:ctx-32254b38 ctx-81598c92) (logid:276372ee) Unable to
> > find the server resources at http://10.10.9.51
> > 2021-10-27 16:00:23,408 WARN  [o.a.c.a.c.a.h.AddHostCmd]
> > (qtp1074389766-291:ctx-32254b38 ctx-81598c92) (logid:276372ee) Exception:
> > 2021-10-27 16:00:27,313 WARN  [c.c.u.n.Link]
> > (AgentManager-SSLHandshakeHandler-1:null) (logid:) This SSL engine was
> > forced to close inbound due to end of stream.
> >
> >
> >
> > Yours sincerely,
> >
> > Nazmul Parvej
> >
>


Re: Unable to add host

2021-10-27 Thread vas...@gmx.de
which kind of useraccount are you using to add the host?

had similar problems adding a host with an "sudo"- enabled account as the
commands performed while performing the generation of an keystore-file
weren't working correctly.

Am Mi., 27. Okt. 2021 um 12:53 Uhr schrieb Nazmul Parvej <
nazmul.par...@bol-online.com>:

> Hi There,
>
> Please see my WARNING log, I can't understand why not added host on my
> Advanced
> zone. All servers are Ubuntu 20.04 LTS
>
> Management Server:
> In Web Portal Global Settings
>
> |ca.plugin.root.auth.strictness|is set to|false
>
>
> for ssh setting below config
>
> PubkeyAcceptedKeyTypes=+ssh-dss
> HostKeyAlgorithms=+ssh-dss
> KexAlgorithms=+diffie-hellman-group1-sha1
>
>
> In Host Server:
> Host as KVM Server Installation
> ==
>
> apt-get install qemu-kvm cloudstack-agent
> sed -i -e 's/\#vnc_listen.*$/vnc_listen = "0.0.0.0"/g'
> /etc/libvirt/qemu.conf
> sed -i -e 's/.*libvirtd_opts.*/env libvirtd_opts="-l"/'
> /etc/default/libvirtd
> echo 'listen_tls=0' >> /etc/libvirt/libvirtd.conf
> echo 'listen_tcp=1' >> /etc/libvirt/libvirtd.conf
> echo 'tcp_port = "16509"' >> /etc/libvirt/libvirtd.conf
> echo 'mdns_adv = 0' >> /etc/libvirt/libvirtd.conf
> echo 'auth_tcp = "none"' >> /etc/libvirt/libvirtd.conf
>
> systemctl restart libvirtd
>
> apt-get install uuid
> UUID=$(uuid)
> echo host_uuid = \"$UUID\" >> /etc/libvirt/libvirtd.conf
> systemctl restart libvirtd
>
> vi /etc/ssh/sshd_config
> PubkeyAcceptedKeyTypes=+ssh-dss
> HostKeyAlgorithms=+ssh-dss
> KexAlgorithms=+diffie-hellman-group1-sha1
>
> systemctl restart ssh
> systemctl restart sshd
>
>
>
>
> Please see my log error from ACS mgmt server
>
>
>
> 021-10-27 15:59:16,063 WARN  [c.c.u.n.Link]
> (AgentManager-SSLHandshakeHandler-1:null) (logid:) This SSL engine was
> forced to close inbound due to end of stream.
> 2021-10-27 15:59:16,959 WARN  [c.c.a.d.ParamGenericValidationWorker]
> (qtp1074389766-290:ctx-827d2286 ctx-57d77cbc) (logid:8809eb47) Received
> unknown parameters for command addHost. Unknown parameters : clustertype
> 2021-10-27 15:59:30,870 WARN  [c.c.h.k.d.LibvirtServerDiscoverer]
> (qtp1074389766-290:ctx-827d2286 ctx-57d77cbc) (logid:8809eb47)  can't setup
> agent, due to com.cloud.utils.exception.CloudRuntimeException: Failed to
> setup keystore on the KVM host: 10.10.9.51 - Failed to setup keystore on
> the KVM host: 10.10.9.51
> 2021-10-27 15:59:30,871 WARN  [c.c.r.ResourceManagerImpl]
> (qtp1074389766-290:ctx-827d2286 ctx-57d77cbc) (logid:8809eb47) Unable to
> find the server resources at http://10.10.9.51
> 2021-10-27 15:59:30,872 WARN  [o.a.c.a.c.a.h.AddHostCmd]
> (qtp1074389766-290:ctx-827d2286 ctx-57d77cbc) (logid:8809eb47) Exception:
> 2021-10-27 16:00:09,415 WARN  [c.c.a.d.ParamGenericValidationWorker]
> (qtp1074389766-291:ctx-32254b38 ctx-81598c92) (logid:276372ee) Received
> unknown parameters for command addHost. Unknown parameters : clustertype
> 2021-10-27 16:00:23,404 WARN  [c.c.h.k.d.LibvirtServerDiscoverer]
> (qtp1074389766-291:ctx-32254b38 ctx-81598c92) (logid:276372ee)  can't setup
> agent, due to com.cloud.utils.exception.CloudRuntimeException: Failed to
> setup keystore on the KVM host: 10.10.9.51 - Failed to setup keystore on
> the KVM host: 10.10.9.51
> 2021-10-27 16:00:23,405 WARN  [c.c.r.ResourceManagerImpl]
> (qtp1074389766-291:ctx-32254b38 ctx-81598c92) (logid:276372ee) Unable to
> find the server resources at http://10.10.9.51
> 2021-10-27 16:00:23,408 WARN  [o.a.c.a.c.a.h.AddHostCmd]
> (qtp1074389766-291:ctx-32254b38 ctx-81598c92) (logid:276372ee) Exception:
> 2021-10-27 16:00:27,313 WARN  [c.c.u.n.Link]
> (AgentManager-SSLHandshakeHandler-1:null) (logid:) This SSL engine was
> forced to close inbound due to end of stream.
>
>
>
> Yours sincerely,
>
> Nazmul Parvej
>


Re: Unable to add host

2021-09-14 Thread technologyrss.mail

Yes, I am able ssh.

ssh root@10.66.100.15
Warning: Permanently added '10.66.100.15' (RSA) to the list of known hosts.
root@10.66.100.15's password:
X11 forwarding request failed on channel 0
Last login: Tue Sep 14 21:25:14 2021 from 10.66.100.6
[root@cloud ~]#
[root@cloud ~]# ssh root@10.66.100.50
The authenticity of host '10.66.100.50 (10.66.100.50)' can't be established.
ECDSA key fingerprint is SHA256:iQPJSwVYqZ+Hg80zh+MAv16z32IsKn5TAFJU2ehXmLU.
ECDSA key fingerprint is 
MD5:8b:21:7d:6d:c4:8d:33:63:c5:d0:a2:3e:ce:64:ee:78.

Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.66.100.50' (ECDSA) to the list of known 
hosts.

root@10.66.100.50's password:
Last login: Tue Sep 14 12:46:07 2021 from 10.66.100.6
[root@kvm ~]#
[root@kvm ~]#
[root@kvm ~]#


---
alamin

On 9/15/2021 1:28 AM, James Steele wrote:

Hi,

can you SSH succesfully from the Management Server to the host you wish to add?

Jim

On 2021/09/14 16:02:44, "technologyrss.mail"  
wrote:

*Hi, *

Please see my log, I can't understand why not added host on my Advanced
zone. All servers are CentOS Linux release 7.9.2009 (Core).

|ca.plugin.root.auth.strictness|is set to|false
|

for ssh setting below config

PubkeyAcceptedKeyTypes=+ssh-dss
HostKeyAlgorithms=+ssh-dss
KexAlgorithms=+diffie-hellman-group1-sha1

please see my log error from ACS mgmt server

2021-09-14 21:43:01,298 DEBUG [c.c.u.s.SSHCmdHelper]
(qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) SSH
command: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup
/etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
SSH command output:
cat: /etc/cloudstack/agent/cloud.csr: No such file or directory
chmod: cannot access ‘/etc/cloudstack/agent/cloud.csr’: No such file or
directory

2021-09-14 21:43:01,299 DEBUG [c.c.u.s.SSHCmdHelper]
(qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) Executing
cmd: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup
/etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
2021-09-14 21:43:03,881 DEBUG [c.c.s.StatsCollector]
(StatsCollector-6:ctx-f2675358) (logid:2fb31c5c) StorageCollector is
running...
2021-09-14 21:43:03,894 DEBUG [c.c.s.StatsCollector]
(StatsCollector-3:ctx-240201ac) (logid:a7801c31) AutoScaling Monitor is
running...
2021-09-14 21:43:03,947 DEBUG [c.c.s.StatsCollector]
(StatsCollector-5:ctx-c7e24e1f) (logid:d16881a3) HostStatsCollector is
running...
2021-09-14 21:43:06,826 DEBUG [c.c.u.s.SSHCmdHelper]
(qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) SSH
command: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup
/etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
SSH command output:
cat: /etc/cloudstack/agent/cloud.csr: No such file or directory
chmod: cannot access ‘/etc/cloudstack/agent/cloud.csr’: No such file or
directory

2021-09-14 21:43:06,826 DEBUG [c.c.u.s.SSHCmdHelper]
(qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) Executing
cmd: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup
/etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
2021-09-14 21:43:09,204 DEBUG [c.c.u.s.SSHCmdHelper]
(qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) SSH
command: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup
/etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
SSH command output:
cat: /etc/cloudstack/agent/cloud.csr: No such file or directory
chmod: cannot access ‘/etc/cloudstack/agent/cloud.csr’: No such file or
directory

2021-09-14 21:43:09,205 WARN  [c.c.h.k.d.LibvirtServerDiscoverer]
(qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) can't
setup agent, due to com.cloud.utils.exception.CloudRuntimeException:
Failed to setup keystore on the KVM host: 10.66.100.50 - Failed to setup
keystore on the KVM host: 10.66.100.50
2021-09-14 21:43:09,206 WARN  [c.c.r.ResourceManagerImpl]
(qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) Unable to
find the server resources at http://10.66.100.50
2021-09-14 21:43:09,206 INFO  [c.c.u.e.CSExceptionErrorCode]
(qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) Could not
find exception: com.cloud.exception.DiscoveryException in error code
list for exceptions
2021-09-14 21:43:09,212 WARN  [o.a.c.a.c.a.h.AddHostCmd]
(qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) Exception:
com.cloud.exception.DiscoveryException: Unable to add the host
      at
com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:825)
      at
com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:611)
      at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
      at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at 

Re: Unable to add host

2021-09-14 Thread James Steele
Hi,

can you SSH succesfully from the Management Server to the host you wish to add?

Jim

On 2021/09/14 16:02:44, "technologyrss.mail"  
wrote: 
> *Hi, *
> 
> Please see my log, I can't understand why not added host on my Advanced 
> zone. All servers are CentOS Linux release 7.9.2009 (Core).
> 
> |ca.plugin.root.auth.strictness|is set to|false
> |
> 
> for ssh setting below config
> 
> PubkeyAcceptedKeyTypes=+ssh-dss
> HostKeyAlgorithms=+ssh-dss
> KexAlgorithms=+diffie-hellman-group1-sha1
> 
> please see my log error from ACS mgmt server
> 
> 2021-09-14 21:43:01,298 DEBUG [c.c.u.s.SSHCmdHelper] 
> (qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) SSH 
> command: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup 
> /etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
> SSH command output:
> cat: /etc/cloudstack/agent/cloud.csr: No such file or directory
> chmod: cannot access ‘/etc/cloudstack/agent/cloud.csr’: No such file or 
> directory
> 
> 2021-09-14 21:43:01,299 DEBUG [c.c.u.s.SSHCmdHelper] 
> (qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) Executing 
> cmd: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup 
> /etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
> 2021-09-14 21:43:03,881 DEBUG [c.c.s.StatsCollector] 
> (StatsCollector-6:ctx-f2675358) (logid:2fb31c5c) StorageCollector is 
> running...
> 2021-09-14 21:43:03,894 DEBUG [c.c.s.StatsCollector] 
> (StatsCollector-3:ctx-240201ac) (logid:a7801c31) AutoScaling Monitor is 
> running...
> 2021-09-14 21:43:03,947 DEBUG [c.c.s.StatsCollector] 
> (StatsCollector-5:ctx-c7e24e1f) (logid:d16881a3) HostStatsCollector is 
> running...
> 2021-09-14 21:43:06,826 DEBUG [c.c.u.s.SSHCmdHelper] 
> (qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) SSH 
> command: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup 
> /etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
> SSH command output:
> cat: /etc/cloudstack/agent/cloud.csr: No such file or directory
> chmod: cannot access ‘/etc/cloudstack/agent/cloud.csr’: No such file or 
> directory
> 
> 2021-09-14 21:43:06,826 DEBUG [c.c.u.s.SSHCmdHelper] 
> (qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) Executing 
> cmd: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup 
> /etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
> 2021-09-14 21:43:09,204 DEBUG [c.c.u.s.SSHCmdHelper] 
> (qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) SSH 
> command: sudo /usr/share/cloudstack-common/scripts/util/keystore-setup 
> /etc/cloudstack/agent/agent.properties /etc/cloudstack/agent/
> SSH command output:
> cat: /etc/cloudstack/agent/cloud.csr: No such file or directory
> chmod: cannot access ‘/etc/cloudstack/agent/cloud.csr’: No such file or 
> directory
> 
> 2021-09-14 21:43:09,205 WARN  [c.c.h.k.d.LibvirtServerDiscoverer] 
> (qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) can't 
> setup agent, due to com.cloud.utils.exception.CloudRuntimeException: 
> Failed to setup keystore on the KVM host: 10.66.100.50 - Failed to setup 
> keystore on the KVM host: 10.66.100.50
> 2021-09-14 21:43:09,206 WARN  [c.c.r.ResourceManagerImpl] 
> (qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) Unable to 
> find the server resources at http://10.66.100.50
> 2021-09-14 21:43:09,206 INFO  [c.c.u.e.CSExceptionErrorCode] 
> (qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) Could not 
> find exception: com.cloud.exception.DiscoveryException in error code 
> list for exceptions
> 2021-09-14 21:43:09,212 WARN  [o.a.c.a.c.a.h.AddHostCmd] 
> (qtp1136768342-268:ctx-9737fb53 ctx-4efc5a53) (logid:83b994d6) Exception:
> com.cloud.exception.DiscoveryException: Unable to add the host
>      at 
> com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:825)
>      at 
> com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:611)
>      at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
> Method)
>      at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>      at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
>      at 
> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
>      at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
>      at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
>      at 
> org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
>      at 
> 

Re: Unable to add host

2019-08-27 Thread Andrija Panic
Is this perhaps a reused KVM host? In that case it's known to fail, you
just need to start the agent servise manually on KVM host, before adding it
again.

Check the /var/log/cloudstack/agent/setup.log for the error messages while
adding/setting up KVM host.

Andrija

On Tue, Aug 27, 2019, 19:43 Nicolas Vazquez 
wrote:

> Hi Fariborz,
>
> Which CloudStack version are you using?
> It seems like a connection timeout error, have you verified port 8250 is
> open?
>
>
> 2019-08-27 18:26:07,291 DEBUG [c.c.h.k.d.LibvirtServerDiscoverer]
> (qtp2114650936-321:ctx-4b9d5ee5 ctx-61f92e0c) (logid:1c7f0e2c) Timeout, to
> wait for the host connecting to mgt svr, assuming it is failed
> 2019-08-27 18:26:07,293 WARN [c.c.r.ResourceManagerImpl]
> (qtp2114650936-321:ctx-4b9d5ee5 ctx-61f92e0c) (logid:1c7f0e2c) Unable to
> find the server resources at http://51.91.247.86
> 2019-08-27 18:26:07,294 INFO [c.c.u.e.CSExceptionErrorCode]
>
> If that is not the case, kindly increase the log level on the agent side
> to DEBUG and paste the output while trying to add the host.
>
> Regards,
> Nicolas Vazquez
>
> 
> De: Fariborz Navidan 
> Enviado: martes, 27 de agosto de 2019 13:30
> Para: users@cloudstack.apache.org
> Asunto: Unable to add host
>
> Hello,
>
> I have setup a new cloudstack management. I am setting up a new advanced
> zone. I am unable to add the kvm host. Bellow is the management server log:
>
> [root@fr-kvm1 agent]# cat ../management/management-server.log
>
> 2019-08-27 18:19:20,914 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
> (AsyncJobMgr-Heartbeat-1:ctx-e9d7f345) (logid:b85ae93e) Begin cleanup
> expired async-jobs
> 2019-08-27 18:19:20,921 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
> (AsyncJobMgr-Heartbeat-1:ctx-e9d7f345) (logid:b85ae93e) End cleanup expired
> async-jobs
> 2019-08-27 18:19:26,866 DEBUG [c.c.c.ConsoleProxyManagerImpl]
> (consoleproxy-1:ctx-aee28ca2) (logid:08603ca9) Skip capacity scan as there
> is no Primary Storage in 'Up' state
> 2019-08-27 18:19:30,906 INFO  [c.c.r.ResourceLimitManagerImpl]
> (ResourceCountChecker-1:ctx-f3f085c7) (logid:50310825) Started resource
> counters recalculation periodic task.
> 2019-08-27 18:19:30,915 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
> (AsyncJobMgr-Heartbeat-1:ctx-806d1fc0) (logid:30023a57) Begin cleanup
> expired async-jobs
> 2019-08-27 18:19:30,916 DEBUG [c.c.s.s.SnapshotSchedulerImpl]
> (SnapshotPollTask:ctx-8da331fb) (logid:09e138af) Snapshot scheduler.poll is
> being called at 2019-08-27 16:19:30 GMT
> 2019-08-27 18:19:30,917 DEBUG [c.c.s.s.SnapshotSchedulerImpl]
> (SnapshotPollTask:ctx-8da331fb) (logid:09e138af) Got 0 snapshots to be
> executed at 2019-08-27 16:19:30 GMT
> 2019-08-27 18:19:30,924 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
> (AsyncJobMgr-Heartbeat-1:ctx-806d1fc0) (logid:30023a57) End cleanup expired
> async-jobs
> 2019-08-27 18:19:30,955 DEBUG [c.c.n.ExternalDeviceUsageManagerImpl]
> (ExternalNetworkMonitor-1:ctx-76b32f50) (logid:2469ab38) External devices
> are not used. Skipping external device usage collection
> 2019-08-27 18:19:30,998 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl]
> (RouterMonitor-1:ctx-87161167) (logid:93af014a) Found 0 running routers.
> 2019-08-27 18:19:30,999 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl]
> (RouterStatusMonitor-1:ctx-d4400e54) (logid:f2256a76) Found 0 routers to
> update status.
> 2019-08-27 18:19:31,001 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl]
> (RouterStatusMonitor-1:ctx-d4400e54) (logid:f2256a76) Found 0 VPC networks
> to update Redundant State.
> 2019-08-27 18:19:31,003 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl]
> (RouterStatusMonitor-1:ctx-d4400e54) (logid:f2256a76) Found 0 networks to
> update RvR status.
> 2019-08-27 18:19:40,914 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
> (AsyncJobMgr-Heartbeat-1:ctx-312b8771) (logid:bd56f351) Begin cleanup
> expired async-jobs
> 2019-08-27 18:19:40,923 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
> (AsyncJobMgr-Heartbeat-1:ctx-312b8771) (logid:bd56f351) End cleanup expired
> async-jobs
> 2019-08-27 18:19:46,229 DEBUG [c.c.s.StatsCollector]
> (StatsCollector-4:ctx-56ab68fb) (logid:fc5da2e3) AutoScaling Monitor is
> running...
> 2019-08-27 18:19:46,449 DEBUG [c.c.s.StatsCollector]
> (StatsCollector-5:ctx-20683fd8) (logid:b77cd4e2) HostStatsCollector is
> running...
> 2019-08-27 18:19:46,619 DEBUG [c.c.s.StatsCollector]
> (StatsCollector-6:ctx-ae1c7ccc) (logid:f142989d) StorageCollector is
> running...
> 2019-08-27 18:19:46,630 DEBUG [c.c.s.StatsCollector]
> (StatsCollector-6:ctx-ae1c7ccc) (logid:f142989d) There is no secondary
> storage VM for secondary storage host Secondary
> 2019-08-27 18:19:50,907 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
> (AsyncJobMgr-Heartbeat-1:ctx-9321ebcc) (logid:0573cf29) Begin cleanup
> expired async-jobs
> 2019-08-27 18:19:50,908 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
> (AsyncJobMgr-Heartbeat-1:ctx-9321ebcc) (logid:0573cf29) End cleanup expired
> async-jobs
> 

Re: Unable to add host

2019-08-27 Thread Nicolas Vazquez
Hi Fariborz,

Which CloudStack version are you using?
It seems like a connection timeout error, have you verified port 8250 is open?


2019-08-27 18:26:07,291 DEBUG [c.c.h.k.d.LibvirtServerDiscoverer]
(qtp2114650936-321:ctx-4b9d5ee5 ctx-61f92e0c) (logid:1c7f0e2c) Timeout, to
wait for the host connecting to mgt svr, assuming it is failed
2019-08-27 18:26:07,293 WARN [c.c.r.ResourceManagerImpl]
(qtp2114650936-321:ctx-4b9d5ee5 ctx-61f92e0c) (logid:1c7f0e2c) Unable to
find the server resources at http://51.91.247.86
2019-08-27 18:26:07,294 INFO [c.c.u.e.CSExceptionErrorCode]

If that is not the case, kindly increase the log level on the agent side to 
DEBUG and paste the output while trying to add the host.

Regards,
Nicolas Vazquez


De: Fariborz Navidan 
Enviado: martes, 27 de agosto de 2019 13:30
Para: users@cloudstack.apache.org
Asunto: Unable to add host

Hello,

I have setup a new cloudstack management. I am setting up a new advanced
zone. I am unable to add the kvm host. Bellow is the management server log:

[root@fr-kvm1 agent]# cat ../management/management-server.log

2019-08-27 18:19:20,914 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
(AsyncJobMgr-Heartbeat-1:ctx-e9d7f345) (logid:b85ae93e) Begin cleanup
expired async-jobs
2019-08-27 18:19:20,921 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
(AsyncJobMgr-Heartbeat-1:ctx-e9d7f345) (logid:b85ae93e) End cleanup expired
async-jobs
2019-08-27 18:19:26,866 DEBUG [c.c.c.ConsoleProxyManagerImpl]
(consoleproxy-1:ctx-aee28ca2) (logid:08603ca9) Skip capacity scan as there
is no Primary Storage in 'Up' state
2019-08-27 18:19:30,906 INFO  [c.c.r.ResourceLimitManagerImpl]
(ResourceCountChecker-1:ctx-f3f085c7) (logid:50310825) Started resource
counters recalculation periodic task.
2019-08-27 18:19:30,915 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
(AsyncJobMgr-Heartbeat-1:ctx-806d1fc0) (logid:30023a57) Begin cleanup
expired async-jobs
2019-08-27 18:19:30,916 DEBUG [c.c.s.s.SnapshotSchedulerImpl]
(SnapshotPollTask:ctx-8da331fb) (logid:09e138af) Snapshot scheduler.poll is
being called at 2019-08-27 16:19:30 GMT
2019-08-27 18:19:30,917 DEBUG [c.c.s.s.SnapshotSchedulerImpl]
(SnapshotPollTask:ctx-8da331fb) (logid:09e138af) Got 0 snapshots to be
executed at 2019-08-27 16:19:30 GMT
2019-08-27 18:19:30,924 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
(AsyncJobMgr-Heartbeat-1:ctx-806d1fc0) (logid:30023a57) End cleanup expired
async-jobs
2019-08-27 18:19:30,955 DEBUG [c.c.n.ExternalDeviceUsageManagerImpl]
(ExternalNetworkMonitor-1:ctx-76b32f50) (logid:2469ab38) External devices
are not used. Skipping external device usage collection
2019-08-27 18:19:30,998 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl]
(RouterMonitor-1:ctx-87161167) (logid:93af014a) Found 0 running routers.
2019-08-27 18:19:30,999 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl]
(RouterStatusMonitor-1:ctx-d4400e54) (logid:f2256a76) Found 0 routers to
update status.
2019-08-27 18:19:31,001 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl]
(RouterStatusMonitor-1:ctx-d4400e54) (logid:f2256a76) Found 0 VPC networks
to update Redundant State.
2019-08-27 18:19:31,003 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl]
(RouterStatusMonitor-1:ctx-d4400e54) (logid:f2256a76) Found 0 networks to
update RvR status.
2019-08-27 18:19:40,914 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
(AsyncJobMgr-Heartbeat-1:ctx-312b8771) (logid:bd56f351) Begin cleanup
expired async-jobs
2019-08-27 18:19:40,923 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
(AsyncJobMgr-Heartbeat-1:ctx-312b8771) (logid:bd56f351) End cleanup expired
async-jobs
2019-08-27 18:19:46,229 DEBUG [c.c.s.StatsCollector]
(StatsCollector-4:ctx-56ab68fb) (logid:fc5da2e3) AutoScaling Monitor is
running...
2019-08-27 18:19:46,449 DEBUG [c.c.s.StatsCollector]
(StatsCollector-5:ctx-20683fd8) (logid:b77cd4e2) HostStatsCollector is
running...
2019-08-27 18:19:46,619 DEBUG [c.c.s.StatsCollector]
(StatsCollector-6:ctx-ae1c7ccc) (logid:f142989d) StorageCollector is
running...
2019-08-27 18:19:46,630 DEBUG [c.c.s.StatsCollector]
(StatsCollector-6:ctx-ae1c7ccc) (logid:f142989d) There is no secondary
storage VM for secondary storage host Secondary
2019-08-27 18:19:50,907 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
(AsyncJobMgr-Heartbeat-1:ctx-9321ebcc) (logid:0573cf29) Begin cleanup
expired async-jobs
2019-08-27 18:19:50,908 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
(AsyncJobMgr-Heartbeat-1:ctx-9321ebcc) (logid:0573cf29) End cleanup expired
async-jobs
2019-08-27 18:19:56,872 DEBUG [c.c.c.ConsoleProxyManagerImpl]
(consoleproxy-1:ctx-ccdf9bc0) (logid:242d9bce) Skip capacity scan as there
is no Primary Storage in 'Up' state
2019-08-27 18:20:00,907 DEBUG [c.c.d.DeploymentPlanningManagerImpl]
(HostReservationReleaseChecker:ctx-c48b1be7) (logid:43c956f9) Checking if
any host reservation can be released ...
2019-08-27 18:20:00,909 DEBUG [c.c.d.DeploymentPlanningManagerImpl]
(HostReservationReleaseChecker:ctx-c48b1be7) (logid:43c956f9) Done running

Re: Unable to add host in CentOS 7.2

2016-12-20 Thread Pierre-Luc Dion
Have you used community RPM's or you build from sources?

On Dec 20, 2016 08:33, "Pierre-Luc Dion"  wrote:

> Is this for a KVM host based on centos 7?
>
> On Dec 11, 2016 23:28, "Felipe Arturo Polanco" 
> wrote:
>
>> Hi,
>>
>> I'm having major issues when trying to add a new host into a fresh install
>> of Cloudstack, I have tested in 4.6 and 4.8 and get the same result, in
>> 4.9
>> the agent can't connect but it does from 4.8 downwards.
>>
>> From the logs I see that the management can ssh into the host and issue
>> the
>> cloudstack-setup-agent command with some parameters and it does succeed
>> but
>> after that it tries to insert some values into the mysql cloud database in
>> the "host" table but it fails, after that it tries to send something via
>> API and fails too.
>>
>> **I'm setting this up in VMWare workstation 12 on a laptop with nested
>> virtualization**
>>
>> I followed this guide
>> http://docs.cloudstack.apache.org/projects/cloudstack-instal
>> lation/en/4.8/management-server/index.html
>> and this one for the host
>> http://docs.cloudstack.apache.org/projects/cloudstack-instal
>> lation/en/4.8/configuration.html#adding-a-host
>>
>> I checked and have the ports open in management:
>>
>> Proto Recv-Q Send-Q Local Address   Foreign Address State
>> PID/Program name
>> tcp0  0 0.0.0.0:111 0.0.0.0:*
>>  LISTEN
>>  1172/rpcbind
>> tcp0  0 0.0.0.0:20400   0.0.0.0:*
>>  LISTEN
>>  10316/java
>> tcp0  0 0.0.0.0:80800.0.0.0:*
>>  LISTEN
>>  10316/java
>> tcp0  0 0.0.0.0:20048   0.0.0.0:*
>>  LISTEN
>>  1237/rpc.mountd
>> tcp0  0 192.168.122.1:530.0.0.0:*
>>  LISTEN
>>  2073/dnsmasq
>> tcp0  0 0.0.0.0:44373   0.0.0.0:*
>>  LISTEN
>>  1168/rpc.statd
>> tcp0  0 0.0.0.0:22  0.0.0.0:*
>>  LISTEN
>>  1157/sshd
>> tcp0  0 0.0.0.0:82500.0.0.0:*
>>  LISTEN
>>  10316/java
>> tcp0  0 0.0.0.0:45662   0.0.0.0:*
>>  LISTEN
>>  -
>> tcp0  0 0.0.0.0:36385   0.0.0.0:*
>>  LISTEN
>>  10316/java
>> tcp0  0 0.0.0.0:20490.0.0.0:*
>>  LISTEN
>>  -
>> tcp0  0 0.0.0.0:90900.0.0.0:*
>>  LISTEN
>>  10316/java
>> tcp0  0 127.0.0.1:8005  0.0.0.0:*
>>  LISTEN
>>  10316/java
>> tcp0  0 0.0.0.0:37029   0.0.0.0:*
>>  LISTEN
>>  10316/java
>> tcp0 64 192.168.1.147:22192.168.1.113:54267
>> ESTABLISHED 4269/sshd: felipe [
>> tcp0  0 127.0.0.1:52772 127.0.0.1:3306
>>  ESTABLISHED 10316/java
>> tcp0  0 127.0.0.1:52890 127.0.0.1:3306
>>  ESTABLISHED 10316/java
>> tcp0  0 127.0.0.1:52774 127.0.0.1:3306
>>  ESTABLISHED 10316/java
>> tcp0  0 127.0.0.1:52892 127.0.0.1:3306
>>  ESTABLISHED 10316/java
>> tcp0  0 192.168.1.147:22192.168.1.113:54020
>> ESTABLISHED 2803/sshd: felipe [
>> tcp0  0 127.0.0.1:52886 127.0.0.1:3306
>>  ESTABLISHED 10316/java
>> tcp0  0 127.0.0.1:52786 127.0.0.1:3306
>>  ESTABLISHED 10316/java
>> tcp0  0 127.0.0.1:52884 127.0.0.1:3306
>>  ESTABLISHED 10316/java
>> tcp6   0  0 :::3306 :::*LISTEN
>>  10111/mysqld
>> tcp6   0  0 :::111  :::*LISTEN
>>  1172/rpcbind
>> tcp6   0  0 :::20048:::*LISTEN
>>  1237/rpc.mountd
>> tcp6   0  0 :::22   :::*LISTEN
>>  1157/sshd
>> tcp6   0  0 :::39704:::*LISTEN
>>  -
>> tcp6   0  0 :::60640:::*LISTEN
>>  1168/rpc.statd
>> tcp6   0  0 :::2049 :::*LISTEN
>>  -
>> tcp6   0  0 127.0.0.1:3306  127.0.0.1:52890
>> ESTABLISHED 10111/mysqld
>> tcp6   0  0 127.0.0.1:3306  127.0.0.1:52772
>> ESTABLISHED 10111/mysqld
>> tcp6   0  0 127.0.0.1:3306  127.0.0.1:52892
>> ESTABLISHED 10111/mysqld
>> tcp6   0453 127.0.0.1:3306  127.0.0.1:52774
>> ESTABLISHED 10111/mysqld
>> tcp6   0  0 127.0.0.1:3306  127.0.0.1:52884
>> ESTABLISHED 10111/mysqld
>> tcp6   0  0 127.0.0.1:3306  127.0.0.1:52886
>> ESTABLISHED 10111/mysqld
>> tcp6   0  0 127.0.0.1:3306  127.0.0.1:52786
>> ESTABLISHED 10111/mysqld
>> udp0  0 0.0.0.0:20048   0.0.0.0:*
>> 1237/rpc.mountd
>> udp0  0 0.0.0.0:44766   0.0.0.0:*
>> 956/dhclient
>> udp0  0 0.0.0.0:40682   0.0.0.0:*
>> 10316/java
>> udp0  0 0.0.0.0:57148   

Re: Unable to add host in CentOS 7.2

2016-12-20 Thread Pierre-Luc Dion
Is this for a KVM host based on centos 7?

On Dec 11, 2016 23:28, "Felipe Arturo Polanco" 
wrote:

> Hi,
>
> I'm having major issues when trying to add a new host into a fresh install
> of Cloudstack, I have tested in 4.6 and 4.8 and get the same result, in 4.9
> the agent can't connect but it does from 4.8 downwards.
>
> From the logs I see that the management can ssh into the host and issue the
> cloudstack-setup-agent command with some parameters and it does succeed but
> after that it tries to insert some values into the mysql cloud database in
> the "host" table but it fails, after that it tries to send something via
> API and fails too.
>
> **I'm setting this up in VMWare workstation 12 on a laptop with nested
> virtualization**
>
> I followed this guide
> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/4.8/
> management-server/index.html
> and this one for the host
> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/4.8/
> configuration.html#adding-a-host
>
> I checked and have the ports open in management:
>
> Proto Recv-Q Send-Q Local Address   Foreign Address State
> PID/Program name
> tcp0  0 0.0.0.0:111 0.0.0.0:*   LISTEN
>  1172/rpcbind
> tcp0  0 0.0.0.0:20400   0.0.0.0:*   LISTEN
>  10316/java
> tcp0  0 0.0.0.0:80800.0.0.0:*   LISTEN
>  10316/java
> tcp0  0 0.0.0.0:20048   0.0.0.0:*   LISTEN
>  1237/rpc.mountd
> tcp0  0 192.168.122.1:530.0.0.0:*   LISTEN
>  2073/dnsmasq
> tcp0  0 0.0.0.0:44373   0.0.0.0:*   LISTEN
>  1168/rpc.statd
> tcp0  0 0.0.0.0:22  0.0.0.0:*   LISTEN
>  1157/sshd
> tcp0  0 0.0.0.0:82500.0.0.0:*   LISTEN
>  10316/java
> tcp0  0 0.0.0.0:45662   0.0.0.0:*   LISTEN
>  -
> tcp0  0 0.0.0.0:36385   0.0.0.0:*   LISTEN
>  10316/java
> tcp0  0 0.0.0.0:20490.0.0.0:*   LISTEN
>  -
> tcp0  0 0.0.0.0:90900.0.0.0:*   LISTEN
>  10316/java
> tcp0  0 127.0.0.1:8005  0.0.0.0:*   LISTEN
>  10316/java
> tcp0  0 0.0.0.0:37029   0.0.0.0:*   LISTEN
>  10316/java
> tcp0 64 192.168.1.147:22192.168.1.113:54267
> ESTABLISHED 4269/sshd: felipe [
> tcp0  0 127.0.0.1:52772 127.0.0.1:3306
>  ESTABLISHED 10316/java
> tcp0  0 127.0.0.1:52890 127.0.0.1:3306
>  ESTABLISHED 10316/java
> tcp0  0 127.0.0.1:52774 127.0.0.1:3306
>  ESTABLISHED 10316/java
> tcp0  0 127.0.0.1:52892 127.0.0.1:3306
>  ESTABLISHED 10316/java
> tcp0  0 192.168.1.147:22192.168.1.113:54020
> ESTABLISHED 2803/sshd: felipe [
> tcp0  0 127.0.0.1:52886 127.0.0.1:3306
>  ESTABLISHED 10316/java
> tcp0  0 127.0.0.1:52786 127.0.0.1:3306
>  ESTABLISHED 10316/java
> tcp0  0 127.0.0.1:52884 127.0.0.1:3306
>  ESTABLISHED 10316/java
> tcp6   0  0 :::3306 :::*LISTEN
>  10111/mysqld
> tcp6   0  0 :::111  :::*LISTEN
>  1172/rpcbind
> tcp6   0  0 :::20048:::*LISTEN
>  1237/rpc.mountd
> tcp6   0  0 :::22   :::*LISTEN
>  1157/sshd
> tcp6   0  0 :::39704:::*LISTEN
>  -
> tcp6   0  0 :::60640:::*LISTEN
>  1168/rpc.statd
> tcp6   0  0 :::2049 :::*LISTEN
>  -
> tcp6   0  0 127.0.0.1:3306  127.0.0.1:52890
> ESTABLISHED 10111/mysqld
> tcp6   0  0 127.0.0.1:3306  127.0.0.1:52772
> ESTABLISHED 10111/mysqld
> tcp6   0  0 127.0.0.1:3306  127.0.0.1:52892
> ESTABLISHED 10111/mysqld
> tcp6   0453 127.0.0.1:3306  127.0.0.1:52774
> ESTABLISHED 10111/mysqld
> tcp6   0  0 127.0.0.1:3306  127.0.0.1:52884
> ESTABLISHED 10111/mysqld
> tcp6   0  0 127.0.0.1:3306  127.0.0.1:52886
> ESTABLISHED 10111/mysqld
> tcp6   0  0 127.0.0.1:3306  127.0.0.1:52786
> ESTABLISHED 10111/mysqld
> udp0  0 0.0.0.0:20048   0.0.0.0:*
> 1237/rpc.mountd
> udp0  0 0.0.0.0:44766   0.0.0.0:*
> 956/dhclient
> udp0  0 0.0.0.0:40682   0.0.0.0:*
> 10316/java
> udp0  0 0.0.0.0:57148   0.0.0.0:*
> -
> udp0  0 0.0.0.0:20490.0.0.0:*
> -
> udp0  0 

Re: Unable to add host on Centos 7

2016-11-04 Thread Abdul Qayyum Halid
never mind..i had solve the issue by perform action below

# virsh pool-define /dev/stdin <
  default
  
/var/lib/libvirt/images
  

EOF

virsh pool-start default
virsh pool-autostart default



On Fri, Nov 4, 2016 at 6:05 AM, Abdul Qayyum Halid 
wrote:

> Hello, i am trying to install cloudstack 4.9.01 on centos 7 trough vmware
> on single machine. Whenever I try to add host, its show unable to add host
> and the error log shows like below on libvirtd
>
> Nov 04 03:58:14 srvr1.cloud.priv libvirtd[3941]: XML error: missing pool
> source name element
>  Note : Libvirtd is running
> Thank you
>


RE: Unable to add host

2016-05-05 Thread Mohd Zainal Abidin Rabani
Hi,

I manage to get agent up and running on host. It's cause of libvirtd.service. 
When i stop libvirtd.service, then cloudstack-agent can be up.

-Original Message-
From: Boris Stoyanov [mailto:boris.stoya...@shapeblue.com] 
Sent: 05 Mei 2016 17:07
To: users@cloudstack.apache.org
Subject: Re: Unable to add host

local storage path by default is /var/lib/libvirt/images/ if you have not 
explicitly changed that in agent.properties means you’re using this location. 
Now the error says the directory does not exist, so I would assume something 
went wrong with libvirt installation/configuration. 


> 
Regards,

Boris Stoyanov

boris.stoya...@shapeblue.com
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HSUK @shapeblue On May 5, 2016, 
at 11:57 AM, Mohd Zainal Abidin Rabani <zai...@nocser.net> wrote:
> 
> This error keep repeating in agent.log.
> 
> -Original Message-
> From: Mohd Zainal Abidin Rabani [mailto:zai...@nocser.net]
> Sent: 05 Mei 2016 16:53
> To: users@cloudstack.apache.org
> Subject: RE: Unable to add host
> 
> Need to use pastebin as qmail apache have limit size email:
> http://pastebin.com/4yt1ivcY
> 
> -Original Message-
> From: Boris Stoyanov [mailto:boris.stoya...@shapeblue.com]
> Sent: 05 Mei 2016 16:38
> To: users@cloudstack.apache.org
> Subject: Re: Unable to add host
> 
> Hi Mohd,
> 
> In the same logs location you should be able to find agent logs, can you 
> share what’s there?
> 
> Thanks.
> 
>> 
> Regards,
> 
> Boris Stoyanov
> 
> boris.stoya...@shapeblue.com
> www.shapeblue.com
> 53 Chandos Place, Covent Garden, London  WC2N 4HSUK @shapeblue On May 5, 
> 2016, at 11:34 AM, Mohd Zainal Abidin Rabani <zai...@nocser.net> wrote:
>> 
>> Seem like something wrong some where. Agent not stable. Runing and not 
>> running:
>> 
>> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
>> cloudstack-agent.service - CloudStack Agent
>>  Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; 
>> enabled; vendor preset: disabled)
>>  Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
>> 16:32:19 MYT; 5s ago
>>Docs: http://www.cloudstack.org/
>> Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
>> /usr/share/cloudstack-agent/lib/*.jar 
>> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
>> export 
>> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts"; 
>>  ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
>> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
>> Main PID: 20105 (code=exited, status=1/FAILURE)
>> 
>> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
>> failed state.
>> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
>> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
>> cloudstack-agent.service - CloudStack Agent
>>  Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; 
>> enabled; vendor preset: disabled)
>>  Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
>> 16:32:19 MYT; 7s ago
>>Docs: http://www.cloudstack.org/
>> Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
>> /usr/share/cloudstack-agent/lib/*.jar 
>> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
>> export 
>> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts"; 
>>  ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
>> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
>> Main PID: 20105 (code=exited, status=1/FAILURE)
>> 
>> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
>> failed state.
>> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
>> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
>> cloudstack-agent.service - CloudStack Agent
>>  Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; 
>> enabled; vendor preset: disabled)
>>  Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
>> 16:32:19 MYT; 8s ago
>>Docs: http://www.cloudstack.org/
>> Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
>> /usr/share/cloudstack-agent/lib/*.jar 
>> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
>> export 
>> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common

RE: Unable to add host

2016-05-05 Thread Mohd Zainal Abidin Rabani
This is from /var/log/messages :
http://pastebin.com/pY57cHK5

-Original Message-
From: Boris Stoyanov [mailto:boris.stoya...@shapeblue.com] 
Sent: 05 Mei 2016 17:07
To: users@cloudstack.apache.org
Subject: Re: Unable to add host

local storage path by default is /var/lib/libvirt/images/ if you have not 
explicitly changed that in agent.properties means you’re using this location. 
Now the error says the directory does not exist, so I would assume something 
went wrong with libvirt installation/configuration. 


> 
Regards,

Boris Stoyanov

boris.stoya...@shapeblue.com
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HSUK @shapeblue On May 5, 2016, 
at 11:57 AM, Mohd Zainal Abidin Rabani <zai...@nocser.net> wrote:
> 
> This error keep repeating in agent.log.
> 
> -Original Message-
> From: Mohd Zainal Abidin Rabani [mailto:zai...@nocser.net]
> Sent: 05 Mei 2016 16:53
> To: users@cloudstack.apache.org
> Subject: RE: Unable to add host
> 
> Need to use pastebin as qmail apache have limit size email:
> http://pastebin.com/4yt1ivcY
> 
> -Original Message-
> From: Boris Stoyanov [mailto:boris.stoya...@shapeblue.com]
> Sent: 05 Mei 2016 16:38
> To: users@cloudstack.apache.org
> Subject: Re: Unable to add host
> 
> Hi Mohd,
> 
> In the same logs location you should be able to find agent logs, can you 
> share what’s there?
> 
> Thanks.
> 
>> 
> Regards,
> 
> Boris Stoyanov
> 
> boris.stoya...@shapeblue.com
> www.shapeblue.com
> 53 Chandos Place, Covent Garden, London  WC2N 4HSUK @shapeblue On May 5, 
> 2016, at 11:34 AM, Mohd Zainal Abidin Rabani <zai...@nocser.net> wrote:
>> 
>> Seem like something wrong some where. Agent not stable. Runing and not 
>> running:
>> 
>> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
>> cloudstack-agent.service - CloudStack Agent
>>  Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; 
>> enabled; vendor preset: disabled)
>>  Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
>> 16:32:19 MYT; 5s ago
>>Docs: http://www.cloudstack.org/
>> Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
>> /usr/share/cloudstack-agent/lib/*.jar 
>> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
>> export 
>> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts"; 
>>  ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
>> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
>> Main PID: 20105 (code=exited, status=1/FAILURE)
>> 
>> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
>> failed state.
>> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
>> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
>> cloudstack-agent.service - CloudStack Agent
>>  Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; 
>> enabled; vendor preset: disabled)
>>  Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
>> 16:32:19 MYT; 7s ago
>>Docs: http://www.cloudstack.org/
>> Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
>> /usr/share/cloudstack-agent/lib/*.jar 
>> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
>> export 
>> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts"; 
>>  ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
>> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
>> Main PID: 20105 (code=exited, status=1/FAILURE)
>> 
>> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
>> failed state.
>> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
>> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
>> cloudstack-agent.service - CloudStack Agent
>>  Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; 
>> enabled; vendor preset: disabled)
>>  Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
>> 16:32:19 MYT; 8s ago
>>Docs: http://www.cloudstack.org/
>> Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
>> /usr/share/cloudstack-agent/lib/*.jar 
>> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
>> export 
>> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts"; 
>>  ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${J

Re: Unable to add host

2016-05-05 Thread Boris Stoyanov
local storage path by default is /var/lib/libvirt/images/
if you have not explicitly changed that in agent.properties means you’re using 
this location. Now the error says the directory does not exist, so I would 
assume something went wrong with libvirt installation/configuration. 


> 
Regards,

Boris Stoyanov

boris.stoya...@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HSUK
@shapeblue
On May 5, 2016, at 11:57 AM, Mohd Zainal Abidin Rabani <zai...@nocser.net> 
wrote:
> 
> This error keep repeating in agent.log.
> 
> -Original Message-
> From: Mohd Zainal Abidin Rabani [mailto:zai...@nocser.net] 
> Sent: 05 Mei 2016 16:53
> To: users@cloudstack.apache.org
> Subject: RE: Unable to add host
> 
> Need to use pastebin as qmail apache have limit size email:
> http://pastebin.com/4yt1ivcY
> 
> -Original Message-
> From: Boris Stoyanov [mailto:boris.stoya...@shapeblue.com]
> Sent: 05 Mei 2016 16:38
> To: users@cloudstack.apache.org
> Subject: Re: Unable to add host
> 
> Hi Mohd,
> 
> In the same logs location you should be able to find agent logs, can you 
> share what’s there?
> 
> Thanks.
> 
>> 
> Regards,
> 
> Boris Stoyanov
> 
> boris.stoya...@shapeblue.com
> www.shapeblue.com
> 53 Chandos Place, Covent Garden, London  WC2N 4HSUK @shapeblue On May 5, 
> 2016, at 11:34 AM, Mohd Zainal Abidin Rabani <zai...@nocser.net> wrote:
>> 
>> Seem like something wrong some where. Agent not stable. Runing and not 
>> running:
>> 
>> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
>> cloudstack-agent.service - CloudStack Agent
>>  Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
>> vendor preset: disabled)
>>  Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
>> 16:32:19 MYT; 5s ago
>>Docs: http://www.cloudstack.org/
>> Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
>> /usr/share/cloudstack-agent/lib/*.jar 
>> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
>> export 
>> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts"; 
>>  ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
>> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
>> Main PID: 20105 (code=exited, status=1/FAILURE)
>> 
>> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
>> failed state.
>> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
>> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
>> cloudstack-agent.service - CloudStack Agent
>>  Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
>> vendor preset: disabled)
>>  Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
>> 16:32:19 MYT; 7s ago
>>Docs: http://www.cloudstack.org/
>> Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
>> /usr/share/cloudstack-agent/lib/*.jar 
>> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
>> export 
>> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts"; 
>>  ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
>> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
>> Main PID: 20105 (code=exited, status=1/FAILURE)
>> 
>> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
>> failed state.
>> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
>> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
>> cloudstack-agent.service - CloudStack Agent
>>  Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
>> vendor preset: disabled)
>>  Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
>> 16:32:19 MYT; 8s ago
>>Docs: http://www.cloudstack.org/
>> Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
>> /usr/share/cloudstack-agent/lib/*.jar 
>> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
>> export 
>> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts"; 
>>  ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
>> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
>> Main PID: 20105 (code=exited, status=1/FAILURE)
>> 
>> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service 

RE: Unable to add host

2016-05-05 Thread Mohd Zainal Abidin Rabani
Yes, i have follow the document.

-Original Message-
From: Boris Stoyanov [mailto:boris.stoya...@shapeblue.com] 
Sent: 05 Mei 2016 16:56
To: users@cloudstack.apache.org
Subject: Re: Unable to add host

Hi Mohd

Unfortunately these logs does not help a lot. I can’t find any error/exception 
there.

>From your previous message I can find:
2016-05-05 16:08:35,882 ERROR [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) /var/lib/libvirt/images does not exists. Check 
local.storage.path in agent.properties.

Have followed these installation instructions?
http://cloudstack-installation.readthedocs.io/en/4.8/hypervisor/kvm.html
 - there’s a section about libvirt configuration

Can you please revise if some of the steps is missed.

Thanks.



Regards,

Boris Stoyanov

boris.stoya...@shapeblue.com
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HSUK @shapeblue On May 5, 2016, 
at 11:48 AM, Mohd Zainal Abidin Rabani 
<zai...@nocser.net<mailto:zai...@nocser.net>> wrote:

This is log from agent.log in /var/log/cloudstack/agent :

2016-05-05 16:46:49,383 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Attempting to create storage pool 
340a4603-7617-4f5e-980a-4cc2f6f0afda (Filesystem) in libvirt
2016-05-05 16:46:49,387 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Found existing defined storage pool 
340a4603-7617-4f5e-980a-4cc2f6f0afda, using it.
2016-05-05 16:46:49,387 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Trying to fetch storage pool 
340a4603-7617-4f5e-980a-4cc2f6f0afda from libvirt
2016-05-05 16:46:49,447 INFO  [cloud.serializer.GsonHelper] 
(Agent-Handler-1:null) Default Builder inited.
2016-05-05 16:46:49,482 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Proccess agent startup answer, agent id = 0
2016-05-05 16:46:49,483 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Set 
agent id 0
2016-05-05 16:46:49,488 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Startup Response Received: agent id = 0
2016-05-05 16:46:49,489 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) 
Stopping the agent: Reason = sig.kill
2016-05-05 16:47:01,466 INFO  [cloud.agent.AgentShell] (main:null) Agent started
2016-05-05 16:47:01,467 INFO  [cloud.agent.AgentShell] (main:null) 
Implementation Version is 4.6.2
2016-05-05 16:47:01,468 INFO  [cloud.agent.AgentShell] (main:null) 
agent.properties found at /etc/cloudstack/agent/agent.properties
2016-05-05 16:47:01,472 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
to using properties file for storage
2016-05-05 16:47:01,474 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
to the constant time backoff algorithm
2016-05-05 16:47:01,486 INFO  [cloud.utils.LogUtils] (main:null) log4j 
configuration found at /etc/cloudstack/agent/log4j-cloud.xml
2016-05-05 16:47:01,503 INFO  [cloud.agent.AgentShell] (main:null) Preferring 
IPv4 address family for agent connection
2016-05-05 16:47:01,634 INFO  [cloud.agent.Agent] (main:null) id is 0
2016-05-05 16:47:01,662 INFO  [kvm.resource.LibvirtConnection] (main:null) No 
existing libvirtd connection found. Opening a new one
2016-05-05 16:47:01,919 INFO  [org.reflections.Reflections] (main:null) 
Reflections took 50 ms to scan 1 urls, producing 7 keys and 10 values
2016-05-05 16:47:02,077 INFO  [kvm.resource.LibvirtComputingResource] 
(main:null) No libvirt.vif.driver specified. Defaults to BridgeVifDriver.
2016-05-05 16:47:02,103 INFO  [cloud.agent.Agent] (main:null) Agent [id = 0 : 
type = LibvirtComputingResource : zone = AIMS KL : pod = 3F-G-13 : workers = 5 
: host = 10.2.30.11 : port = 8250
2016-05-05 16:47:02,108 INFO  [utils.nio.NioClient] (main:null) Connecting to 
10.2.30.11:8250
2016-05-05 16:47:02,315 INFO  [utils.nio.NioClient] (main:null) SSL: Handshake 
done
2016-05-05 16:47:02,315 INFO  [utils.nio.NioClient] (main:null) Connected to 
10.2.30.11:8250
2016-05-05 16:47:02,387 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Attempting to create storage pool 
340a4603-7617-4f5e-980a-4cc2f6f0afda (Filesystem) in libvirt
2016-05-05 16:47:02,390 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Found existing defined storage pool 
340a4603-7617-4f5e-980a-4cc2f6f0afda, using it.
2016-05-05 16:47:02,391 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Trying to fetch storage pool 
340a4603-7617-4f5e-980a-4cc2f6f0afda from libvirt
2016-05-05 16:47:02,450 INFO  [cloud.serializer.GsonHelper] 
(Agent-Handler-1:null) Default Builder inited.
2016-05-05 16:47:02,484 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Proccess agent startup answer, agent id = 0
2016-05-05 16:47:02,484 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Set 
agent id 0
2016-05-05 16:47:02,489 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Startup Response Received: agent id = 0
2016-05-05 16:47:02,491 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) 
Stopping the agent: Reason = sig.kill
2

RE: Unable to add host

2016-05-05 Thread Mohd Zainal Abidin Rabani
This error keep repeating in agent.log.

-Original Message-
From: Mohd Zainal Abidin Rabani [mailto:zai...@nocser.net] 
Sent: 05 Mei 2016 16:53
To: users@cloudstack.apache.org
Subject: RE: Unable to add host

Need to use pastebin as qmail apache have limit size email:
http://pastebin.com/4yt1ivcY

-Original Message-
From: Boris Stoyanov [mailto:boris.stoya...@shapeblue.com]
Sent: 05 Mei 2016 16:38
To: users@cloudstack.apache.org
Subject: Re: Unable to add host

Hi Mohd,

In the same logs location you should be able to find agent logs, can you share 
what’s there?

Thanks.

> 
Regards,

Boris Stoyanov

boris.stoya...@shapeblue.com
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HSUK @shapeblue On May 5, 2016, 
at 11:34 AM, Mohd Zainal Abidin Rabani <zai...@nocser.net> wrote:
> 
> Seem like something wrong some where. Agent not stable. Runing and not 
> running:
> 
> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
> cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
> vendor preset: disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
> 16:32:19 MYT; 5s ago
> Docs: http://www.cloudstack.org/
>  Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
> /usr/share/cloudstack-agent/lib/*.jar 
> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
> export 
> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";  
> ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
> Main PID: 20105 (code=exited, status=1/FAILURE)
> 
> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
> failed state.
> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
> cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
> vendor preset: disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
> 16:32:19 MYT; 7s ago
> Docs: http://www.cloudstack.org/
>  Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
> /usr/share/cloudstack-agent/lib/*.jar 
> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
> export 
> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";  
> ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
> Main PID: 20105 (code=exited, status=1/FAILURE)
> 
> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
> failed state.
> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
> cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
> vendor preset: disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
> 16:32:19 MYT; 8s ago
> Docs: http://www.cloudstack.org/
>  Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
> /usr/share/cloudstack-agent/lib/*.jar 
> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
> export 
> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";  
> ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
> Main PID: 20105 (code=exited, status=1/FAILURE)
> 
> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
> failed state.
> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
> cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
> vendor preset: disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
> 16:32:19 MYT; 9s ago
> Docs: http://www.cloudstack.org/
>  Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
> /usr/share/cloudstack-agent/lib/*.jar 
> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
> export 
> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";  
> ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
> "$CLASSPATH" $JAV

Re: Unable to add host

2016-05-05 Thread Boris Stoyanov
ault Builder inited.
2016-05-05 16:47:28,474 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Proccess agent startup answer, agent id = 0
2016-05-05 16:47:28,474 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Set 
agent id 0
2016-05-05 16:47:28,480 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Startup Response Received: agent id = 0
2016-05-05 16:47:28,481 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) 
Stopping the agent: Reason = sig.kill
2016-05-05 16:47:40,466 INFO  [cloud.agent.AgentShell] (main:null) Agent started
2016-05-05 16:47:40,467 INFO  [cloud.agent.AgentShell] (main:null) 
Implementation Version is 4.6.2
2016-05-05 16:47:40,468 INFO  [cloud.agent.AgentShell] (main:null) 
agent.properties found at /etc/cloudstack/agent/agent.properties
2016-05-05 16:47:40,472 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
to using properties file for storage
2016-05-05 16:47:40,474 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
to the constant time backoff algorithm
2016-05-05 16:47:40,486 INFO  [cloud.utils.LogUtils] (main:null) log4j 
configuration found at /etc/cloudstack/agent/log4j-cloud.xml
2016-05-05 16:47:40,501 INFO  [cloud.agent.AgentShell] (main:null) Preferring 
IPv4 address family for agent connection
2016-05-05 16:47:40,625 INFO  [cloud.agent.Agent] (main:null) id is 0
2016-05-05 16:47:40,651 INFO  [kvm.resource.LibvirtConnection] (main:null) No 
existing libvirtd connection found. Opening a new one
2016-05-05 16:47:40,904 INFO  [org.reflections.Reflections] (main:null) 
Reflections took 49 ms to scan 1 urls, producing 7 keys and 10 values
2016-05-05 16:47:41,056 INFO  [kvm.resource.LibvirtComputingResource] 
(main:null) No libvirt.vif.driver specified. Defaults to BridgeVifDriver.
2016-05-05 16:47:41,082 INFO  [cloud.agent.Agent] (main:null) Agent [id = 0 : 
type = LibvirtComputingResource : zone = AIMS KL : pod = 3F-G-13 : workers = 5 
: host = 10.2.30.11 : port = 8250
2016-05-05 16:47:41,086 INFO  [utils.nio.NioClient] (main:null) Connecting to 
10.2.30.11:8250
2016-05-05 16:47:41,303 INFO  [utils.nio.NioClient] (main:null) SSL: Handshake 
done
2016-05-05 16:47:41,303 INFO  [utils.nio.NioClient] (main:null) Connected to 
10.2.30.11:8250
2016-05-05 16:47:41,377 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Attempting to create storage pool 
340a4603-7617-4f5e-980a-4cc2f6f0afda (Filesystem) in libvirt
2016-05-05 16:47:41,380 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Found existing defined storage pool 
340a4603-7617-4f5e-980a-4cc2f6f0afda, using it.
2016-05-05 16:47:41,381 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Trying to fetch storage pool 
340a4603-7617-4f5e-980a-4cc2f6f0afda from libvirt
2016-05-05 16:47:41,440 INFO  [cloud.serializer.GsonHelper] 
(Agent-Handler-1:null) Default Builder inited.
2016-05-05 16:47:41,475 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Proccess agent startup answer, agent id = 0
2016-05-05 16:47:41,475 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Set 
agent id 0
2016-05-05 16:47:41,480 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Startup Response Received: agent id = 0
2016-05-05 16:47:41,480 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) 
Stopping the agent: Reason = sig.kill

-Original Message-
From: Boris Stoyanov [mailto:boris.stoya...@shapeblue.com]
Sent: 05 Mei 2016 16:38
To: users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>
Subject: Re: Unable to add host

Hi Mohd,

In the same logs location you should be able to find agent logs, can you share 
what’s there?

Thanks.


Regards,

Boris Stoyanov

boris.stoya...@shapeblue.com<mailto:boris.stoya...@shapeblue.com>
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HSUK @shapeblue On May 5, 2016, 
at 11:34 AM, Mohd Zainal Abidin Rabani <zai...@nocser.net> wrote:

Seem like something wrong some where. Agent not stable. Runing and not running:

[root@host29-01 agent]# systemctl status cloudstack-agent ●
cloudstack-agent.service - CloudStack Agent
 Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
vendor preset: disabled)
 Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
16:32:19 MYT; 5s ago
   Docs: http://www.cloudstack.org/
Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
/usr/share/cloudstack-agent/lib/*.jar /usr/share/cloudstack-agent/plugins/*.jar 
2>/dev/null|tr "\n" ":"`;  export 
CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";
  ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
"$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
Main PID: 20105 (code=exited, status=1/FAILURE)

May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
failed state.
May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
[root@host29-01 agent]# systemctl stat

RE: Unable to add host

2016-05-05 Thread Mohd Zainal Abidin Rabani
Need to use pastebin as qmail apache have limit size email:
http://pastebin.com/4yt1ivcY

-Original Message-
From: Boris Stoyanov [mailto:boris.stoya...@shapeblue.com] 
Sent: 05 Mei 2016 16:38
To: users@cloudstack.apache.org
Subject: Re: Unable to add host

Hi Mohd,

In the same logs location you should be able to find agent logs, can you share 
what’s there?

Thanks.

> 
Regards,

Boris Stoyanov

boris.stoya...@shapeblue.com
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HSUK @shapeblue On May 5, 2016, 
at 11:34 AM, Mohd Zainal Abidin Rabani <zai...@nocser.net> wrote:
> 
> Seem like something wrong some where. Agent not stable. Runing and not 
> running:
> 
> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
> cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
> vendor preset: disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
> 16:32:19 MYT; 5s ago
> Docs: http://www.cloudstack.org/
>  Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
> /usr/share/cloudstack-agent/lib/*.jar 
> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
> export 
> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";  
> ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
> Main PID: 20105 (code=exited, status=1/FAILURE)
> 
> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
> failed state.
> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
> cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
> vendor preset: disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
> 16:32:19 MYT; 7s ago
> Docs: http://www.cloudstack.org/
>  Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
> /usr/share/cloudstack-agent/lib/*.jar 
> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
> export 
> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";  
> ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
> Main PID: 20105 (code=exited, status=1/FAILURE)
> 
> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
> failed state.
> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
> cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
> vendor preset: disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
> 16:32:19 MYT; 8s ago
> Docs: http://www.cloudstack.org/
>  Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
> /usr/share/cloudstack-agent/lib/*.jar 
> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
> export 
> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";  
> ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
> Main PID: 20105 (code=exited, status=1/FAILURE)
> 
> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
> failed state.
> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
> cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
> vendor preset: disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
> 16:32:19 MYT; 9s ago
> Docs: http://www.cloudstack.org/
>  Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
> /usr/share/cloudstack-agent/lib/*.jar 
> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
> export 
> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";  
> ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
> Main PID: 20105 (code=exited, status=1/FAILURE)
> 
> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
> failed state.
> May 05

RE: Unable to add host

2016-05-05 Thread Mohd Zainal Abidin Rabani
  [cloud.agent.AgentShell] (main:null) Defaulting 
to using properties file for storage
2016-05-05 16:47:40,474 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
to the constant time backoff algorithm
2016-05-05 16:47:40,486 INFO  [cloud.utils.LogUtils] (main:null) log4j 
configuration found at /etc/cloudstack/agent/log4j-cloud.xml
2016-05-05 16:47:40,501 INFO  [cloud.agent.AgentShell] (main:null) Preferring 
IPv4 address family for agent connection
2016-05-05 16:47:40,625 INFO  [cloud.agent.Agent] (main:null) id is 0
2016-05-05 16:47:40,651 INFO  [kvm.resource.LibvirtConnection] (main:null) No 
existing libvirtd connection found. Opening a new one
2016-05-05 16:47:40,904 INFO  [org.reflections.Reflections] (main:null) 
Reflections took 49 ms to scan 1 urls, producing 7 keys and 10 values
2016-05-05 16:47:41,056 INFO  [kvm.resource.LibvirtComputingResource] 
(main:null) No libvirt.vif.driver specified. Defaults to BridgeVifDriver.
2016-05-05 16:47:41,082 INFO  [cloud.agent.Agent] (main:null) Agent [id = 0 : 
type = LibvirtComputingResource : zone = AIMS KL : pod = 3F-G-13 : workers = 5 
: host = 10.2.30.11 : port = 8250
2016-05-05 16:47:41,086 INFO  [utils.nio.NioClient] (main:null) Connecting to 
10.2.30.11:8250
2016-05-05 16:47:41,303 INFO  [utils.nio.NioClient] (main:null) SSL: Handshake 
done
2016-05-05 16:47:41,303 INFO  [utils.nio.NioClient] (main:null) Connected to 
10.2.30.11:8250
2016-05-05 16:47:41,377 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Attempting to create storage pool 
340a4603-7617-4f5e-980a-4cc2f6f0afda (Filesystem) in libvirt
2016-05-05 16:47:41,380 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Found existing defined storage pool 
340a4603-7617-4f5e-980a-4cc2f6f0afda, using it.
2016-05-05 16:47:41,381 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Trying to fetch storage pool 
340a4603-7617-4f5e-980a-4cc2f6f0afda from libvirt
2016-05-05 16:47:41,440 INFO  [cloud.serializer.GsonHelper] 
(Agent-Handler-1:null) Default Builder inited.
2016-05-05 16:47:41,475 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Proccess agent startup answer, agent id = 0
2016-05-05 16:47:41,475 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Set 
agent id 0
2016-05-05 16:47:41,480 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Startup Response Received: agent id = 0
2016-05-05 16:47:41,480 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) 
Stopping the agent: Reason = sig.kill

-Original Message-
From: Boris Stoyanov [mailto:boris.stoya...@shapeblue.com] 
Sent: 05 Mei 2016 16:38
To: users@cloudstack.apache.org
Subject: Re: Unable to add host

Hi Mohd,

In the same logs location you should be able to find agent logs, can you share 
what’s there?

Thanks.

> 
Regards,

Boris Stoyanov

boris.stoya...@shapeblue.com
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HSUK @shapeblue On May 5, 2016, 
at 11:34 AM, Mohd Zainal Abidin Rabani <zai...@nocser.net> wrote:
> 
> Seem like something wrong some where. Agent not stable. Runing and not 
> running:
> 
> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
> cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
> vendor preset: disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
> 16:32:19 MYT; 5s ago
> Docs: http://www.cloudstack.org/
>  Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
> /usr/share/cloudstack-agent/lib/*.jar 
> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
> export 
> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";  
> ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
> Main PID: 20105 (code=exited, status=1/FAILURE)
> 
> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
> failed state.
> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
> cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
> vendor preset: disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
> 16:32:19 MYT; 7s ago
> Docs: http://www.cloudstack.org/
>  Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
> /usr/share/cloudstack-agent/lib/*.jar 
> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
> export 
> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";  
> ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
> "$CLASSPATH" $JA

Re: Unable to add host

2016-05-05 Thread Boris Stoyanov
; vendor preset: disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
> 16:32:19 MYT; 9s ago
> Docs: http://www.cloudstack.org/
>  Process: 20105 ExecStart=/bin/sh -ec  export ACP=`ls 
> /usr/share/cloudstack-agent/lib/*.jar 
> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
> export 
> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";  
> ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
> Main PID: 20105 (code=exited, status=1/FAILURE)
> 
> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
> failed state.
> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
> [root@host29-01 agent]# systemctl status cloudstack-agent
> ● cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
> vendor preset: disabled)
>   Active: active (running) since Thu 2016-05-05 16:32:30 MYT; 349ms ago
> Docs: http://www.cloudstack.org/
> Main PID: 20296 (sh)
>   CGroup: /system.slice/cloudstack-agent.service
>   ├─20296 /bin/sh -ec  export ACP=`ls 
> /usr/share/cloudstack-agent/lib/*.jar 
> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|t...
>   └─20300 /usr/lib/jvm/jre/bin/java -Xms256m -Xmx2048m -cp 
> /usr/share/cloudstack-agent/lib/activation-1.1.jar:/usr/share/cloudstack-age...
> 
> May 05 16:32:30 host29-01 systemd[1]: Started CloudStack Agent.
> May 05 16:32:30 host29-01 systemd[1]: Starting CloudStack Agent...
> May 05 16:32:30 host29-01 sh[20296]: log4j:WARN No appenders could be found 
> for logger (com.cloud.agent.AgentShell).
> May 05 16:32:30 host29-01 sh[20296]: log4j:WARN Please initialize the log4j 
> system properly.
> May 05 16:32:30 host29-01 sh[20296]: log4j:WARN See 
> http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
> [root@host29-01 agent]# systemctl status cloudstack-agent
> ● cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
> vendor preset: disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
> 16:32:32 MYT; 2s ago
> Docs: http://www.cloudstack.org/
>  Process: 20296 ExecStart=/bin/sh -ec  export ACP=`ls 
> /usr/share/cloudstack-agent/lib/*.jar 
> /usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;  
> export 
> CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";  
> ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
> "$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
> Main PID: 20296 (code=exited, status=1/FAILURE)
> 
> May 05 16:32:32 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
> failed state.
> May 05 16:32:32 host29-01 systemd[1]: cloudstack-agent.service failed.
> 
> -Original Message-
> From: Mohd Zainal Abidin Rabani [mailto:zai...@nocser.net] 
> Sent: 05 Mei 2016 16:22
> To: users@cloudstack.apache.org
> Subject: RE: Unable to add host
> 
> Hi, 
> 
> Sorry for late reply. Cloudstack agent not running. Getting same error:
> 
> 2016-05-05 16:08:22,929 INFO  [cloud.serializer.GsonHelper] 
> (Agent-Handler-1:null) Default Builder inited.
> 2016-05-05 16:08:23,002 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
> Proccess agent startup answer, agent id = 0
> 2016-05-05 16:08:23,002 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Set 
> agent id 0
> 2016-05-05 16:08:23,007 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
> Startup Response Received: agent id = 0
> 2016-05-05 16:08:23,010 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) 
> Stopping the agent: Reason = sig.kill
> 2016-05-05 16:08:34,963 INFO  [cloud.agent.AgentShell] (main:null) Agent 
> started
> 2016-05-05 16:08:34,965 INFO  [cloud.agent.AgentShell] (main:null) 
> Implementation Version is 4.6.2
> 2016-05-05 16:08:34,966 INFO  [cloud.agent.AgentShell] (main:null) 
> agent.properties found at /etc/cloudstack/agent/agent.properties
> 2016-05-05 16:08:34,970 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
> to using properties file for storage
> 2016-05-05 16:08:34,972 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
> to the constant time backoff algorithm
> 2016-05-05 16:08:34,984 INFO  [cloud.utils.LogUtils] (main:null) log4j 
> configuration found at /etc/cloudstack/agent/log4j-cloud.xml
> 2016-05-05 16:08:35,001 INFO  [cloud.agent.AgentShell] (main:null) Preferring 
> IPv4 address family for ag

RE: Unable to add host

2016-05-05 Thread Mohd Zainal Abidin Rabani
19 host29-01 systemd[1]: cloudstack-agent.service failed.
[root@host29-01 agent]# systemctl status cloudstack-agent
● cloudstack-agent.service - CloudStack Agent
   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
vendor preset: disabled)
   Active: active (running) since Thu 2016-05-05 16:32:30 MYT; 349ms ago
 Docs: http://www.cloudstack.org/
 Main PID: 20296 (sh)
   CGroup: /system.slice/cloudstack-agent.service
   ├─20296 /bin/sh -ec  export ACP=`ls 
/usr/share/cloudstack-agent/lib/*.jar /usr/share/cloudstack-agent/plugins/*.jar 
2>/dev/null|t...
   └─20300 /usr/lib/jvm/jre/bin/java -Xms256m -Xmx2048m -cp 
/usr/share/cloudstack-agent/lib/activation-1.1.jar:/usr/share/cloudstack-age...

May 05 16:32:30 host29-01 systemd[1]: Started CloudStack Agent.
May 05 16:32:30 host29-01 systemd[1]: Starting CloudStack Agent...
May 05 16:32:30 host29-01 sh[20296]: log4j:WARN No appenders could be found for 
logger (com.cloud.agent.AgentShell).
May 05 16:32:30 host29-01 sh[20296]: log4j:WARN Please initialize the log4j 
system properly.
May 05 16:32:30 host29-01 sh[20296]: log4j:WARN See 
http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
[root@host29-01 agent]# systemctl status cloudstack-agent
● cloudstack-agent.service - CloudStack Agent
   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; 
vendor preset: disabled)
   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 
16:32:32 MYT; 2s ago
 Docs: http://www.cloudstack.org/
  Process: 20296 ExecStart=/bin/sh -ec  export ACP=`ls 
/usr/share/cloudstack-agent/lib/*.jar /usr/share/cloudstack-agent/plugins/*.jar 
2>/dev/null|tr "\n" ":"`;  export 
CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";
  ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp 
"$CLASSPATH" $JAVA_CLASS (code=exited, status=1/FAILURE)
 Main PID: 20296 (code=exited, status=1/FAILURE)

May 05 16:32:32 host29-01 systemd[1]: Unit cloudstack-agent.service entered 
failed state.
May 05 16:32:32 host29-01 systemd[1]: cloudstack-agent.service failed.

-Original Message-
From: Mohd Zainal Abidin Rabani [mailto:zai...@nocser.net] 
Sent: 05 Mei 2016 16:22
To: users@cloudstack.apache.org
Subject: RE: Unable to add host

Hi, 

Sorry for late reply. Cloudstack agent not running. Getting same error:

2016-05-05 16:08:22,929 INFO  [cloud.serializer.GsonHelper] 
(Agent-Handler-1:null) Default Builder inited.
2016-05-05 16:08:23,002 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Proccess agent startup answer, agent id = 0
2016-05-05 16:08:23,002 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Set 
agent id 0
2016-05-05 16:08:23,007 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Startup Response Received: agent id = 0
2016-05-05 16:08:23,010 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) 
Stopping the agent: Reason = sig.kill
2016-05-05 16:08:34,963 INFO  [cloud.agent.AgentShell] (main:null) Agent started
2016-05-05 16:08:34,965 INFO  [cloud.agent.AgentShell] (main:null) 
Implementation Version is 4.6.2
2016-05-05 16:08:34,966 INFO  [cloud.agent.AgentShell] (main:null) 
agent.properties found at /etc/cloudstack/agent/agent.properties
2016-05-05 16:08:34,970 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
to using properties file for storage
2016-05-05 16:08:34,972 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
to the constant time backoff algorithm
2016-05-05 16:08:34,984 INFO  [cloud.utils.LogUtils] (main:null) log4j 
configuration found at /etc/cloudstack/agent/log4j-cloud.xml
2016-05-05 16:08:35,001 INFO  [cloud.agent.AgentShell] (main:null) Preferring 
IPv4 address family for agent connection
2016-05-05 16:08:35,128 INFO  [cloud.agent.Agent] (main:null) id is 0
2016-05-05 16:08:35,154 INFO  [kvm.resource.LibvirtConnection] (main:null) No 
existing libvirtd connection found. Opening a new one
2016-05-05 16:08:35,405 INFO  [org.reflections.Reflections] (main:null) 
Reflections took 48 ms to scan 1 urls, producing 7 keys and 10 values
2016-05-05 16:08:35,543 INFO  [kvm.resource.LibvirtComputingResource] 
(main:null) No libvirt.vif.driver specified. Defaults to BridgeVifDriver.
2016-05-05 16:08:35,568 INFO  [cloud.agent.Agent] (main:null) Agent [id = 0 : 
type = LibvirtComputingResource : zone = AIMS KL : pod = 3F-G-13 : workers = 5 
: host = 10.2.30.11 : port = 8250
2016-05-05 16:08:35,572 INFO  [utils.nio.NioClient] (main:null) Connecting to 
10.2.30.11:8250
2016-05-05 16:08:35,799 INFO  [utils.nio.NioClient] (main:null) SSL: Handshake 
done
2016-05-05 16:08:35,799 INFO  [utils.nio.NioClient] (main:null) Connected to 
10.2.30.11:8250
2016-05-05 16:08:35,875 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Attempting to create storage pool 
7968e68b-9ffe-4436-86b9-fe2adbd873cf (Filesystem) in libvirt
2016-05-05 16:08:35,881 WARN  [kvm.storage.Lib

RE: Unable to add host

2016-05-05 Thread Mohd Zainal Abidin Rabani
Hi, 

Sorry for late reply. Cloudstack agent not running. Getting same error:

2016-05-05 16:08:22,929 INFO  [cloud.serializer.GsonHelper] 
(Agent-Handler-1:null) Default Builder inited.
2016-05-05 16:08:23,002 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Proccess agent startup answer, agent id = 0
2016-05-05 16:08:23,002 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Set 
agent id 0
2016-05-05 16:08:23,007 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Startup Response Received: agent id = 0
2016-05-05 16:08:23,010 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) 
Stopping the agent: Reason = sig.kill
2016-05-05 16:08:34,963 INFO  [cloud.agent.AgentShell] (main:null) Agent started
2016-05-05 16:08:34,965 INFO  [cloud.agent.AgentShell] (main:null) 
Implementation Version is 4.6.2
2016-05-05 16:08:34,966 INFO  [cloud.agent.AgentShell] (main:null) 
agent.properties found at /etc/cloudstack/agent/agent.properties
2016-05-05 16:08:34,970 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
to using properties file for storage
2016-05-05 16:08:34,972 INFO  [cloud.agent.AgentShell] (main:null) Defaulting 
to the constant time backoff algorithm
2016-05-05 16:08:34,984 INFO  [cloud.utils.LogUtils] (main:null) log4j 
configuration found at /etc/cloudstack/agent/log4j-cloud.xml
2016-05-05 16:08:35,001 INFO  [cloud.agent.AgentShell] (main:null) Preferring 
IPv4 address family for agent connection
2016-05-05 16:08:35,128 INFO  [cloud.agent.Agent] (main:null) id is 0
2016-05-05 16:08:35,154 INFO  [kvm.resource.LibvirtConnection] (main:null) No 
existing libvirtd connection found. Opening a new one
2016-05-05 16:08:35,405 INFO  [org.reflections.Reflections] (main:null) 
Reflections took 48 ms to scan 1 urls, producing 7 keys and 10 values
2016-05-05 16:08:35,543 INFO  [kvm.resource.LibvirtComputingResource] 
(main:null) No libvirt.vif.driver specified. Defaults to BridgeVifDriver.
2016-05-05 16:08:35,568 INFO  [cloud.agent.Agent] (main:null) Agent [id = 0 : 
type = LibvirtComputingResource : zone = AIMS KL : pod = 3F-G-13 : workers = 5 
: host = 10.2.30.11 : port = 8250
2016-05-05 16:08:35,572 INFO  [utils.nio.NioClient] (main:null) Connecting to 
10.2.30.11:8250
2016-05-05 16:08:35,799 INFO  [utils.nio.NioClient] (main:null) SSL: Handshake 
done
2016-05-05 16:08:35,799 INFO  [utils.nio.NioClient] (main:null) Connected to 
10.2.30.11:8250
2016-05-05 16:08:35,875 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Attempting to create storage pool 
7968e68b-9ffe-4436-86b9-fe2adbd873cf (Filesystem) in libvirt
2016-05-05 16:08:35,881 WARN  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Storage pool 7968e68b-9ffe-4436-86b9-fe2adbd873cf was 
not found running in libvirt. Need to create it.
2016-05-05 16:08:35,881 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) Didn't find an existing storage pool 
7968e68b-9ffe-4436-86b9-fe2adbd873cf by UUID, checking for pools with duplicate 
paths
2016-05-05 16:08:35,882 ERROR [kvm.storage.LibvirtStorageAdaptor] 
(Agent-Handler-1:null) /var/lib/libvirt/images does not exists. Check 
local.storage.path in agent.properties.
2016-05-05 16:08:35,927 INFO  [cloud.serializer.GsonHelper] 
(Agent-Handler-1:null) Default Builder inited.
2016-05-05 16:08:36,001 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Proccess agent startup answer, agent id = 0
2016-05-05 16:08:36,002 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) Set 
agent id 0
2016-05-05 16:08:36,008 INFO  [cloud.agent.Agent] (AgentShutdownThread:null) 
Stopping the agent: Reason = sig.kill
2016-05-05 16:08:36,008 INFO  [cloud.agent.Agent] (Agent-Handler-2:null) 
Startup Response Received: agent id = 0

I already enable use.local.storage = true in "Global Settings". 

-Original Message-
From: kotipalli venkatesh [mailto:venkateshcloudt...@gmail.com] 
Sent: 05 Mei 2016 15:23
To: users@cloudstack.apache.org
Subject: Re: Unable to add host

Hi Mohd,

Could you please share the info of your environment version details.

Rergards,
Venkatesh.k

On Thu, May 5, 2016 at 12:50 PM, Mohd Zainal Abidin Rabani < zai...@nocser.net> 
wrote:

> On the kvm host, cloudstack agent not list in systemctl. But when i issue:
> rpm -qa | grep cloudstack, it's already install. This is bug?
>
> -Original Message-
> From: Mohd Zainal Abidin Rabani [mailto:zai...@nocser.net]
> Sent: 05 Mei 2016 14:56
> To: users@cloudstack.apache.org
> Subject: Unable to add host
>
> Hi,
>
>
>
> The last issue is WebUI. Now i can access webUI. But other error 
> occur. I manage to setup cloudstack management server. But when i try 
> to add management server in UI i get error: Unable to add host. Unable 
> to find the server resources at http://10.2.30.11
>
>
>
> Any idea what wrong?
>
>
>
> Regards,
>
>
>
> Mohd Zainal Abidin Rabani
>
> Technical Support
>
>
>
> ModernOne Data Solut

Re: Unable to add host

2016-05-05 Thread Boris Stoyanov
Hi Mohd,
I would assume the cloudstack-agent service is running, if so, could you please 
provide management logs usually it’s under /var/log/cloudstack/

Also you might want to check ant connection/firewall issues. 

Regards,
Boris Stoyanov

> 
Regards,

Boris Stoyanov

boris.stoya...@shapeblue.com 
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HSUK
@shapeblue
On May 5, 2016, at 10:20 AM, Mohd Zainal Abidin Rabani  
wrote:
> 
> On the kvm host, cloudstack agent not list in systemctl. But when i issue:
> rpm -qa | grep cloudstack, it's already install. This is bug?
> 
> -Original Message-
> From: Mohd Zainal Abidin Rabani [mailto:zai...@nocser.net] 
> Sent: 05 Mei 2016 14:56
> To: users@cloudstack.apache.org
> Subject: Unable to add host
> 
> Hi,
> 
> 
> 
> The last issue is WebUI. Now i can access webUI. But other error occur. I
> manage to setup cloudstack management server. But when i try to add
> management server in UI i get error: Unable to add host. Unable to find the
> server resources at http://10.2.30.11
> 
> 
> 
> Any idea what wrong?
> 
> 
> 
> Regards,
> 
> 
> 
> Mohd Zainal Abidin Rabani
> 
> Technical Support
> 
> 
> 
> ModernOne Data Solutions Sdn. Bhd.
> 
> [ Dedicated Server | VPS | Co-Location | Hosting ]
> 
> [ Managed Service | System Integration | Domain ]
> 
> W : www.nocser.net
> 
> FB: http://www.facebook.com/nocser
> 
> Twitter: @nocsertech
> 
> Skype: zabidin5417
> 
> 
> 
> 



Re: Unable to add host

2016-05-05 Thread kotipalli venkatesh
Hi Mohd,

Could you please share the info of your environment version details.

Rergards,
Venkatesh.k

On Thu, May 5, 2016 at 12:50 PM, Mohd Zainal Abidin Rabani <
zai...@nocser.net> wrote:

> On the kvm host, cloudstack agent not list in systemctl. But when i issue:
> rpm -qa | grep cloudstack, it's already install. This is bug?
>
> -Original Message-
> From: Mohd Zainal Abidin Rabani [mailto:zai...@nocser.net]
> Sent: 05 Mei 2016 14:56
> To: users@cloudstack.apache.org
> Subject: Unable to add host
>
> Hi,
>
>
>
> The last issue is WebUI. Now i can access webUI. But other error occur. I
> manage to setup cloudstack management server. But when i try to add
> management server in UI i get error: Unable to add host. Unable to find the
> server resources at http://10.2.30.11
>
>
>
> Any idea what wrong?
>
>
>
> Regards,
>
>
>
> Mohd Zainal Abidin Rabani
>
> Technical Support
>
>
>
> ModernOne Data Solutions Sdn. Bhd.
>
> [ Dedicated Server | VPS | Co-Location | Hosting ]
>
> [ Managed Service | System Integration | Domain ]
>
> W : www.nocser.net
>
> FB: http://www.facebook.com/nocser
>
> Twitter: @nocsertech
>
> Skype: zabidin5417
>
>
>
>
>


RE: Unable to add host

2016-05-05 Thread Mohd Zainal Abidin Rabani
On the kvm host, cloudstack agent not list in systemctl. But when i issue:
rpm -qa | grep cloudstack, it's already install. This is bug?

-Original Message-
From: Mohd Zainal Abidin Rabani [mailto:zai...@nocser.net] 
Sent: 05 Mei 2016 14:56
To: users@cloudstack.apache.org
Subject: Unable to add host

Hi,

 

The last issue is WebUI. Now i can access webUI. But other error occur. I
manage to setup cloudstack management server. But when i try to add
management server in UI i get error: Unable to add host. Unable to find the
server resources at http://10.2.30.11

 

Any idea what wrong?

 

Regards,

 

Mohd Zainal Abidin Rabani

Technical Support

 

ModernOne Data Solutions Sdn. Bhd.

[ Dedicated Server | VPS | Co-Location | Hosting ]

[ Managed Service | System Integration | Domain ]

W : www.nocser.net

FB: http://www.facebook.com/nocser

Twitter: @nocsertech

Skype: zabidin5417

 




Re: unable to add host KVM

2014-06-25 Thread Ali Ahsan

I am getting same  error


INFO  [c.c.r.ResourceManagerImpl] (catalina-exec-18:ctx-1e12c184 
ctx-9bed81bf) Trying to add a new host at http://10.10.0.103 in data 
center 1
WARN  [c.c.r.ResourceManagerImpl] (catalina-exec-18:ctx-1e12c184 
ctx-9bed81bf) Unable to find the server resources at http://10.10.0.103
INFO  [c.c.u.e.CSExceptionErrorCode] (catalina-exec-18:ctx-1e12c184 
ctx-9bed81bf) Could not find exception: 
com.cloud.exception.DiscoveryException in error code list for exceptions
WARN  [o.a.c.a.c.a.h.AddHostCmd] (catalina-exec-18:ctx-1e12c184 
ctx-9bed81bf) Exception:

com.cloud.exception.DiscoveryException: Unable to add the host
at 
com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:780)
at 
com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:575)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)

at com.sun.proxy.$Proxy145.discoverHosts(Unknown Source)
at 
org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)

at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:531)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:374)
at 
com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:323)

at com.cloud.api.ApiServlet.access$000(ApiServlet.java:53)
at com.cloud.api.ApiServlet$1.run(ApiServlet.java:115)
at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)

at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:112)
at com.cloud.api.ApiServlet.doPost(ApiServlet.java:79)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at 
org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
at 
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:744)
INFO  [c.c.a.ApiServer] (catalina-exec-18:ctx-1e12c184 ctx-9bed81bf) 
Unable to add the host



On 6/24/2014 10:24 PM, dimas yoga pratama wrote:

Hi all,

I want to add host in my cloudstack with kvm basic networking.
I follow this guide
http://cloudstack-installation.readthedocs.org/en/latest/hypervisor/kvm.html
but I'm unable to add host.
this is my management-server.log

anybody know how to solve this???

thanks.

-8:ctx-af20f8f7 ctx-ce74c51b)  can't setup agent, due to
java.net.SocketTimeoutException: The kexTimeout (6 

Re: Unable to add host (clean 4.2.0 installation)

2013-11-13 Thread Carlos Miranda Molina (Mstaaravin)
On Tue, Nov 12, 2013 at 8:35 PM, Nux! n...@li.nux.ro wrote:

 Are you sure you are giving the right password for root?


http://www.cuantocabron.com/images/templates/kidding-me-template.jpg


-- 
La Voluntad es el único motor de nuestros logros
http://blog.ngen.com.ar/


Re: Unable to add host (clean 4.2.0 installation)

2013-11-13 Thread Koen Vanoppen
Aslo, check you resolv.conf. Maybe something is wrong in there...


2013/11/13 Carlos Miranda Molina (Mstaaravin) mstaara...@gmail.com

 On Tue, Nov 12, 2013 at 8:35 PM, Nux! n...@li.nux.ro wrote:

  Are you sure you are giving the right password for root?
 

 http://www.cuantocabron.com/images/templates/kidding-me-template.jpg


 --
 La Voluntad es el único motor de nuestros logros
 http://blog.ngen.com.ar/



Re: Unable to add host (clean 4.2.0 installation)

2013-11-13 Thread Shanker Balan
On 13-Nov-2013, at 8:22 pm, Carlos Miranda Molina (Mstaaravin) 
mstaara...@gmail.com wrote:

 After repetitive errors i configure a local DNS server with correct reverse
 resolution between manager and hosts, that works fine!

 Now, i'm thinking in reinstall all my laboratory, probably i take a mistake
 in the installation process.

 Thanks!


One of the first things I do via “ansible” on all my hosts:

- name: sshd_config - UseDNS
  action: lineinfile dest=/etc/ssh/sshd_config regexp=^UseDNS line=UseDNS no
  notify: restart sshd


--
@shankerbalan

M: +91 98860 60539 | O: +91 (80) 67935867
shanker.ba...@shapeblue.com | www.shapeblue.com | Twitter:@shapeblue
ShapeBlue Services India LLP, 22nd floor, Unit 2201A, World Trade Centre, 
Bangalore - 560 055

CloudStack Bootcamp Training on 27/28 November, Bangalore
http://www.shapeblue.com/cloudstack-training/




This email and any attachments to it may be confidential and are intended 
solely for the use of the individual to whom it is addressed. Any views or 
opinions expressed are solely those of the author and do not necessarily 
represent those of Shape Blue Ltd or related companies. If you are not the 
intended recipient of this email, you must neither take any action based upon 
its contents, nor copy or show it to anyone. Please contact the sender if you 
believe you have received this email in error. Shape Blue Ltd is a company 
incorporated in England  Wales. ShapeBlue Services India LLP is a company 
incorporated in India and is operated under license from Shape Blue Ltd. Shape 
Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is 
operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.


Re: Unable to add host (clean 4.2.0 installation)

2013-11-12 Thread Nux!

On 12.11.2013 17:50, Carlos Miranda Molina (Mstaaravin) wrote:
WARN  [kvm.discoverer.LibvirtServerDiscoverer] (catalina-exec-5:)  
can't
setup agent, due to java.io.IOException: Password authentication 
failed. -

Password authentication failed.
WARN  [cloud.resource.ResourceManagerImpl] (catalina-exec-5:) Unable 
to

find the server resources at http://192.168.10.101


Are you sure you are giving the right password for root?

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro


RE: Unable to add host: Unable to start agent: NO HVM support on this machine

2013-06-26 Thread Susumu Shipp
This may be a basic question, but have you verified that you can use kvm 
outside of cloudstack on the node?

-susumu

-Original Message-
From: Mir Islam [mailto:mis...@mirislam.com] 
Sent: Wednesday, June 26, 2013 2:44 PM
To: users@cloudstack.apache.org
Subject: Unable to add host: Unable to start agent: NO HVM support on this 
machine

Hi all, when trying to add a new host I am seeing the following error in 
/var/log/cloudstack/agent/cloudstack-agent.out


2013-06-26 13:30:42,461{GMT} ERROR [cloud.agent.AgentShell] (main:) Unable to 
start agent: NO HVM support on this machine, please make sure: 1. VT/SVM is 
supported by your CPU, or is enabled in BIOS. 2. kvm modules are loaded (kvm, 
kvm_amd|kvm_intel) Unable to start agent: NO HVM support on this machine, 
please make sure: 1. VT/SVM is supported by your CPU, or is enabled in BIOS. 2. 
kvm modules are loaded (kvm, kvm_amd|kvm_intel)

I do have the virtualization turned on in BIOS and the kvm+kvm_intel modules 
are loaded into kernel. So not sure what is wrong?

My setup:

Centos 6.3 (tried with 6.4 same result)
Cloudstack 4.1 from yum repo

What other log/info can I provide?

Thanks
Mir


This email message is intended for the use of the person to whom it has been 
sent, and may contain information that is confidential or legally protected. If 
you are not the intended recipient or have received this message in error, you 
are not authorized to copy, distribute, or otherwise use this message or its 
attachments. Please notify the sender immediately by return e-mail and 
permanently delete this message and any attachments. Verio Inc. makes no 
warranty that this email is error or virus free.  Thank you.


Re: unable to add host

2013-06-06 Thread Er Krishna
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 aemne...@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 erkris...@gmail.com wrote:

  On 5 Jun 2013 21:59, Ahmad Emneina aemne...@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 erkris...@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 erkris...@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 

Re: unable to add host

2013-06-06 Thread Prasanna Santhanam
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 aemne...@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 erkris...@gmail.com wrote:
 
   On 5 Jun 2013 21:59, Ahmad Emneina aemne...@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 erkris...@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 erkris...@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
 

Re: unable to add host

2013-06-06 Thread Er Krishna
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 t...@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

2013-06-06 Thread Ahmad Emneina
I think TRACE is the better option, lets go with that.

Ahmad

On Jun 6, 2013, at 12:21 AM, Er Krishna erkris...@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 t...@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

2013-06-06 Thread Prasanna Santhanam
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

2013-06-06 Thread Er Krishna
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
cloud0Link 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:c090-c0a0

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:c0b0-c0c0

loLink 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)

virbr0Link 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 t...@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

2013-06-06 Thread Er Krishna
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.budum...@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 erkris...@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
 cloud0Link 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:c090-c0a0
 
 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:c0b0-c0c0
 
 loLink 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)
 
 virbr0Link 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 t...@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

2013-06-05 Thread Er Krishna
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 erkris...@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

2013-06-05 Thread Ahmad Emneina
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 erkris...@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 erkris...@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

2013-06-05 Thread Er Krishna
Yes ssh is fine and i have disabled firewall too.
On 5 Jun 2013 22:00, Ahmad Emneina aemne...@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 erkris...@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 erkris...@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

2013-06-05 Thread Er Krishna
On 5 Jun 2013 21:59, Ahmad Emneina aemne...@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 erkris...@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 erkris...@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

2013-06-04 Thread David Nalley
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 erkris...@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

2013-03-31 Thread Richard S
I found this in the log

com.cloud.exception.DiscoveryException: Unable to add the host
at
com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:737)
at
com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:544)
at com.cloud.api.commands.AddHostCmd.execute(AddHostCmd.java:140)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:138)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:544)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:423)
at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:312)
at com.cloud.api.ApiServlet.doGet(ApiServlet.java:64)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
at
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)
2013-03-31 18:43:04,946 WARN  [cloud.api.ApiDispatcher]
(catalina-exec-11:null) class com.cloud.api.ServerApiException : Unable to
add the host
2013-03-31 18:43:04,947 DEBUG [cloud.api.ApiServlet]
(catalina-exec-11:null) ===END===  151.230.16.29 -- GET
command=addHostzoneid=9b26870a-e224-4e75-b587-dde43e1c1fc6podid=de1b160e-6542-4c5d-a9b8-f9f4b5912da8cluster$
2013-03-31 18:43:30,394 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl]
(consoleproxy-1:null) Skip capacity scan due to there is no Primary Storage
UPintenance mode
2013-03-31 18:43:31,079 DEBUG [storage.snapshot.SnapshotSchedulerImpl]
(SnapshotPollTask:null) Snapshot scheduler.poll is being called at
2013-03-31 17:43:31 GMT
2013-03-31 18:43:31,081 DEBUG [storage.snapshot.SnapshotSchedulerImpl]
(SnapshotPollTask:null) Got 0 snapshots to be executed at 2013-03-31
17:43:31 GMT
2013-03-31 18:43:31,124 DEBUG
[cloud.network.ExternalLoadBalancerUsageManagerImpl]
(ExternalNetworkMonitor-1:null) External load balancer devices stats
collector is running...
2013-03-31 18:43:31,204 INFO  [cloud.ha.HighAvailabilityManagerImpl]
(HA-3:null) checking health of usage server
2013-03-31 18:43:31,206 DEBUG [cloud.ha.HighAvailabilityManagerImpl]
(HA-3:null) usage server running? false, heartbeat: null
2013-03-31 18:43:31,210 DEBUG [cloud.alert.AlertManagerImpl] (HA-3:null)
Have already sent: 1 emails for alert type '12' -- skipping send email
2013-03-31 18:43:31,211 DEBUG
[network.router.VirtualNetworkApplianceManagerImpl] (RouterMonitor-1:null)
Found 0 running routers.
2013-03-31 18:43:31,221 DEBUG
[network.router.VirtualNetworkApplianceManagerImpl]
(RouterStatusMonitor-1:null) Found 0 routers.
2013-03-31 18:43:44,721 DEBUG [cloud.server.StatsCollector]
(StatsCollector-1:null) VmStatsCollector is running...
2013-03-31 18:43:44,721 DEBUG [cloud.server.StatsCollector]
(StatsCollector-3:null) HostStatsCollector is running...
2013-03-31 18:43:44,770 DEBUG [cloud.server.StatsCollector]
(StatsCollector-1:null) StorageCollector is running...


what could be the problem when I try to add the Xenserver host? I use to be
able to do it on Cloudstack 3



On Sun, Mar 31, 2013 at 6:18 PM, Pranav Saxena pranav.sax...@citrix.comwrote:

 Check the management server log in your cloudstack repo . It will list you
 the entire stacktrace of where the exception occurred and due to what
 reason.  In case there's a problem with your host then you got to check the
 xensource.log file in your xenserver host.

 Thanks,
 Pranav
 -Original Message-
 From: Richard S [mailto:solid.snak...@gmail.com]
 Sent: Sunday, March 31, 2013 10:34 PM
 To: users@cloudstack.apache.org
 Subject: unable to add host

 I'm running Xenserver 6.0 with Cloudstack 4.0.1. when I try to add the
 Xenserver as s host I get unable to add host. 

Re: unable to add host

2013-03-31 Thread Ahmad Emneina
Can you add more logs, we'll need more to troubleshoot. Also, can you post it 
to paste.cloudstack.org

Ahmad

On Mar 31, 2013, at 10:40 AM, Richard S solid.snak...@gmail.com wrote:

 I found this in the log
 
 com.cloud.exception.DiscoveryException: Unable to add the host
at
 com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:737)
at
 com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:544)
at com.cloud.api.commands.AddHostCmd.execute(AddHostCmd.java:140)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:138)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:544)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:423)
at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:312)
at com.cloud.api.ApiServlet.doGet(ApiServlet.java:64)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
 org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
at
 org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)
 2013-03-31 18:43:04,946 WARN  [cloud.api.ApiDispatcher]
 (catalina-exec-11:null) class com.cloud.api.ServerApiException : Unable to
 add the host
 2013-03-31 18:43:04,947 DEBUG [cloud.api.ApiServlet]
 (catalina-exec-11:null) ===END===  151.230.16.29 -- GET
 command=addHostzoneid=9b26870a-e224-4e75-b587-dde43e1c1fc6podid=de1b160e-6542-4c5d-a9b8-f9f4b5912da8cluster$
 2013-03-31 18:43:30,394 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl]
 (consoleproxy-1:null) Skip capacity scan due to there is no Primary Storage
 UPintenance mode
 2013-03-31 18:43:31,079 DEBUG [storage.snapshot.SnapshotSchedulerImpl]
 (SnapshotPollTask:null) Snapshot scheduler.poll is being called at
 2013-03-31 17:43:31 GMT
 2013-03-31 18:43:31,081 DEBUG [storage.snapshot.SnapshotSchedulerImpl]
 (SnapshotPollTask:null) Got 0 snapshots to be executed at 2013-03-31
 17:43:31 GMT
 2013-03-31 18:43:31,124 DEBUG
 [cloud.network.ExternalLoadBalancerUsageManagerImpl]
 (ExternalNetworkMonitor-1:null) External load balancer devices stats
 collector is running...
 2013-03-31 18:43:31,204 INFO  [cloud.ha.HighAvailabilityManagerImpl]
 (HA-3:null) checking health of usage server
 2013-03-31 18:43:31,206 DEBUG [cloud.ha.HighAvailabilityManagerImpl]
 (HA-3:null) usage server running? false, heartbeat: null
 2013-03-31 18:43:31,210 DEBUG [cloud.alert.AlertManagerImpl] (HA-3:null)
 Have already sent: 1 emails for alert type '12' -- skipping send email
 2013-03-31 18:43:31,211 DEBUG
 [network.router.VirtualNetworkApplianceManagerImpl] (RouterMonitor-1:null)
 Found 0 running routers.
 2013-03-31 18:43:31,221 DEBUG
 [network.router.VirtualNetworkApplianceManagerImpl]
 (RouterStatusMonitor-1:null) Found 0 routers.
 2013-03-31 18:43:44,721 DEBUG [cloud.server.StatsCollector]
 (StatsCollector-1:null) VmStatsCollector is running...
 2013-03-31 18:43:44,721 DEBUG [cloud.server.StatsCollector]
 (StatsCollector-3:null) HostStatsCollector is running...
 2013-03-31 18:43:44,770 DEBUG [cloud.server.StatsCollector]
 (StatsCollector-1:null) StorageCollector is running...
 
 
 what could be the problem when I try to add the Xenserver host? I use to be
 able to do it on Cloudstack 3
 
 
 
 On Sun, Mar 31, 2013 at 6:18 PM, Pranav Saxena 
 pranav.sax...@citrix.comwrote:
 
 Check the management server log in your cloudstack repo . It will list you
 the entire stacktrace of where the exception occurred and due to what
 reason.  In case there's a problem with your host then you got to check the
 xensource.log file in your xenserver host.
 
 Thanks,
 Pranav
 -Original Message-
 From: Richard S 

Re: unable to add host

2013-03-31 Thread Kirk Kosinski
Besides ping, make sure your management server can access TCP ports 22,
80, and 443 on your XenServer hosts.

Best regards,
Kirk

On 03/31/2013 11:09 AM, Pranav Saxena wrote:
 Well , I usually see this in case you happened to select the wrong hypervisor 
 type from the GUI . So please check if you have chosen the correct hypervisor 
 type . Also please check if you are able to ping your host from your 
 management server . 
 
 Thanks,
 Pranav
 
 -Original Message-
 From: Richard S [mailto:solid.snak...@gmail.com] 
 Sent: Sunday, March 31, 2013 11:10 PM
 To: users@cloudstack.apache.org
 Subject: Re: unable to add host
 
 I found this in the log
 
 com.cloud.exception.DiscoveryException: Unable to add the host
 at
 com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:737)
 at
 com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:544)
 at com.cloud.api.commands.AddHostCmd.execute(AddHostCmd.java:140)
 at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:138)
 at com.cloud.api.ApiServer.queueCommand(ApiServer.java:544)
 at com.cloud.api.ApiServer.handleRequest(ApiServer.java:423)
 at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:312)
 at com.cloud.api.ApiServlet.doGet(ApiServlet.java:64)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
 at
 org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
 at
 org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:679)
 2013-03-31 18:43:04,946 WARN  [cloud.api.ApiDispatcher]
 (catalina-exec-11:null) class com.cloud.api.ServerApiException : Unable to 
 add the host
 2013-03-31 18:43:04,947 DEBUG [cloud.api.ApiServlet]
 (catalina-exec-11:null) ===END===  151.230.16.29 -- GET 
 command=addHostzoneid=9b26870a-e224-4e75-b587-dde43e1c1fc6podid=de1b160e-6542-4c5d-a9b8-f9f4b5912da8cluster$
 2013-03-31 18:43:30,394 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl]
 (consoleproxy-1:null) Skip capacity scan due to there is no Primary Storage 
 UPintenance mode
 2013-03-31 18:43:31,079 DEBUG [storage.snapshot.SnapshotSchedulerImpl]
 (SnapshotPollTask:null) Snapshot scheduler.poll is being called at
 2013-03-31 17:43:31 GMT
 2013-03-31 18:43:31,081 DEBUG [storage.snapshot.SnapshotSchedulerImpl]
 (SnapshotPollTask:null) Got 0 snapshots to be executed at 2013-03-31
 17:43:31 GMT
 2013-03-31 18:43:31,124 DEBUG
 [cloud.network.ExternalLoadBalancerUsageManagerImpl]
 (ExternalNetworkMonitor-1:null) External load balancer devices stats 
 collector is running...
 2013-03-31 18:43:31,204 INFO  [cloud.ha.HighAvailabilityManagerImpl]
 (HA-3:null) checking health of usage server
 2013-03-31 18:43:31,206 DEBUG [cloud.ha.HighAvailabilityManagerImpl]
 (HA-3:null) usage server running? false, heartbeat: null
 2013-03-31 18:43:31,210 DEBUG [cloud.alert.AlertManagerImpl] (HA-3:null) Have 
 already sent: 1 emails for alert type '12' -- skipping send email
 2013-03-31 18:43:31,211 DEBUG
 [network.router.VirtualNetworkApplianceManagerImpl] (RouterMonitor-1:null) 
 Found 0 running routers.
 2013-03-31 18:43:31,221 DEBUG
 [network.router.VirtualNetworkApplianceManagerImpl]
 (RouterStatusMonitor-1:null) Found 0 routers.
 2013-03-31 18:43:44,721 DEBUG [cloud.server.StatsCollector]
 (StatsCollector-1:null) VmStatsCollector is running...
 2013-03-31 18:43:44,721 DEBUG [cloud.server.StatsCollector]
 (StatsCollector-3:null) HostStatsCollector is running...
 2013-03-31 18:43:44,770 DEBUG [cloud.server.StatsCollector]
 (StatsCollector-1:null) StorageCollector is running...
 
 
 what could be the problem when I try to add