Cloudkitty not working in Stein

Bug #1863249 reported by Rodrigo L. L. Jorge on 2020-02-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Undecided
Unassigned

Bug Description

Cloudkitty not working in Stein

Cloudkitty not show any information after deploy.

How to reproduce it (minimal and precise):

After deploy, configure cloudkitty

- openstack rating module enable hashmap
- openstack rating hashmap group create instance_uptime_flavor_id
- openstack rating hashmap service create instance
- openstack rating hashmap field create 330745d2-2c8a-44d1-8e6b-4c328d8d6774 flavor_id
- openstack rating hashmap mapping create 0.01 \
  --field-id 8b2d6e84-01df-41c2-9b6d-e6c023911a65 \
  --value 2 \
  -g 1815e86c-5bea-45e1-86c4-9ea4daded487 \
  -t flat

- Deploy instancia using image-id 2

**Environment**:
CentOS Linux release 7.7.1908 (Core)
3.10.0-1062.9.1.el7.x86_64
Docker version 19.03.5, build 633a0ea
pip versions kolla: 8.0.2 / kolla-ansible: 8.1.0
stable/stein
Docker image Install type: SOURCE
Docker image distribution: DOCKER HUB

(kolla) [root@kolla-deploy kolla]# grep ^[^#] /etc/kolla/globals.yml
---
kolla_install_type: "source"
openstack_release: "stein"
kolla_internal_vip_address: "172.16.120.154"
kolla_external_vip_address: "XXX.XXX.XXX.XXX"
kolla_external_fqdn: "cloud.xxxxx.com.br"
kolla_enable_tls_external: "yes"
kolla_external_fqdn_cert: "{{ node_config }}/certificates/xxxxx.pem"
kolla_external_fqdn_cacert: "{{ node_config }}/certificates/xxxxx-ca.crt"
enable_ceilometer: "yes"
enable_cinder: "yes"
enable_cinder_backup: "yes"
enable_cloudkitty: "yes"
enable_gnocchi: "yes"
enable_mariabackup: "yes"
enable_neutron_vpnaas: "yes"
enable_neutron_fwaas: "yes"
enable_neutron_qos: "yes"
enable_neutron_agent_ha: "yes"
enable_octavia: "no"
enable_redis: "yes"
glance_backend_ceph: "yes"
glance_backend_file: "no"
gnocchi_backend_storage: "ceph"
gnocchi_incoming_storage: ''
cinder_backend_ceph: "yes"
cloudkitty_collector_backend: "gnocchi"
nova_backend_ceph: "yes"
gnocchi_pool_name: "metrics"

# cat /etc/cloudkitty/cloudkitty.conf ( Inside the Docker )
[DEFAULT]
debug = False
log_dir = /var/log/kolla/cloudkitty
transport_url = rabbit://openstack:DfFOkLajFtGttQhyPRG3fM7DORWV6izU9nvHrdvM@172.16.120.133:5672,openstack:DfFOkLajFtGttQhyPRG3fM7DORWV6izU9nvHrdvM@172.16.120.134:5672,openstack:DfFOkLajFtGttQhyPRG3fM7DORWV6izU9nvHrdvM@172.16.120.135:5672//

[database]
connection = mysql+pymysql://cloudkitty:qfKvejaQwi3x9XQj647RwA1tF03RzYPYgGJOik2O@172.16.120.154:3306/cloudkitty
max_retries = -1

[keystone_authtoken]
www_authenticate_uri = http://172.16.120.154:5000
auth_url = http://172.16.120.154:35357
auth_type = password
project_domain_id = default
user_domain_id = default
project_name = service
username = cloudkitty
password = RkfkUJpBOboaRiYfiIUoUIijY1pa7APW4dnxHtG1
region_name = RegionOne
memcache_security_strategy = ENCRYPT
memcache_secret_key = 3TK5w5mutjvHLlDI56rU8K2QmCI2xy2x96RlRk9j
memcached_servers = 172.16.120.133:11211,172.16.120.134:11211,172.16.120.135:11211

[oslo_concurrency]
lock_path = /var/lib/cloudkitty/tmp

[collect]
collector = gnocchi
services = compute,image,volume,network.bw.out,network.bw.in,network.floating

[keystone_fetcher]
keystone_version = 3
auth_section = keystone_authtoken
region_name = RegionOne

[gnocchi_collector]
auth_section = keystone_authtoken
region_name = RegionOne

[api]
host_ip = 172.16.120.133
port = 8889

[orchestrator]
coordination_url = mysql://cloudkitty:qfKvejaQwi3x9XQj647RwA1tF03RzYPYgGJOik2O@172.16.120.154:3306/cloudkitty

[storage]
backend = influxdb
version = 2

[storage_influxdb]
database = cloudkitty
host = 172.16.120.154
port = 8086

(openstack) rating module list
+-----------+---------+----------+
| Module | Enabled | Priority |
+-----------+---------+----------+
| noop | True | 1 |
| hashmap | True | 1 |
| pyscripts | False | 1 |
+-----------+---------+----------+

(openstack) rating hashmap service list
+----------+--------------------------------------+
| Name | Service ID |
+----------+--------------------------------------+
| instance | c043ebc4-d6f4-4cc5-ab77-e3fa34dc9fb3 |
+----------+--------------------------------------+

(openstack) rating summary get

(openstack) rating total get
WARNING: /v1/report/total/ endpoint is deprecated, please use /v1/report/summary instead.
+-------+-------+
| Field | Value |
+-------+-------+
| Total | 0.0 |
+-------+-------+
(openstack)

# cat cloudkitty-processor.log
2020-02-13 19:28:13.615 6 INFO cloudkitty.orchestrator [-] Tenants loaded for fetcher keystone
2020-02-13 20:28:14.055 6 INFO cloudkitty.orchestrator [-] Tenants loaded for fetcher keystone
2020-02-13 21:28:14.526 6 INFO cloudkitty.orchestrator [-] Tenants loaded for fetcher keystone
2020-02-13 22:28:15.072 6 INFO cloudkitty.orchestrator [-] Tenants loaded for fetcher keystone
2020-02-13 23:28:15.572 6 INFO cloudkitty.orchestrator [-] Tenants loaded for fetcher keystone
2020-02-14 00:28:16.041 6 INFO cloudkitty.orchestrator [-] Tenants loaded for fetcher keystone
2020-02-14 01:28:16.654 6 INFO cloudkitty.orchestrator [-] Tenants loaded for fetcher keystone
2020-02-14 02:28:17.130 6 INFO cloudkitty.orchestrator [-] Tenants loaded for fetcher keystone
2020-02-14 03:28:17.629 6 INFO cloudkitty.orchestrator [-] Tenants loaded for fetcher keystone
2020-02-14 04:28:18.208 6 INFO cloudkitty.orchestrator [-] Tenants loaded for fetcher keystone
2020-02-14 05:28:18.753 6 INFO cloudkitty.orchestrator [-] Tenants loaded for fetcher keystone
2020-02-14 06:28:19.333 6 INFO cloudkitty.orchestrator [-] Tenants loaded for fetcher keystone
2020-02-14 07:28:19.799 6 INFO cloudkitty.orchestrator [-] Tenants loaded for fetcher keystone
2020-02-14 08:28:20.380 6 INFO cloudkitty.orchestrator [-] Tenants loaded for fetcher keystone
2020-02-14 08:32:30.044 6 WARNING oslo_config.cfg [-] Deprecated: Option "auth_section" from group "keystone_fetcher" is deprecated. Use option "auth_section" from group "fetcher_keystone".
2020-02-14 08:32:30.123 6 WARNING oslo_config.cfg [-] Deprecated: Option "keystone_version" from group "keystone_fetcher" is deprecated. Use option "keystone_version" from group "fetcher_keystone".
2020-02-14 08:32:30.807 6 WARNING oslo_config.cfg [-] Deprecated: Option "auth_section" from group "gnocchi_collector" is deprecated. Use option "auth_section" from group "collector_gnocchi".
2020-02-14 08:32:30.810 6 WARNING oslo_config.cfg [-] Deprecated: Option "region_name" from group "gnocchi_collector" is deprecated. Use option "region_name" from group "collector_gnocchi".
2020-02-14 08:32:30.817 6 WARNING cloudkitty.storage [-] V2 Storage is in beta. Its API is considered stable but its implementation may still evolve.
2020-02-14 08:32:31.265 6 INFO cloudkitty.orchestrator [-] Tenants loaded for fetcher keystone
2020-02-14 09:32:31.704 6 INFO cloudkitty.orchestrator [-] Tenants loaded for fetcher keystone

# docker logs cloudkitty_processor
+ sudo -E kolla_set_configs
INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json
INFO:__main__:Validating config file
INFO:__main__:Kolla config strategy set to: COPY_ALWAYS
INFO:__main__:Copying service configuration files
INFO:__main__:Copying /var/lib/kolla/config_files/cloudkitty.conf to /etc/cloudkitty/cloudkitty.conf
INFO:__main__:Setting permission for /etc/cloudkitty/cloudkitty.conf
INFO:__main__:Writing out command to execute
INFO:__main__:Setting permission for /var/log/kolla/cloudkitty
INFO:__main__:Setting permission for /var/log/kolla/cloudkitty/cloudkitty-api.log
INFO:__main__:Setting permission for /var/log/kolla/cloudkitty/cloudkitty-api-error.log
INFO:__main__:Setting permission for /var/log/kolla/cloudkitty/cloudkitty-api-access.log
INFO:__main__:Setting permission for /var/log/kolla/cloudkitty/cloudkitty-processor.log
++ cat /run_command
+ CMD='cloudkitty-processor --config-file /etc/cloudkitty/cloudkitty.conf'
+ ARGS=
+ [[ ! -n '' ]]
+ . kolla_extend_start
++ [[ ! -d /var/log/kolla/cloudkitty ]]
+++ stat -c %a /var/log/kolla/cloudkitty
++ [[ 2755 != \7\5\5 ]]
++ chmod 755 /var/log/kolla/cloudkitty
++ . /usr/local/bin/kolla_cloudkitty_extend_start
Running command: 'cloudkitty-processor --config-file /etc/cloudkitty/cloudkitty.conf'
+ echo 'Running command: '\''cloudkitty-processor --config-file /etc/cloudkitty/cloudkitty.conf'\'''
+ exec cloudkitty-processor --config-file /etc/cloudkitty/cloudkitty.conf
/var/lib/kolla/venv/lib/python2.7/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
  """)
+ sudo -E kolla_set_configs
INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json
INFO:__main__:Validating config file
INFO:__main__:Kolla config strategy set to: COPY_ALWAYS
INFO:__main__:Copying service configuration files
INFO:__main__:Deleting /etc/cloudkitty/cloudkitty.conf
INFO:__main__:Copying /var/lib/kolla/config_files/cloudkitty.conf to /etc/cloudkitty/cloudkitty.conf
INFO:__main__:Setting permission for /etc/cloudkitty/cloudkitty.conf
INFO:__main__:Writing out command to execute
INFO:__main__:Setting permission for /var/log/kolla/cloudkitty
INFO:__main__:Setting permission for /var/log/kolla/cloudkitty/cloudkitty-api.log
INFO:__main__:Setting permission for /var/log/kolla/cloudkitty/cloudkitty-api-error.log
INFO:__main__:Setting permission for /var/log/kolla/cloudkitty/cloudkitty-api-access.log
INFO:__main__:Setting permission for /var/log/kolla/cloudkitty/cloudkitty-processor.log
++ cat /run_command
+ CMD='cloudkitty-processor --config-file /etc/cloudkitty/cloudkitty.conf'
+ ARGS=
+ [[ ! -n '' ]]
+ . kolla_extend_start
++ [[ ! -d /var/log/kolla/cloudkitty ]]
+++ stat -c %a /var/log/kolla/cloudkitty
++ [[ 2755 != \7\5\5 ]]
++ chmod 755 /var/log/kolla/cloudkitty
++ . /usr/local/bin/kolla_cloudkitty_extend_start
+ echo 'Running command: '\''cloudkitty-processor --config-file /etc/cloudkitty/cloudkitty.conf'\'''
Running command: 'cloudkitty-processor --config-file /etc/cloudkitty/cloudkitty.conf'
+ exec cloudkitty-processor --config-file /etc/cloudkitty/cloudkitty.conf
/var/lib/kolla/venv/lib/python2.7/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
  """)
+ sudo -E kolla_set_configs
INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json
INFO:__main__:Validating config file
INFO:__main__:Kolla config strategy set to: COPY_ALWAYS
INFO:__main__:Copying service configuration files
INFO:__main__:Deleting /etc/cloudkitty/cloudkitty.conf
INFO:__main__:Copying /var/lib/kolla/config_files/cloudkitty.conf to /etc/cloudkitty/cloudkitty.conf
INFO:__main__:Setting permission for /etc/cloudkitty/cloudkitty.conf
INFO:__main__:Writing out command to execute
INFO:__main__:Setting permission for /var/log/kolla/cloudkitty
INFO:__main__:Setting permission for /var/log/kolla/cloudkitty/cloudkitty-api.log
INFO:__main__:Setting permission for /var/log/kolla/cloudkitty/cloudkitty-api-error.log
INFO:__main__:Setting permission for /var/log/kolla/cloudkitty/cloudkitty-api-access.log
INFO:__main__:Setting permission for /var/log/kolla/cloudkitty/cloudkitty-processor.log
++ cat /run_command
+ CMD='cloudkitty-processor --config-file /etc/cloudkitty/cloudkitty.conf'
+ ARGS=
+ [[ ! -n '' ]]
+ . kolla_extend_start
++ [[ ! -d /var/log/kolla/cloudkitty ]]
+++ stat -c %a /var/log/kolla/cloudkitty
++ [[ 2755 != \7\5\5 ]]
++ chmod 755 /var/log/kolla/cloudkitty
++ . /usr/local/bin/kolla_cloudkitty_extend_start
Running command: 'cloudkitty-processor --config-file /etc/cloudkitty/cloudkitty.conf'
+ echo 'Running command: '\''cloudkitty-processor --config-file /etc/cloudkitty/cloudkitty.conf'\'''
+ exec cloudkitty-processor --config-file /etc/cloudkitty/cloudkitty.conf
/var/lib/kolla/venv/lib/python2.7/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
  """)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers