Friday, 2019-03-29

*** openstackgerrit has joined #cloudkitty08:55
openstackgerritLuka Peschke proposed openstack/cloudkitty-specs master: Initializing the Train specs  https://review.openstack.org/64864508:55
openstackgerritLuka Peschke proposed openstack/cloudkitty master: Bootstrap the v2 API  https://review.openstack.org/63718509:01
openstackgerritLuka Peschke proposed openstack/python-cloudkittyclient master: Adding a python3 functional job  https://review.openstack.org/64864709:08
openstackgerritMerged openstack/cloudkitty-specs master: Initializing the Train specs  https://review.openstack.org/64864509:21
openstackgerritLuka Peschke proposed openstack/cloudkitty-specs master: Spec: Making CloudKitty timezone-aware  https://review.openstack.org/64843810:49
*** lemko has joined #cloudkitty10:50
erolgguys, I have a problem with cloudkitty again. I configure instance service with flavor_id field. But rating value always 0 for any instance. this configuration is enough for collect metrics from gnochhi http://paste.openstack.org/show/748589/15:09
erolgI doubt that the problem is about collecting metrics because "rating dataframes get" request returns nothing.15:11
peschk_lerolg: hi! does cloudkitty have the "rating" role on any tenant ?15:14
erolglet me check15:15
erolgpeschk_l, it has only admin role15:18
peschk_lerolg: that's your problem. By default, cloudkitty uses the "keystone" fethcer to retrieve projects to rate. This fetcher returns all tenants on which cloudkitty has the "rating" role. If you want to rate all tenants, you can use the gnocchi fetcher15:19
peschk_lset "[fetcher]backend=gnocchi" in cloudkitty.conf15:19
peschk_land "[fetcher_gnocchi]auth_section = keystone_authtoken"15:20
erolgpeschk_l, ah ok.15:20
erolgpeschk_l, I will try, thanks a lot.15:21
peschk_lerolg: let me know how this goes for you! :)15:22
erolgpeschk_l, I added ranking role to the admin role for admin project. But nothing changes.15:30
peschk_lerolg: ranking or rating ?15:32
erolgpeschk_l, sorry rating :)15:33
peschk_land did you restart the processor afterwards ?15:33
erolgpeschk_l, I am prefer to use keystone_fetcher for now. Nothing change in config. Do i need ?15:35
peschk_lerolg: no changes to config are required. But you need to explicitly grant the "rating" role to the "cloudkitty" user on every tenant you want to rate, and restart the cloudkitty-processor afterwards (or wait an hiour until the tenants are reloaded)15:36
erolgpeschk_l, okay, I already grant rating to cloudkitty for my project and restarted proccessor15:51
erolgpeschk_l, Okay I starting to see related logs about whats going on cloudkkitty "2019-03-29 18:46:16.860 8 WARNING cloudkitty.orchestrator [-] Error while collecting metric volume.size: internalURL endpoint for metric service in RegionOne region not found: EndpointNotFound: internalURL endpoint for metric service in RegionOne region not found"15:52
erolgpeschk_l, I will set region value and check again15:53
peschk_lerolg: okay!16:01
erolgpeschk_l, I added region_name = development under keystone_fetcher section16:19
erolghmm it should be under collector section, okay16:21
peschk_lerolg: the region_name should be in the auth_section16:34
peschk_lfor the gnocchi collector, it should be under [collector_gnocchi]16:35
erolgDone, but seems not working. :(16:46
erolgfile config here: http://paste.openstack.org/show/748599/16:48
peschk_lerolg: could you please paste the logs of the processor somewhere ?16:50
erolgJust this for now:  2019-03-29 19:39:52.546 7 INFO cloudkitty.orchestrator [-] Tenants loaded for fetcher keystone, I understand now, it only run at the top of the hour last run 14:00 UTC16:56
peschk_lerolg: okay, let it run for a while (at least one collect perido) and see if other logs appear17:03
erolgpeschk_l, is there a way to trigger it17:04
peschk_lerolg: also, please check if you have data in gnocchi for the tenants you gave cloudkitty the rating role on17:04
peschk_lerolg: you can restart the processor, However, it will stop 2 hours before the actual time by default. That's done to avoid missing any data17:05
peschk_lerolg: I'm sorry but I have to leave.. please keep me informed about how it goes for you17:06
erolgpeschk_l, thanks a lot :)17:06
*** lemko has quit IRC17:50

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!