Hello,

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?
Inside the influxdb container, you should use `influxdb -host <IP_ADDRESS>` with the internal IP of the influxdb host.

Also check if the output of `docker logs influxdb` has any logs.

Best wishes,
Pierre Riteau (priteau)

On Tue, 19 Apr 2022 at 01:24, wodel youchi <wodel.youchi@gmail.com> wrote:
Hi,

I am trying to deploy Cloudkitty, but I get this error message :

TASK [cloudkitty : Creating Cloudkitty influxdb database] ******************************************************
task path: /home/deployer/kollavenv/xenavenv/share/kolla-ansible/ansible/roles/cloudkitty/tasks/bootstrap.yml:36

fatal: [192.168.1.5 -> 192.168.1.5]: FAILED! => {
    "action": "influxdb_database",
    "changed": false,
    "invocation": {
        "module_args": {
            "database_name": "cloudkitty",
            "hostname": "dashint.cloud.cerist.dz",
            "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
            "path": "",
            "port": 8086,
            "proxies": {},
            "retries": 3,
            "ssl": false,
            "state": "present",
            "timeout": null,
            "udp_port": 4444,
            "use_udp": false,
            "username": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
            "validate_certs": true
        }
    },
    "msg": "('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))"
}


On  the influxdb container I did this :
[root@controllerb ~]# docker ps | grep inf
68b3ebfefbec   192.168.1.16:4000/openstack.kolla/centos-source-influxdb:xena                  "dumb-init --single-…"   22 minutes ago   Up 22 minutes                        influxdb
[root@controllerb ~]# docker exec -it influxdb /bin/bash
(influxdb)[influxdb@controllerb /]$ influx
Failed to connect to http://localhost:8086: Get http://localhost:8086/ping: dial tcp [::1]:8086: connect: connection refused
Please check your connection settings and ensure 'influxd' is running.
(influxdb)[influxdb@controllerb /]$ ps -ef
UID          PID    PPID  C STIME TTY          TIME CMD
influxdb       1       0  0 Apr18 ?        00:00:00 dumb-init --single-child -- kolla_start
influxdb       7       1  0 Apr18 ?        00:00:01 /usr/bin/influxd -config /etc/influxdb/influxdb.conf
influxdb      45       0  0 00:12 pts/0    00:00:00 /bin/bash
influxdb      78      45  0 00:12 pts/0    00:00:00 ps -ef
(influxdb)[influxdb@controllerb /]$

I have no log file for influxdb, the directory is empty.

Any ideas?

Regards.