Rancher and Ubuntu 16.04 multihost enviroment

Hi, I’m trying to set up a multi host enviroment but I’m having troubles with connection.

I’m setting up Odoo and when I work in one host it is fine, works like a charm, but when I add a second host I have two problems.

First, If I have no database and try to create one, Odoo ask if there is a db host and if it’s listening on port 5432, of course, they are.

Second, If I have a database up and running on a single host enviroment and then add a new host and add a new container (scale=2) a new container is created and is in active state, but when I try to log or do anything on the container the app is not working.

If I reduce the scale to one, the app works again.

It seems to be a connection problem.

If both servers have ufw disabled, there is no success, so, I installed and enabled ufw, changed

DEFAULT_FORWARD_POLICY=“ACCEPT”

No success.

Add some rules:

ufw allow 500
ufw allow 4500

And no success.

On the ufw logs there is a lot of block statements, from a lot of ports:

Jun 26 01:23:46 xxx kernel: [ 2818.774884] [UFW BLOCK] IN=eth0 OUT= MAC=… SRC=… DST=… LEN=74 TOS=0x00 PREC=0x00 TTL=85 ID=15595 PROTO=UDP SPT=2086 DPT=111 LEN=48
Jun 26 01:23:54 xxx kernel: [ 2826.898748] [UFW BLOCK] IN=docker0 OUT= PHYSIN=vetha315991 MAC=… SRC=… DST=… LEN=52 TOS=0x00 PREC=0x00 TTL=64 ID=39280 DF PROTO=TCP SPT=80 DPT=55250 WINDOW=235 RES=0x00 ACK FIN URGP=0
Jun 26 01:24:06 xxx kernel: [ 2838.747982] [UFW BLOCK] IN=eth0 OUT= MAC=… SRC=… DST=… LEN=74 TOS=0x00 PREC=0x00 TTL=85 ID=15640 PROTO=UDP SPT=2086 DPT=111 LEN=48
Jun 26 01:24:14 xxx kernel: [ 2846.899587] [UFW BLOCK] IN=docker0 OUT= PHYSIN=vetha315991 MAC=… SRC=… DST=… LEN=52 TOS=0x00 PREC=0x00 TTL=64 ID=18812 DF PROTO=TCP SPT=80 DPT=55372 WINDOW=235 RES=0x00 ACK FIN URGP=0
Jun 26 01:24:26 xxx kernel: [ 2858.653269] [UFW BLOCK] IN=eth0 OUT= MAC=… SRC=176.9.89.213 DST=… LEN=74 TOS=0x00 PREC=0x00 TTL=85 ID=54948 PROTO=UDP SPT=2086 DPT=111 LEN=48

Could you please put me in the direction to see what’s wrong.

Thanks a lot.