Tuesday, 2019-06-18

*** lemko has quit IRC00:35
openstackgerritpengyuesheng proposed openstack/cloudkitty-dashboard master: Modify the url of upper_constraints_file  https://review.opendev.org/66584302:08
openstackgerritpengyuesheng proposed openstack/python-cloudkittyclient master: Modify the url of upper_constraints_file  https://review.opendev.org/66584902:41
openstackgerritpengyuesheng proposed openstack/cloudkitty master: Modify the url of upper_constraints_file  https://review.opendev.org/66585002:57
*** lemko has joined #cloudkitty06:49
peschk_lcanori01: No, collector mapings aren't needed. Which fetcher are you using ?07:32
peschk_lcanori 01: keystone fetcher + gnocchi collector or  gnocchi fetcher + gnocchi collector ?07:33
openstackgerritLuka Peschke proposed openstack/cloudkitty master: Add Monasca collector auth options to the sample config  https://review.opendev.org/66589907:54
canori01peschk_l: I'm using keystone fetcher + gnocchi collector.  It sees the tenants, but it looks like it's getting a 400 status code from gnocchi when getting the cpu stats...which is odd since the data is there and current when I query gnocchi with the openstackc client11:59
canori01I'm gonna do some packet captures to see that it's querying and the actual response gnocchi is giving11:59
peschk_lcanori01: aaah, you imgt have to upgrade your gnocchi version12:10
peschk_lmight*12:11
peschk_lcnaori01: see https://github.com/gnocchixyz/gnocchi/issues/1013 and  https://github.com/gnocchixyz/gnocchi/issues/102512:11
canori01I'm running 4.3.212:13
canori01I'll check those out12:13
openstackgerritLuka Peschke proposed openstack/cloudkitty master: Add an option for the metric project to the Monasca collector  https://review.opendev.org/66596212:14
canori01peschk_l: What's interesting is that it works for some tenants12:28
canori01The graph is blank for some reason, but I see rating data for the instance service when I do  openstack rating summary get -t project_id -s instance12:28
peschk_lcanori01: I think the gnocchi 400 bug did happen when some resources were missing one specific metric12:31
peschk_lso it might only hapen for some tenants and not on all collection cycles12:31
canori01peschk_l: So I'm looking at a tenant that has the problem and all instances have the cpu metric.  How could I replicate the query that cloudkitty makes to gnocchi?12:50
peschk_lcanori: do you know the period and and metric for which that happened ?12:52
canori01I know the metric, the period I can get from the gnocchi logs12:52
peschk_lif yes, you can try  gnocchi aggregates --resource-type RES_TYPE "(aggregate AGGREGATION_METHOD (metric METRIC_NAME AGGREGATION_METHOD))" "project_id='PROJECT_ID'" --groupby ALL_YOUR_GROUPBY_ATTRIBUTES12:53
peschk_lcanori01: the bug also happens if one resource does not have the attribute you're trying to group on12:53
canori01ah, I see12:53
canori01I'll go ahead and try gnocchi 4.3.312:54
peschk_lokay12:57
peschk_lcanori01: just for the record, what's your deployment method for gnocchi and cloudkitty ?12:57
canori01I used openstack-ansible for gnocchi and cloudkitty was from source12:58
canori01Most of the deployment is openstack-ansible, actually. Projects that weren't include in the stable branch of openstack ansible, I did manually. Namely cloudkitty and manila13:00
openstackgerritMerged openstack/cloudkitty-dashboard master: Modify the url of upper_constraints_file  https://review.opendev.org/66584314:20
canori01peschk_l: I backported the fix to my gnocchi api and the data for those tenants is working now14:32
canori01Thanks!14:32
canori01By the way, if I wanted to reset the billing datam would I just empty the rated_data_frames table?14:34
peschk_lcanori01: ok, glad to hear that!14:34
peschk_lempty rated_data_frames and cloudkitty_storage_states14:35
canori01awesome, thanks14:35
peschk_lcanoti01: I'd recommend to switch to influxdb storage backend when possible though14:35
canori01Thanks, I'll look into it14:36
canori01peschk_l: If I switch to the gnocchi fetcher, I don't have to add cloudkitty to each tenant? I was not aware it was an option until you mentioned it earlier.14:49
peschk_lcanori01: yes exactly14:49
peschk_lit's only available since stein though14:49
canori01Oh, that's in the Stein. That's in Stein. I'm running Rocky14:49
canori01Gotcha. It's a nice feature though14:49
peschk_lwell you can run cloudkitty stein against a rocky deployment as long as gnocchi is >=4.2 :-)14:50
canori01oh, cool14:50
lemkoWhat's the advange of cloudkitty stein over rocky? lpeschke, tenant fetcher, better way to get billing to customer?15:13
openstackgerritMerged openstack/python-cloudkittyclient master: Modify the url of upper_constraints_file  https://review.opendev.org/66584915:16
openstackgerritMerged openstack/cloudkitty master: Modify the url of upper_constraints_file  https://review.opendev.org/66585015:17
*** lemko has quit IRC15:39
*** lemko has joined #cloudkitty15:40
*** altlogbot_3 has quit IRC17:00
*** altlogbot_3 has joined #cloudkitty17:00
*** irclogbot_0 has quit IRC17:02
*** irclogbot_0 has joined #cloudkitty17:02
*** lemko has quit IRC18:18

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