Sunday, 2015-03-01

*** ayoung-out has quit IRC00:00
*** dimsum__ has joined #openstack-keystone00:15
*** arunkant has quit IRC00:24
*** samueldmq has joined #openstack-keystone01:15
*** tqtran_afk has joined #openstack-keystone01:40
*** spandhe has joined #openstack-keystone01:51
*** samueldmq has quit IRC01:51
*** nkinder has quit IRC01:52
*** erkules has joined #openstack-keystone02:14
*** erkules_ has quit IRC02:17
*** henrynash has quit IRC02:18
*** henrynash has joined #openstack-keystone02:20
*** ChanServ sets mode: +v henrynash02:20
*** henrynash has quit IRC02:24
*** henrynash has joined #openstack-keystone02:24
*** ChanServ sets mode: +v henrynash02:24
*** panbalag has quit IRC02:58
*** spandhe has quit IRC03:11
*** nkinder has joined #openstack-keystone03:19
*** abhirc has quit IRC03:54
*** dimsum__ has quit IRC04:03
*** tqtran_afk has quit IRC04:26
*** tqtran_afk has joined #openstack-keystone04:30
*** tqtran_afk has quit IRC04:49
*** spandhe has joined #openstack-keystone04:55
*** dimsum__ has joined #openstack-keystone05:04
*** dimsum__ has quit IRC05:09
*** himangi has joined #openstack-keystone05:13
*** davechen has joined #openstack-keystone05:41
*** stevemar has joined #openstack-keystone05:44
*** ChanServ sets mode: +v stevemar05:44
*** haneef_ has quit IRC05:52
*** spandhe has quit IRC05:53
*** davechen has quit IRC06:10
*** richm has quit IRC07:07
*** himangi has quit IRC07:21
*** nkinder has quit IRC07:30
*** stevemar has quit IRC08:38
*** dimsum__ has joined #openstack-keystone08:42
*** dimsum__ has quit IRC08:46
*** himangi has joined #openstack-keystone11:43
*** henrynash has quit IRC11:46
*** henrynash has joined #openstack-keystone11:48
*** ChanServ sets mode: +v henrynash11:48
*** samueldmq has joined #openstack-keystone12:03
*** samueldmq has quit IRC12:09
*** dimsum__ has joined #openstack-keystone12:16
*** dimsum__ has quit IRC12:21
*** henrynash has quit IRC12:36
*** henrynash has joined #openstack-keystone12:36
*** ChanServ sets mode: +v henrynash12:36
*** flaviof has joined #openstack-keystone13:03
*** richm has joined #openstack-keystone13:14
*** jaosorior has joined #openstack-keystone13:22
*** henrynash has quit IRC13:35
*** henrynash has joined #openstack-keystone13:36
*** ChanServ sets mode: +v henrynash13:36
*** henrynash has quit IRC13:46
*** henrynash has joined #openstack-keystone13:47
*** ChanServ sets mode: +v henrynash13:47
*** dimsum__ has joined #openstack-keystone13:51
*** Akshik has joined #openstack-keystone14:54
*** tellesnobrega_ has joined #openstack-keystone15:01
*** lbragstad has quit IRC15:06
*** jacorob has quit IRC15:07
*** lbragstad has joined #openstack-keystone15:12
*** jacorob has joined #openstack-keystone15:13
*** tellesnobrega_ has quit IRC15:14
*** jbonjean has quit IRC15:14
*** Akshik has quit IRC15:15
*** Akshik has joined #openstack-keystone15:19
*** samueldmq has joined #openstack-keystone15:31
*** Akshik has quit IRC15:34
*** jbonjean has joined #openstack-keystone15:57
mordredjamielennox|away: I have responded to your review on that shade patch (thanks for the review, btw!!!) when you get online, I'd love to take a second and figure out the "right" way to get a Client given only a Session15:59
*** Akshik has joined #openstack-keystone16:20
*** nkinder has joined #openstack-keystone16:28
*** Akshik has quit IRC16:29
*** samueldmq has quit IRC16:31
*** samueldmq has joined #openstack-keystone16:34
*** Akshik has joined #openstack-keystone16:36
*** lbragstad has quit IRC16:41
*** jaosorior has quit IRC16:42
*** lbragstad has joined #openstack-keystone16:47
*** nkinder has quit IRC16:50
*** _cjones_ has joined #openstack-keystone17:01
*** _cjones_ has quit IRC17:03
*** _cjones_ has joined #openstack-keystone17:05
*** _cjones_ has quit IRC17:08
*** _cjones_ has joined #openstack-keystone17:08
*** pnavarro_ has joined #openstack-keystone17:23
*** _cjones_ has quit IRC17:29
*** himangi has quit IRC17:29
*** tellesnobrega_ has joined #openstack-keystone17:45
*** Ctina_ has joined #openstack-keystone17:49
*** Ctina_ has quit IRC17:50
*** lbragstad has quit IRC17:55
*** jacorob has quit IRC17:55
*** jacorob has joined #openstack-keystone17:56
*** lbragstad has joined #openstack-keystone17:57
*** samueldmq has quit IRC17:58
*** samueldmq has joined #openstack-keystone18:03
*** jacorob has quit IRC18:16
*** sigmavirus24_awa is now known as sigmavirus2418:17
*** lbragstad has quit IRC18:18
*** jacorob has joined #openstack-keystone18:22
*** lbragstad has joined #openstack-keystone18:27
*** tellesnobrega_ has quit IRC18:30
*** jacorob has quit IRC18:31
*** jacorob has joined #openstack-keystone18:32
*** tellesnobrega_ has joined #openstack-keystone18:34
*** jorge_munoz has joined #openstack-keystone18:35
*** david-lyle has joined #openstack-keystone18:39
*** david-lyle_afk has quit IRC18:39
*** samueldmq has quit IRC18:41
*** david-lyle is now known as david-lyle_afk18:44
*** tellesnobrega_ has quit IRC18:51
*** amerine has quit IRC19:06
*** amerine has joined #openstack-keystone19:06
*** afazekas has joined #openstack-keystone19:14
*** lhcheng has joined #openstack-keystone19:14
*** lhcheng has quit IRC19:16
*** samueldmq has joined #openstack-keystone19:23
*** Akshik has quit IRC19:47
*** amerine has quit IRC19:51
*** afazekas has quit IRC20:00
*** samueldmq has quit IRC20:04
*** jorge_munoz has quit IRC20:04
*** samueldmq has joined #openstack-keystone20:07
*** spandhe has joined #openstack-keystone20:08
*** samueldmq has quit IRC20:16
*** rwsu-afk has quit IRC20:46
*** spandhe has quit IRC21:03
*** sigmavirus24 is now known as sigmavirus24_awa21:04
*** dobson has quit IRC21:08
*** samueldmq has joined #openstack-keystone21:10
*** lnr has joined #openstack-keystone21:19
*** dobson has joined #openstack-keystone21:20
*** Sanky has joined #openstack-keystone21:22
*** lnr has left #openstack-keystone21:24
*** samueldmq has quit IRC21:24
*** jamielennox|away is now known as jamielennox21:48
jamielennoxmordred: i'm here21:49
jamielennox(i have no idea how old that last message is)21:50
*** pnavarro_ has quit IRC21:52
mordredjamielennox: yay!21:57
mordredonly 6 hours :)21:57
mordredjamielennox: so - if I have a Session, what's the right way to get a Client?21:57
jamielennoxIf you have a session with an auth plugin you should just be able to pass it in, Client(session=session)21:57
jamielennoxthat would work for every client i've had anything to do with the conversion21:58
jamielennoxthere are other options there, auth=, service_type= etc - but they should default correctly21:58
mordredjamielennox: I thought I'd tried that - let me try again real quick21:59
mordredjamielennox: DiscoveryFailure: Not enough information to determine URL. Provide either auth_url or endpoint22:00
mordredjamielennox: when I don't pass endpoint to Client22:00
jamielennoxmordred: that's weird22:01
jamielennoxwhat client?22:01
mordredjamielennox: keystoneclient.client.Client22:01
jamielennoxgreat..22:01
mordredjamielennox: getting the identity endpoint from the session is working as a workaround for now22:02
mordredjamielennox: should I put in a note to check back beause the endpoint part shouldn't be needed?22:02
jamielennoxmordred: i don't think endpoint= should even be picked up by the client22:03
jamielennoxmordred: oh - i see.. ergh22:04
jamielennoxit's something happening in the generic client, the discovery one22:04
jamielennoxmordred: so if you use either v2.Client or v3.Client it will work22:05
jamielennoxthat's fairly old code and assumes the old arguments - i should fix that up22:05
jamielennoxi guess the workaround would be22:06
jamielennoxauth_url = session.get_endpoint(interface=auth.AUTH_INTERFACE)22:06
jamielennoxthen pass that22:06
mordredoh - interesting. k - let me try real quick22:07
mordredjamielennox: awesome, that works22:09
mordred                self._keystone_client = keystone_client.Client(22:09
mordred                    session=self.keystone_session,22:09
mordred                    auth_url=self.keystone_session.get_endpoint(22:09
mordred                        interface=ksc_auth.AUTH_INTERFACE))22:09
mordredthat's what I'm doing now22:09
jamielennoxcool22:09
mordredjamielennox: thanks!22:10
jamielennoxit's uglier than it should be, need to mess with that22:10
jamielennoxthe problem with keystone_client.Client is that it might return v2 or v3 and the interfaces are wildly different22:10
mordredoh yeah. of this I'm quite aware :)22:15
jamielennoxif you want a somewhat more obvious way you can do:22:15
jamielennoxsession.get_endpoint(service_type='identity', version=(3, 0), interface='public')22:15
jamielennoxand same for (2,0)22:15
jamielennoxif the answer != None then you can create a client with that version22:16
jamielennoxso when i say 'obvious' way i mean you'll know what you get not that it's more intuitive ...22:16
*** dimsum__ has quit IRC22:22
*** Sanky has quit IRC22:25
openstackgerritayoung proposed openstack/python-keystoneclient: Test updates to prep for unified access info  https://review.openstack.org/16013322:49
*** ayoung has joined #openstack-keystone22:49
*** ChanServ sets mode: +v ayoung22:49
*** spandhe has joined #openstack-keystone22:49
openstackgerritayoung proposed openstack/python-keystoneclient: Use Model for access_info  https://review.openstack.org/16013422:49
ayoung(ノಠ益ಠ)ノ彡┻━┻      Python 34 AttributeError: 'dict' object has no attribute 'iteritems'22:52
*** diegows has joined #openstack-keystone23:18
*** dimsum__ has joined #openstack-keystone23:23
*** henrynash has quit IRC23:26
*** dimsum__ has quit IRC23:28
bretonuse six, Luke23:30
mordredjamielennox: :)23:32
mordredayoung, breton actually, just use iter(foo.items()) - no need for six for that23:33
mordredbut also ignore me23:33
mordredjamielennox: next question - given a session (or a catalog I suppose) what's the "right" way to find out the user_domain and project_domain?23:34
jamielennoxmordred: umm, there's not really one - i  try to hide that23:37
jamielennoxyou can ask for a project_id or a user_id23:37
jamielennoxwhich should give you anything you need - but why would you want user_domain or project_domain of the current auth?23:37
mordredwell, if I search for a project_id by a project_name and I don't have a domain at hand23:38
mordredI'll get projects from domains that are not the one I'm scoped to23:39
*** chlong has joined #openstack-keystone23:39
mordredwhich is, in the case of not having asked the question, probably not what I wanted23:39
mordredso I'd _like_ to default domain_id to the currently scoped domain in the absence of an explicit parameter23:39
mordredbut, becaue of auth plugins, I cannot depend on the user ever having told me the domain23:40
jamielennoxmordred: that would seem to be that you are asking for auth though rather than querying a token you have23:40
mordredit's possible I've asked the wrong question ...23:40
mordredgiven a token, how can I find the user_domain and project_domain that the token is for?23:40
jamielennoxmordred: sure - why do you care? i assume you want to know what other projects you can get access to from this token?23:41
jamielennoxthe answer to that one is GET /auth/projects but i don't know if that's implemented in keystoneclient23:43
jamielennoxor there is a longer URI that does kind of the same thing based on user_id23:43
mordredjamielennox: what I actually want to do is reduce the number of times someone says "give me project foo" and gets back something that wasn't what they were asking for23:44
mordred"what are the projects I can see" isn't a question that's likely to be asked in the thing I'm working on23:45
mordredI mean, I'm largely shooting in the dark anyway since I have no access to any clouds running v323:46
mordredso I'm doing my best to make things that work with both without massive confusion23:46
jamielennoxmordred: i think in v3 really if you ask for project by name you have to give domain_id or _name23:47
jamielennoxso assuming it's a keysotne auth mechanism - which they almost always are23:47
jamielennoxyou can ask for plugin.get_access(session).user_domain_id23:48
jamielennoxbut if you're doing v2 then it'll pretty much always be 'default'23:48
jamielennoxwhich it returns regardless of what the default domain is called on the server23:48
mordredawesome. that's exactly what I'm looking for!23:50
mordredjamielennox: thanks!23:50
mordredjamielennox: (I most of the time probably dont' need this)23:51
jamielennoxmordred: yea - i really don't think you should need that23:51
jamielennoxproject_name and domain should be part of what the user provides as auth23:51
*** henrynash has joined #openstack-keystone23:57
*** ChanServ sets mode: +v henrynash23:57
mordredjamielennox: unless they provide a token23:58
mordredjamielennox: or an x509 cert23:58
mordredjamielennox: or oauth23:58
jamielennoxmordred: x509 and oauth are authN, they'd probably still need to provide a project23:59
mordredjamielennox: but token23:59
mordredthey don't need anything else with a token, yeah?23:59
jamielennoxtoken yes, but it's default validity is 60mins23:59

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