Wednesday, 2019-04-24

openstackgerritcaoyuan proposed openstack/cloudkitty master: Replace git.openstack.org URLs with opendev.org URLs  https://review.opendev.org/65496206:14
zigopeschk_l: Around?06:52
peschk_lzigo: o/07:27
zigopeschk_l: Hi there!07:38
peschk_lhi!07:38
zigopeschk_l: I saw that cloudkitty in Stein has *removed* the storage_gnocchi backend?07:38
zigoWhy that?!?07:38
peschk_lzigo: yes. As mentionned in the release notes, it was only for testing purposes. It was slow and unsuitable for production07:39
openstackgerritJustin Ferrieu proposed openstack/cloudkitty master: Add Fetcher documentation  https://review.opendev.org/65534507:39
zigoI'm seriously considering to switch to another solution then, as using influxdb which is open-core, and *very* expensive for clustering, is not an option, IMO... :/07:40
peschk_lzigo: another v2 storage backend is planned07:40
peschk_lzigo: btw if you have a proposal concerning what backend we should support, please tell us. What has been retained for now is elasticsearch, since they are supporting metrics/timeseries more and more07:41
*** awestin1 has quit IRC09:54
*** awestin1_ has joined #cloudkitty09:54
zigopeschk_l: IMO, you shouldn't have just replaced gnocchi by influxdb, and should have left gnocchi for at least one more release.10:04
zigoI'm not sure what to suggest as a backend...10:04
zigoGraphite ?10:04
*** Emine has joined #cloudkitty11:44
openstackgerritJustin Ferrieu proposed openstack/cloudkitty master: Add Fetcher documentation  https://review.opendev.org/65534512:34
*** irclogbot_0 has quit IRC12:55
*** irclogbot_0 has joined #cloudkitty12:55
*** altlogbot_3 has quit IRC12:57
*** altlogbot_3 has joined #cloudkitty12:57
zigopeschk_l: If I understand well, I can still use cloudkitty/storage/v1/hybrid/backends/gnocchi.py, right?13:16
zigoHow do I do that? What do I put in the config file?13:17
zigoThe full of the class path ?13:17
peschk_lzigo: I'd rather use te sqlalchemy storage13:17
zigopeschk_l: How?13:17
peschk_lunder [storage], specify version=1 and backend=sqlalchemy13:18
zigoOk, thanks.13:18
* zigo tries13:18
peschk_lyou'll have to run cloudkitty-storage-init and cloudkitty-dbsync upgrade afterwards13:18
zigopeschk_l: Normally, puppet does that for me.13:18
zigo:)13:18
zigoBut I'll try by hand first.13:18
zigopeschk_l: Ok, now what can I do to get the metrics in?13:22
zigoI normally have ceilometer and gnocchi all setup, but probably it's wrong ...13:23
zigoThere was this doc about setting-up rating of resources ...13:27
peschk_lzigo: ponce you rating rules are defined, you just need to start the processor13:35
zigopeschk_l: Normally, "cloudkitty report tenant list" should return a list of tenants, no?13:35
peschk_lzigo: if there is some data in the storage backend, yes13:36
peschk_lthe tenants are retrieved from the already rated data13:36
zigopeschk_l: Where's the doc where it's explained how to setup rules?13:36
zigoI can't find it anymore ... :/13:36
peschk_lzigp: this ? https://docs.openstack.org/cloudkitty/latest/user/rating/index.html13:37
zigoAh thanks ! :)13:38
peschk_lsee "More details" section for hashmap-specific documentation :)13:38
zigopeschk_l: Ok, now I got the hashmap set as per the example for rating a flavor, now how can I check it's working?14:02
zigocloudkitty summary get <--- Always returns zero for the Rate...14:02
peschk_lzigo: enable the module, start the processor, wait a bit, and try to execute "cloudkitty summary get -a -g tenant_id"14:03
zigopeschk_l: The processor has always been started, should I restart it?14:03
zigoIt's started on 3 nodes with zookeeper as backend for coordination...14:04
peschk_lzigo: you can, it may be waiting14:05
peschk_lzigo, other question: what scope fetcher are you using ? The default one ?14:05
zigopeschk_l: I'm not sure, probably yes...14:06
zigoYou mean the keystone fetcher?14:06
zigoYeah ...14:06
peschk_lzigo: okay, if you're using the keystone fetcher, you'll have to grant cloudkitty the "rating" role on tenants you want to rate14:06
zigoOh yeah, forgot about this...14:07
zigopeschk_l: Done ...14:08
peschk_lokay, now you can restart the processors14:08
zigoI did.14:09
zigoI've turned off the other 2 ...14:09
zigoOnly one now.14:09
zigopeschk_l: "cloudkitty summary get -a -g 1528887518294fc58226929d558de662" <--- Still zero Rate ...14:09
zigoI'm not even sure I got the metrics from Ceilometer ...14:10
zigoHow can I check for this?14:10
peschk_lzigo: please check the processor logs14:11
zigopeschk_l: No more than this: http://paste.openstack.org/show/749706/14:12
peschk_lzigo: that's weird, it looks like no tenants have been found by the keystone fetcher. You can try to use the gnocchi fetcher, which does tenant discovery based on what it can find in gnocchi14:14
peschk_lif you want to use it, specify 'backend=gnocchi' in the "[fetcher]" section and "auth_section=YOUR_AUTH_SECTION" under "[fetcher_gnocchi]"14:14
zigoHum...14:19
zigoI'm getting SSL errors ...14:19
zigopeschk_l: What should I expect to see in the processor's log when it succeeds fetching the tenant list ?14:19
peschk_lzigo: "tenants loaded for fetcher gnocchi"14:20
zigopeschk_l: Well, with keystone, it DID show "Tenants loaded for fetcher keystone"14:21
zigoWith gnocchi, I'm getting weirdo SSL verification issues.14:21
zigokeystoneauth1.exceptions.discovery.DiscoveryFailure: Could not find versioned identity endpoints when attempting to authenticate. Please check that your auth_url is correct. SSL exception connecting to https://z-api.infomaniak.ch:443/identity: HTTPSConnectionPool(host='z-api.infomaniak.ch', port=443): Max retries exceeded with url: /identity (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', '14:21
zigocertificate verify failed')])")))14:21
zigoEven though I've set the cafile = ...14:22
peschk_lzigo: argh, that's because of how keystoneauth handles ca certs.  If you use a custom ca, add "cafile = PATH_OF_CA" to the "fetcher_gnocchi" section14:22
peschk_lzigo: cafile from the auth section aren't taken into account by keystoneauth14:22
zigopeschk_l: Looks like it doesn't have it by default ... :/14:22
peschk_lzigo: can I see your cloudkitty.conf file ?14:23
zigoNow I get "Tenants loaded for fetcher gnocchi"14:24
zigo:)14:24
zigoStill nothing in the Rate.14:25
zigopeschk_l: http://paste.openstack.org/show/749707/ <--- That's my cloudkitty.conf14:28
zigoThat's actual real passwords, but I don't really care, that's my PoC, and it's nated multiple times.14:28
zigoI'll destroy it once I get the puppet working as expected for cloudkitty.14:28
peschk_lzigo: ah good! could you have a look at the "rated_data_frames table" in cloudkitty's SQL database ?14:29
zigopeschk_l: It's empty...14:30
zigoAs I wrote, I'm not even sure if Ceilometer is working as expected ...14:30
peschk_lhmm, so no tenats fetched here either. Does gnocchi resource list return something ?14:30
zigopeschk_l: Nop ... :/14:31
zigoEmpty result.14:31
peschk_lokay, so it's a telemetry issue then. Is there anything in the ceilometer logs about being unable to publish data ?14:31
zigoLet me investigate that ...14:32
zigoHum... full of errors...14:32
zigopeschk_l: I guess I'll get back to you when I've fixed all of these ... :P14:33
zigoThanks so much so far ! :)14:33
peschk_lzigo: all right!14:33
zigoHopefully, OCI will get it right ... :)14:33
peschk_lzigo: you're welcome :)14:33
zigopeschk_l: How come I'm getting this on the controller? ceilometer.polling.manager ImportError: python-libvirt module is missing14:33
zigopeschk_l: Does Ceilometer need python3-libvirt on the controller nodes?14:34
peschk_lzigo: I dont belive so, on controllers the polling agent should be ran with --polling-namespace central14:34
peschk_land with --polling-namespace compute on teh compute nodes14:34
peschk_lwhat ceiloemter services are running on your ccontroller nodes ?14:35
*** lemko has joined #cloudkitty15:00
lemkoHey, I'm having problem after installing cloudkitty with this configuration : http://paste.openstack.org/show/749710/15:42
lemkoVersion is queens and I'm getting the following error : "Unauthorized: The request you have made requires authentication." in cloudkitty processor logs15:42
lemkoPackage is from here : http://ppa.launchpad.net/objectif-libre/cloudkitty-queens/ubuntu15:46
*** altlogbot_3 has quit IRC16:09
*** altlogbot_2 has joined #cloudkitty16:11
*** altlogbot_2 has quit IRC16:43
*** altlogbot_2 has joined #cloudkitty16:43
*** altlogbot_2 has quit IRC16:53
*** altlogbot_3 has joined #cloudkitty16:53
*** openstackgerrit has quit IRC18:57
*** lemko has quit IRC20:19

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