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 

Unable to add host in CentOS 7.2

2016-12-11 Thread Felipe Arturo Polanco
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 192.168.122.1:530.0.0.0:*
2073/dnsmasq
udp0  0 0.0.0.0:67  0.0.0.0:*
2073/dnsmasq
udp0  0 0.0.0.0:68  0.0.0.0:*
956/dhclient
udp0  0 0.0.0.0:111 0.0.0.0:*
1172/rpcbind
udp0  0 0.0.0.0:44460.0.0.0:*
10316/java
udp0