Friday, 2018-11-30

*** gianpietro has joined #cloudkitty02:11
*** gianpietro has quit IRC02:18
*** Spads has quit IRC06:51
*** pgithaiga has joined #cloudkitty08:38
pgithaigaHello, does cloudkitty have multi-domain support? If so, how do you configure the cloudkitty api for to rate projects in multiple domains?08:39
*** Spads has joined #cloudkitty08:57
peschk_lpgithaiga: Depends on your cloudkitty version and what you mean by multi-domain support09:09
pgithaigapeschk_1: Thanks for the response. Currently using the queens release. By multi-domain, I mean to ask if cloudkitty can rate projects in other domains other than the default domain.09:11
pgithaigaI part of public cloud effort where each new user gets their own domain09:11
peschk_lIf you want to rate tenants from distinct domains with a classical OpenStakc setup, no problem. But you't be able to get a per-domain rating, only per-tenant. Getting per-domain rating will be possible through the v2 API09:11
pgithaigaDocumentation is kind of sparse. Is there somewhere I can find all of this? Per-domain rating works for me for now09:12
pgithaigaAnd how do I configure per-domain rating? Should I create cloudkitty user in each domain?09:13
pgithaigaWith rating role?09:13
peschk_lpgithaiga: We know... Documentation is under refactoring. If you need per-domain rating, I'd recomment to use the gnocchi fetcher: https://github.com/openstack/cloudkitty/commit/2b695d8fa5e18f19d67b8fe8cb215c153581b16a09:13
peschk_lThis allows to do scope discovery, and the key is configurable. If you specify 'scope_attribute=domain_id' in the 'fetcher_gnocchi' section of the configuration, you'll be able to do per-domain grouping and rating09:16
pgithaigaYes. I am using gnocchi fetcher but cloudkitty-api keeps failing keystone auth step when it tries to query details of tenant's usage in another domain. Just to confirm, does giving the cloudkitty user admin permissions on the default domain the only requirement for cloudkitty authentication?09:16
pgithaiga'scope_attribute=domain_id'. Didn't know about this! Let me try that out! Thanks so much!09:16
peschk_lpgithaiga: could you please paste your logs somewhere ?09:17
pgithaigapeschk_l: Let me do that09:18
pgithaigaI'll send logs link in a minute09:18
pgithaigahttps://pastebin.com/e9SvM9sH09:21
pgithaigaIt's keystone auth failing for one of the domains I'm trying to rate09:22
pgithaigaMy assumption is that the cloudkitty user is not able to authenticate in the user's domain.09:22
peschk_lprobably. Are you using the keystone fetcher with gnocchi collector ?09:24
peschk_lI must leave shortly, I'll be back in about 10min09:25
pgithaigaYes. Here's my cloudkitty.conf. https://pastebin.com/cjJ6snmH. I understand you have to leave. Will await your response when you get time. Thanks for the help!09:26
pgithaigaActually, I meant doing per-tenant rating in distinct domains is good enough for me09:32
*** pgithaiga has quit IRC09:37
*** pgithaiga has joined #cloudkitty09:45
peschk_lI'm back. OK, so you're using the keystone fetcher. What is basically does is listing all the tenants on which cloudkitty has the rating role. It is weird that you are getting these auth erros on the API side though, they should be raised by the processor09:46
peschk_lwhat roles does the cloudkitty user currently have ?09:47
pgithaigaadmin and rating roles09:48
pgithaigain the default domain09:48
peschk_land what kind of requests are you doing against the API when the 401 occur ?09:52
pgithaigaRequests where being made through horizon e.g. log shows following request "GET /v1/report/total?tenant_id=1f1cfec14b144b63b46d4b426cca7daf HTTP/1.109:56
pgithaigaIt returns a 50309:58
*** pgithaiga has quit IRC10:31
*** pgithaiga has joined #cloudkitty10:31
*** pgithaiga_ has joined #cloudkitty11:10
*** pgithaiga_ has quit IRC11:22
*** pgithaiga_ has joined #cloudkitty11:43
*** pgithaiga_ has quit IRC11:58
pgithaigapeschk_l: Hello, Now I am consistently getting the following:12:04
pgithaiga2018-11-30 11:54:31.629 3403 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}: keystoneauth1.exceptions.http.Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-587750cf-ad27-486b-a114-8b9ed4e083ed) 2018-11-30 11:54:32.114 3403 WARNING keystonemiddleware.auth_to12:04
*** pgithaiga_ has joined #cloudkitty12:05
*** pgithaiga_ has quit IRC12:52
*** pgithaiga_ has joined #cloudkitty13:00
*** pgithaiga_ has quit IRC13:23
*** pgithaiga has quit IRC13:25
*** gianpietro has joined #cloudkitty13:36
*** gianpiet_ has joined #cloudkitty14:52
*** gianpie__ has joined #cloudkitty14:53
*** gianpiet_ has quit IRC14:54
*** gianpietro has quit IRC14:55
*** gianpie__ has quit IRC15:20
*** lemko has joined #cloudkitty16:24
peschk_lhi everybody! Next IRC meeting is supposed to be on the 7/12 at 15h UTC, but I won't be available... Would it be okay for you if we have the meeting a bit sooner ? Like 9h UTC  ont the 7/12?16:34
*** openstackgerrit has quit IRC17:51
*** Spads has quit IRC18:33
*** lemko has quit IRC18:49
Linkidhi21:14
Linkidok for me21:14

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