<div dir="ltr"><div>It seems that it was always assumed to be HTTP and not HTTPs: <a href="https://github.com/openstack/kolla-ansible/blob/a52cf61b2234d2f078dd2893dd37de63e20ea1aa/ansible/roles/cloudkitty/tasks/bootstrap.yml#L36">https://github.com/openstack/kolla-ansible/blob/a52cf61b2234d2f078dd2893dd37de63e20ea1aa/ansible/roles/cloudkitty/tasks/bootstrap.yml#L36</a>.</div><div><br></div><div>Maybe, we will need to change that to use SSL whenever needed.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 19, 2022 at 8:19 AM wodel youchi <<a href="mailto:wodel.youchi@gmail.com">wodel.youchi@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>I tested with
influx -host <IP_ADDRESS></div><div>First I tested with the internal api IP address of the host itself, and it did work :
influx -host 10.10.3.9</div><div>Then I tested with VIP of the internal api, which is held by haproxy :
influx -host 10.10.3.1, it didn't work, looking in the haproxy configuration file of influxdb, I noticed that haproxy uses https in the front end, so I tested with :
influx -ssl -host 10.10.3.1 and it did work.</div><div><br></div><div>And if you see the error message from
TASK [cloudkitty : Creating Cloudkitty influxdb database], ssl is false</div><div><br></div><div>
fatal: [192.168.1.5 -> 192.168.1.5]: FAILED! => {<br> "action": "influxdb_database",<br> "changed": false,<br> "invocation": {<br> "module_args": {<br> "database_name": "cloudkitty",<br> "hostname": "<a href="http://dashint.cloud.cerist.dz" target="_blank">dashint.cloud.cerist.dz</a>",<br> "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",<br> "path": "",<br> "port": 8086,<br> "proxies": {},<br> "retries": 3,<br> <font size="4"><b>"ssl": false,</b></font><br> "state": "present",<br> "timeout": null,<br> "udp_port": 4444,<br> "use_udp": false,<br> "username": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",<br> "validate_certs": true<br> }<br> },<br> "msg": "('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))"<br>}
</div><div><br>
</div><div>Could that be the problem? if yes how to force Cloudkitty to enable ssl?<br></div><div><br></div><div>Regards.<br></div></div><div id="gmail-m_-2160537011768264727DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid rgb(211,212,222)">
<tbody><tr>
<td style="width:55px;padding-top:13px"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" style="width: 46px; height: 29px;" width="46" height="29"></a></td>
<td style="width:470px;padding-top:12px;color:rgb(65,66,78);font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" style="color:rgb(68,83,234)" target="_blank">www.avast.com</a>
</td>
</tr>
</tbody></table><a href="#m_-2160537011768264727_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 19 avr. 2022 à 07:30, Pierre Riteau <<a href="mailto:pierre@stackhpc.com" target="_blank">pierre@stackhpc.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello,</div><div><br></div><div>InfluxDB is configured to only listen on the internal API interface. Can you check the hostname you are using resolves correctly from the cloudkitty host?</div><div>Inside the influxdb container, you should use `influxdb -host <IP_ADDRESS>` with the internal IP of the influxdb host.</div><div><br></div><div>Also check if the output of `docker logs influxdb` has any logs.</div><div><br></div><div>Best wishes,</div><div>Pierre Riteau (priteau)</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 19 Apr 2022 at 01:24, wodel youchi <<a href="mailto:wodel.youchi@gmail.com" target="_blank">wodel.youchi@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<br><div><br></div><div>I am trying to deploy Cloudkitty, but I get this error message :</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">TASK [cloudkitty : Creating Cloudkitty influxdb database] ******************************************************<br>task path: /home/deployer/kollavenv/xenavenv/share/kolla-ansible/ansible/roles/cloudkitty/tasks/bootstrap.yml:36</blockquote><div><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">fatal: [192.168.1.5 -> 192.168.1.5]: FAILED! => {<br> "action": "influxdb_database",<br> "changed": false,<br> "invocation": {<br> "module_args": {<br> "database_name": "cloudkitty",<br> "hostname": "<a href="http://dashint.cloud.cerist.dz" target="_blank">dashint.cloud.cerist.dz</a>",<br> "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",<br> "path": "",<br> "port": 8086,<br> "proxies": {},<br> "retries": 3,<br> "ssl": false,<br> "state": "present",<br> "timeout": null,<br> "udp_port": 4444,<br> "use_udp": false,<br> "username": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",<br> "validate_certs": true<br> }<br> },<br> "msg": "('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))"<br>}</blockquote></div><div><br></div><div><br></div><div>On the influxdb container I did this :</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">[root@controllerb ~]# docker ps | grep inf<br>68b3ebfefbec <a href="http://192.168.1.16:4000/openstack.kolla/centos-source-influxdb:xena" target="_blank">192.168.1.16:4000/openstack.kolla/centos-source-influxdb:xena</a> "dumb-init --single-…" 22 minutes ago Up 22 minutes influxdb<br>[root@controllerb ~]# docker exec -it influxdb /bin/bash<br>(influxdb)[influxdb@controllerb /]$ influx<br>Failed to connect to <a href="http://localhost:8086" target="_blank">http://localhost:8086</a>: Get <a href="http://localhost:8086/ping" target="_blank">http://localhost:8086/ping</a>: dial tcp [::1]:8086: connect: connection refused<br>Please check your connection settings and ensure 'influxd' is running.<br>(influxdb)[influxdb@controllerb /]$ ps -ef<br>UID PID PPID C STIME TTY TIME CMD<br>influxdb 1 0 0 Apr18 ? 00:00:00 dumb-init --single-child -- kolla_start<br>influxdb 7 1 0 Apr18 ? 00:00:01 /usr/bin/influxd -config /etc/influxdb/influxdb.conf<br>influxdb 45 0 0 00:12 pts/0 00:00:00 /bin/bash<br>influxdb 78 45 0 00:12 pts/0 00:00:00 ps -ef<br>(influxdb)[influxdb@controllerb /]$</blockquote><div><br></div><div>I have no log file for influxdb, the directory is empty.</div><div><br></div><div>Any ideas?</div><div><br></div><div>Regards.<br></div></div>
</blockquote></div></div>
</blockquote></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Rafael Weingärtner</div></div>