You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by sayed jahed hussini <sj...@yahoo.com.INVALID> on 2015/12/11 17:17:55 UTC

Unable to add hosts

I installed cloudstack using this guide:
Quick Installation Guide for CentOS 6 — Apache CloudStack Installation Documentation 4.6.0 documentation
Everything went without any errors. But I am unable to add hosts. In /var/log/cloudstack/agent/agent.log I got the following error:
INFO [utils.nio.NioClient] (main:null) Connecting to 10.1.1.2:8250ERROR [utils.nio.NioConnection] (main:null) Unable to initalize the threads.java.io.IOException: Connection closed with -1 on reading size......
Also in /var/log/cloudstack/management/setupManagement.log i got the following errors:
DEBUG:root:execute:iptables-save|grep INPUT| grep -w 8080DEBUG:root:Failed to execute:
DEBUG:root:execute:iptables -I INPUT -p tcp -m tcp --dport 8080 -j ACCEPTDEBUG:root:execute:iptables-save|grep INPUT| grep -w 8250
DEBUG:root:Failed to execute:DEBUG:root:execute:iptables -I INPUT -p tcp -m tcp --dport 8250 -j ACCEPT

best,Jay

|   |
|   |   |   |   |   |
| Quick Installation Guide for CentOS 6 — Apache CloudStack Installation Documentation 4.6.0 documenta...NFS Our configuration is going to use NFS for both primary and secondary storage. We are going to go ahead and setup two NFS shares for those purposes. We’llstart out by installing nfs-utils.  |
|  |
| View on cloudstack-installation.readthedocs.org | Preview by Yahoo |
|  |
|   |



RE: Unable to add hosts

Posted by Somesh Naidu <So...@citrix.com>.
Jay, I missed asking earlier, what host are you working with, KVM?

Regards,
Somesh

From: sayed jahed hussini [mailto:sjahed_hussini123@yahoo.com.INVALID]
Sent: Tuesday, December 15, 2015 8:59 AM
To: Paul Angus; users@cloudstack.apache.org; Somesh Naidu
Subject: Re: Unable to add hosts

I tried deactivating firewall and adding host, didn't work. Then downgraded java (yum downgrade java), still no luck.I had setup this server using the same guide about a month ago and it worked last time(same OS version).  Any other parts that I need to change?

best,
jay


On Saturday, December 12, 2015 12:47 PM, Paul Angus <pa...@shapeblue.com>> wrote:

Hi Jay,

As you've pointed out in your mgmt. server log, it looks like your firewall rules haven't been set. Assuming you're using CentOS/RHEL I guess SELinux wasn't set to permissive when your ran cloudstack-setup-management

You could try a quick n' dirty; service iptables stop to see if the communications from your host can get through, then fix the rules and re-enable the firewall.

[ShapeBlue]<http://www.shapeblue.com/>

Paul Angus

VP Technology

,

ShapeBlue



d:

+44 203 603 0540 | s: +44 203 617 0528

 |

m:

+44 7711 418784


e:

paul.angus@shapeblue.com | t: @cloudyangus<ma...@cloudyangus>

 |

w:

www.shapeblue.com<http://www.shapeblue.com/>


a:

53 Chandos Place, Covent Garden London WC2N 4HS UK



[cid:image07e1ce.png@904e29c0.45b9cae6]



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 SA Pty Ltd is a company registered by The Republic of South Africa and is traded under license from Shape Blue Ltd. ShapeBlue is a registered trademark.
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.



-----Original Message-----
From: sayed jahed hussini [mailto:sjahed_hussini123@yahoo.com.INVALID]
Sent: Saturday, December 12, 2015 4:23 PM
To: Somesh Naidu <So...@citrix.com>>; users@cloudstack.apache.org<ma...@cloudstack.apache.org>
Subject: Re: Unable to add hosts

I did update nss package, but that didn't resolve the problem either.


On Friday, December 11, 2015 2:03 PM, Somesh Naidu <So...@citrix.com>> wrote:


See if updating nss package on your management server helps resolve this.

(http://mail-archives.apache.org/mod_mbox/cloudstack-users/201511.mbox/%3C5A4FE8EFA8C8584CBEFEEACD9AA077EE61228582@SINPEX01CL02.citrite.net%3E)

Somesh
CloudPlatform Escalations
Citrix Systems, Inc.

-----Original Message-----
From: sayed jahed hussini [mailto:sjahed_hussini123@yahoo.com.INVALID]
Sent: Friday, December 11, 2015 11:18 AM
To: users@cloudstack.apache.org<ma...@cloudstack.apache.org>
Subject: Unable to add hosts

I installed cloudstack using this guide:
Quick Installation Guide for CentOS 6 — Apache CloudStack Installation Documentation 4.6.0 documentation Everything went without any errors. But I am unable to add hosts. In /var/log/cloudstack/agent/agent.log I got the following error:
INFO [utils.nio.NioClient] (main:null) Connecting to 10.1.1.2:8250ERROR [utils.nio.NioConnection] (main:null) Unable to initalize the threads.java.io.IOException: Connection closed with -1 on reading size......
Also in /var/log/cloudstack/management/setupManagement.log i got the following errors:
DEBUG:root:execute:iptables-save|grep INPUT| grep -w 8080DEBUG:root:Failed to execute:
DEBUG:root:execute:iptables -I INPUT -p tcp -m tcp --dport 8080 -j ACCEPTDEBUG:root:execute:iptables-save|grep INPUT| grep -w 8250 DEBUG:root:Failed to execute:DEBUG:root:execute:iptables -I INPUT -p tcp -m tcp --dport 8250 -j ACCEPT

best,Jay

|   |
|   |   |   |   |   |
| Quick Installation Guide for CentOS 6 — Apache CloudStack Installation
|Documentation 4.6.0 documenta...NFS Our configuration is going to use
|NFS for both primary and secondary storage. We are going to go ahead
|and setup two NFS shares for those purposes. We’llstart out by
|installing nfs-utils.  |
|  |
| View on cloudstack-installation.readthedocs.org | Preview by Yahoo |

|  |
|   |




Find out more about ShapeBlue and our range of CloudStack related services:
IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build/> | CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/> | CloudStack Software Engineering<http://shapeblue.com/cloudstack-software-engineering/>
CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/> | CloudStack Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/>



Re: Unable to add hosts

Posted by sayed jahed hussini <sj...@yahoo.com.INVALID>.
I tried deactivating firewall and adding host, didn't work. Then downgraded java (yum downgrade java), still no luck.I had setup this server using the same guide about a month ago and it worked last time(same OS version).  Any other parts that I need to change?
best,jay
 


    On Saturday, December 12, 2015 12:47 PM, Paul Angus <pa...@shapeblue.com> wrote:
 

 Hi Jay,

As you've pointed out in your mgmt. server log, it looks like your firewall rules haven't been set. Assuming you're using CentOS/RHEL I guess SELinux wasn't set to permissive when your ran cloudstack-setup-management

You could try a quick n' dirty; service iptables stop to see if the communications from your host can get through, then fix the rules and re-enable the firewall.



| 
|  | 
| 
| Paul Angus |
| 
| VP Technology | ,  | ShapeBlue |

 |

 |
| 
| 
| d:  | +44 203 603 0540 | s: +44 203 617 0528 |  |  | m:  | +44 7711 418784 |

 |
| 
| e:  | paul.angus@shapeblue.com | t: @cloudyangus |  |  | w:  | www.shapeblue.com |

 |
| 
| a:  | 53 Chandos Place, Covent Garden London WC2N 4HS UK |

 |

 |
|  |

 |

 |
| 
| 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 SA Pty Ltd is a company registered by The Republic of South Africa and is traded under license from Shape Blue Ltd. ShapeBlue is a registered trademark.
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.

 |

 |


-----Original Message-----
From: sayed jahed hussini [mailto:sjahed_hussini123@yahoo.com.INVALID] 
Sent: Saturday, December 12, 2015 4:23 PM
To: Somesh Naidu <So...@citrix.com>; users@cloudstack.apache.org
Subject: Re: Unable to add hosts

I did update nss package, but that didn't resolve the problem either.


On Friday, December 11, 2015 2:03 PM, Somesh Naidu <So...@citrix.com> wrote:


See if updating nss package on your management server helps resolve this.

(http://mail-archives.apache.org/mod_mbox/cloudstack-users/201511.mbox/%3C5A4FE8EFA8C8584CBEFEEACD9AA077EE61228582@SINPEX01CL02.citrite.net%3E)

Somesh
CloudPlatform Escalations
Citrix Systems, Inc.

-----Original Message-----
From: sayed jahed hussini [mailto:sjahed_hussini123@yahoo.com.INVALID]
Sent: Friday, December 11, 2015 11:18 AM
To: users@cloudstack.apache.org
Subject: Unable to add hosts

I installed cloudstack using this guide:
Quick Installation Guide for CentOS 6 — Apache CloudStack Installation Documentation 4.6.0 documentation Everything went without any errors. But I am unable to add hosts. In /var/log/cloudstack/agent/agent.log I got the following error:
INFO [utils.nio.NioClient] (main:null) Connecting to 10.1.1.2:8250ERROR [utils.nio.NioConnection] (main:null) Unable to initalize the threads.java.io.IOException: Connection closed with -1 on reading size......
Also in /var/log/cloudstack/management/setupManagement.log i got the following errors:
DEBUG:root:execute:iptables-save|grep INPUT| grep -w 8080DEBUG:root:Failed to execute:
DEBUG:root:execute:iptables -I INPUT -p tcp -m tcp --dport 8080 -j ACCEPTDEBUG:root:execute:iptables-save|grep INPUT| grep -w 8250 DEBUG:root:Failed to execute:DEBUG:root:execute:iptables -I INPUT -p tcp -m tcp --dport 8250 -j ACCEPT

best,Jay

|   |
|   |   |   |   |   |
| Quick Installation Guide for CentOS 6 — Apache CloudStack Installation 
|Documentation 4.6.0 documenta...NFS Our configuration is going to use 
|NFS for both primary and secondary storage. We are going to go ahead 
|and setup two NFS shares for those purposes. We’llstart out by 
|installing nfs-utils.  |
|  |
| View on cloudstack-installation.readthedocs.org | Preview by Yahoo |
|  |
|   |





Find out more about ShapeBlue and our range of CloudStack related services:
IaaS Cloud Design & Build |CSForge – rapid IaaS deployment framework
CloudStack Consulting |CloudStack Software Engineering
CloudStack Infrastructure Support |CloudStack Bootcamp Training Courses


  

RE: Unable to add hosts

Posted by Paul Angus <pa...@shapeblue.com>.
Hi Jay,

As you've pointed out in your mgmt. server log, it looks like your firewall rules haven't been set. Assuming you're using CentOS/RHEL I guess SELinux wasn't set to permissive when your ran cloudstack-setup-management

You could try a quick n' dirty; service iptables stop to see if the communications from your host can get through, then fix the rules and re-enable the firewall.


[ShapeBlue]<http://www.shapeblue.com>
Paul Angus
VP Technology   ,       ShapeBlue


d:      +44 203 603 0540 | s: +44 203 617 0528<tel:+44%20203%20603%200540%20|%20s:%20+44%20203%20617%200528>     |      m:      +44 7711 418784<tel:+44%207711%20418784>

e:      paul.angus@shapeblue.com | t: @cloudyangus<ma...@cloudyangus>      |      w:      www.shapeblue.com<http://www.shapeblue.com>

a:      53 Chandos Place, Covent Garden London WC2N 4HS UK


[cid:image07e1ce.png@904e29c0.45b9cae6]


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 SA Pty Ltd is a company registered by The Republic of South Africa and is traded under license from Shape Blue Ltd. ShapeBlue is a registered trademark.
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.




-----Original Message-----
From: sayed jahed hussini [mailto:sjahed_hussini123@yahoo.com.INVALID]
Sent: Saturday, December 12, 2015 4:23 PM
To: Somesh Naidu <So...@citrix.com>; users@cloudstack.apache.org
Subject: Re: Unable to add hosts

I did update nss package, but that didn't resolve the problem either.


On Friday, December 11, 2015 2:03 PM, Somesh Naidu <So...@citrix.com> wrote:


See if updating nss package on your management server helps resolve this.

(http://mail-archives.apache.org/mod_mbox/cloudstack-users/201511.mbox/%3C5A4FE8EFA8C8584CBEFEEACD9AA077EE61228582@SINPEX01CL02.citrite.net%3E)

Somesh
CloudPlatform Escalations
Citrix Systems, Inc.

-----Original Message-----
From: sayed jahed hussini [mailto:sjahed_hussini123@yahoo.com.INVALID]
Sent: Friday, December 11, 2015 11:18 AM
To: users@cloudstack.apache.org
Subject: Unable to add hosts

I installed cloudstack using this guide:
Quick Installation Guide for CentOS 6 — Apache CloudStack Installation Documentation 4.6.0 documentation Everything went without any errors. But I am unable to add hosts. In /var/log/cloudstack/agent/agent.log I got the following error:
INFO [utils.nio.NioClient] (main:null) Connecting to 10.1.1.2:8250ERROR [utils.nio.NioConnection] (main:null) Unable to initalize the threads.java.io.IOException: Connection closed with -1 on reading size......
Also in /var/log/cloudstack/management/setupManagement.log i got the following errors:
DEBUG:root:execute:iptables-save|grep INPUT| grep -w 8080DEBUG:root:Failed to execute:
DEBUG:root:execute:iptables -I INPUT -p tcp -m tcp --dport 8080 -j ACCEPTDEBUG:root:execute:iptables-save|grep INPUT| grep -w 8250 DEBUG:root:Failed to execute:DEBUG:root:execute:iptables -I INPUT -p tcp -m tcp --dport 8250 -j ACCEPT

best,Jay

|   |
|   |   |   |   |   |
| Quick Installation Guide for CentOS 6 — Apache CloudStack Installation
|Documentation 4.6.0 documenta...NFS Our configuration is going to use
|NFS for both primary and secondary storage. We are going to go ahead
|and setup two NFS shares for those purposes. We’llstart out by
|installing nfs-utils.  |
|  |
| View on cloudstack-installation.readthedocs.org | Preview by Yahoo |
|  |
|   |





Find out more about ShapeBlue and our range of CloudStack related services:
IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build//> | CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/> | CloudStack Software Engineering<http://shapeblue.com/cloudstack-software-engineering/>
CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/> | CloudStack Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/>

Re: Unable to add hosts

Posted by sayed jahed hussini <sj...@yahoo.com.INVALID>.
I did update nss package, but that didn't resolve the problem either.


    On Friday, December 11, 2015 2:03 PM, Somesh Naidu <So...@citrix.com> wrote:
 

 See if updating nss package on your management server helps resolve this.

(http://mail-archives.apache.org/mod_mbox/cloudstack-users/201511.mbox/%3C5A4FE8EFA8C8584CBEFEEACD9AA077EE61228582@SINPEX01CL02.citrite.net%3E)

Somesh
CloudPlatform Escalations
Citrix Systems, Inc.

-----Original Message-----
From: sayed jahed hussini [mailto:sjahed_hussini123@yahoo.com.INVALID] 
Sent: Friday, December 11, 2015 11:18 AM
To: users@cloudstack.apache.org
Subject: Unable to add hosts

I installed cloudstack using this guide:
Quick Installation Guide for CentOS 6 — Apache CloudStack Installation Documentation 4.6.0 documentation
Everything went without any errors. But I am unable to add hosts. In /var/log/cloudstack/agent/agent.log I got the following error:
INFO [utils.nio.NioClient] (main:null) Connecting to 10.1.1.2:8250ERROR [utils.nio.NioConnection] (main:null) Unable to initalize the threads.java.io.IOException: Connection closed with -1 on reading size......
Also in /var/log/cloudstack/management/setupManagement.log i got the following errors:
DEBUG:root:execute:iptables-save|grep INPUT| grep -w 8080DEBUG:root:Failed to execute:
DEBUG:root:execute:iptables -I INPUT -p tcp -m tcp --dport 8080 -j ACCEPTDEBUG:root:execute:iptables-save|grep INPUT| grep -w 8250
DEBUG:root:Failed to execute:DEBUG:root:execute:iptables -I INPUT -p tcp -m tcp --dport 8250 -j ACCEPT

best,Jay

|   |
|   |   |   |   |   |
| Quick Installation Guide for CentOS 6 — Apache CloudStack Installation Documentation 4.6.0 documenta...NFS Our configuration is going to use NFS for both primary and secondary storage. We are going to go ahead and setup two NFS shares for those purposes. We’llstart out by installing nfs-utils.  |
|  |
| View on cloudstack-installation.readthedocs.org | Preview by Yahoo |
|  |
|   |




  

RE: Unable to add hosts

Posted by Somesh Naidu <So...@citrix.com>.
See if updating nss package on your management server helps resolve this.

(http://mail-archives.apache.org/mod_mbox/cloudstack-users/201511.mbox/%3C5A4FE8EFA8C8584CBEFEEACD9AA077EE61228582@SINPEX01CL02.citrite.net%3E)

Somesh
CloudPlatform Escalations
Citrix Systems, Inc.

-----Original Message-----
From: sayed jahed hussini [mailto:sjahed_hussini123@yahoo.com.INVALID] 
Sent: Friday, December 11, 2015 11:18 AM
To: users@cloudstack.apache.org
Subject: Unable to add hosts

I installed cloudstack using this guide:
Quick Installation Guide for CentOS 6 — Apache CloudStack Installation Documentation 4.6.0 documentation
Everything went without any errors. But I am unable to add hosts. In /var/log/cloudstack/agent/agent.log I got the following error:
INFO [utils.nio.NioClient] (main:null) Connecting to 10.1.1.2:8250ERROR [utils.nio.NioConnection] (main:null) Unable to initalize the threads.java.io.IOException: Connection closed with -1 on reading size......
Also in /var/log/cloudstack/management/setupManagement.log i got the following errors:
DEBUG:root:execute:iptables-save|grep INPUT| grep -w 8080DEBUG:root:Failed to execute:
DEBUG:root:execute:iptables -I INPUT -p tcp -m tcp --dport 8080 -j ACCEPTDEBUG:root:execute:iptables-save|grep INPUT| grep -w 8250
DEBUG:root:Failed to execute:DEBUG:root:execute:iptables -I INPUT -p tcp -m tcp --dport 8250 -j ACCEPT

best,Jay

|   |
|   |   |   |   |   |
| Quick Installation Guide for CentOS 6 — Apache CloudStack Installation Documentation 4.6.0 documenta...NFS Our configuration is going to use NFS for both primary and secondary storage. We are going to go ahead and setup two NFS shares for those purposes. We’llstart out by installing nfs-utils.  |
|  |
| View on cloudstack-installation.readthedocs.org | Preview by Yahoo |
|  |
|   |