Friday, 2014-12-19

openstackgerritJamie Lennox proposed openstack/python-keystoneclient: Extract the Loadable interface from a plugin  https://review.openstack.org/13857500:05
openstackgerritJamie Lennox proposed openstack/python-keystoneclient: Make session use the Loadable interface  https://review.openstack.org/13857600:05
*** _cjones_ has quit IRC00:10
*** dims__ has joined #openstack-keystone00:14
*** diegows has joined #openstack-keystone00:17
lhchengmorganfainberg: ping00:19
morganfainberglhcheng: hi00:20
lhchengquestion on: https://bugs.launchpad.net/python-keystoneclient/+bug/139397700:21
uvirtbotLaunchpad bug 1393977 in python-keystoneclient "name should be optional for service-create" [Low,Triaged]00:21
lhchengshould both keystoneclient and openstackclient be updated to make service name optional ?00:21
*** stevemar has joined #openstack-keystone00:22
*** ChanServ sets mode: +v stevemar00:22
morganfainberglhcheng: is openstack client doing the same thing?00:25
lhchengmorganfainberg: yeah, openstack client complains about too few arguments if service name is not provided.00:27
lhchengmorganfainberg: it does make more sense to make the service name required, but it doesn't match the API. Not really sure what the best thing to do.00:28
lhchengmorganfainberg:  I do see some value in making the service_name required.00:28
jamielennoxmorganfainberg: ok - i can do that quickly00:29
jamielennoxoops - up + enter00:29
morganfainbergstevemar: ^^00:42
morganfainbergstevemar: re osc00:42
morganfainberglhcheng: the Python client can be more opinionated than the API. We can't change the API at this point.00:43
lhchengmorganfainberg: I agree, the API should not change. but do we want to update the clients to match the API? (although losing some usablity, but less confusion for users)00:44
*** _cjones_ has joined #openstack-keystone00:45
stevemarlhcheng, open a bug :)00:47
lhchengstevemar: okay, I assume the direction is fix the client to match the API? :)00:48
stevemarlhcheng, yep!00:50
lhchengstevemar: cool, thanks00:50
stevemarlhcheng, specify the args and what you think it ought to be, and if you are using v3/v200:50
lhchengstevemar: alright (thumbsup)00:51
lhchengstevemar: if you get the chance(shameless plug)-  https://review.openstack.org/#/c/135808/00:51
lhchengstevemar: when I search for OSC launchpad, I bumped into this: https://launchpad.net/openstack-ios00:53
*** samueldmq has joined #openstack-keystone00:54
lhchengstevemar: didn't know we have an ios client?00:54
*** dims__ has quit IRC00:55
*** dims__ has joined #openstack-keystone00:55
*** zzzeek has quit IRC00:57
*** dims__ has quit IRC00:59
*** dims__ has joined #openstack-keystone01:00
openstackgerritMerged openstack/keystone: Update federation docs to point to specs.o.org  https://review.openstack.org/13459001:11
*** nellysmitt has joined #openstack-keystone01:11
*** nellysmitt has quit IRC01:16
*** LinstatSDR has joined #openstack-keystone01:16
stevemarlhcheng, https://bugs.launchpad.net/python-openstackclient01:17
stevemari accept shameless plugs01:18
*** _cjones_ has quit IRC01:21
lhchengstevemar: have you heard about: https://launchpad.net/openstack-clients ?01:35
*** samueldmq has quit IRC01:37
*** oomichi has joined #openstack-keystone01:39
*** avozza is now known as zz_avozza01:40
*** zzzeek has joined #openstack-keystone01:44
*** zzzeek has quit IRC01:47
*** wanghong has quit IRC01:48
*** rm_work is now known as rm_work|away01:51
*** samueldmq has joined #openstack-keystone01:53
*** oomichi has quit IRC01:55
openstackgerritDave Chen proposed openstack/keystone: Remove local conf information from paste-ini  https://review.openstack.org/13412401:57
*** chrisshattuck has joined #openstack-keystone01:59
*** gyee has quit IRC02:03
*** wanghong has joined #openstack-keystone02:05
openstackgerritDave Chen proposed openstack/keystone: Refactor the code in SQL backend of assignment  https://review.openstack.org/13313502:06
*** chrisshattuck has quit IRC02:08
*** chrisshattuck has joined #openstack-keystone02:12
*** richm has quit IRC02:14
*** ncoghlan has joined #openstack-keystone02:18
*** wpf has joined #openstack-keystone02:27
*** xxj has joined #openstack-keystone02:27
*** junhongl has joined #openstack-keystone02:28
*** Stone07 has joined #openstack-keystone02:31
*** erkules has joined #openstack-keystone02:45
*** erkules_ has quit IRC02:47
*** erkules has quit IRC02:49
*** rushiagr_away is now known as rushiagr02:49
openstackgerritDave Chen proposed openstack/keystone: Remove local conf information from paste-ini  https://review.openstack.org/13412502:49
*** erkules has joined #openstack-keystone02:50
*** chrisshattuck has quit IRC02:59
*** topol has joined #openstack-keystone03:12
*** ChanServ sets mode: +v topol03:12
*** nellysmitt has joined #openstack-keystone03:12
*** lhcheng has quit IRC03:14
openstackgerritDavid Stanek proposed openstack/keystone: Make the mutable default arg check very strict  https://review.openstack.org/13612603:17
openstackgerritDavid Stanek proposed openstack/keystone: Removes a Py2.6 version of inspect.getcallargs  https://review.openstack.org/13621003:17
openstackgerritDavid Stanek proposed openstack/keystone: Removes a Py2.6 version of assertSetEqual  https://review.openstack.org/13621103:17
openstackgerritDavid Stanek proposed openstack/keystone: Expanded mutable hacking checks  https://review.openstack.org/13620803:17
openstackgerritDavid Stanek proposed openstack/keystone: Removes a bit of WSGI code converts unicode to str  https://review.openstack.org/13620903:17
*** nellysmitt has quit IRC03:17
*** ncoghlan has quit IRC03:40
*** ncoghlan has joined #openstack-keystone03:41
*** diegows has quit IRC03:45
*** harlowja_ is now known as harlowja_away03:51
*** dims__ has quit IRC04:00
*** dims__ has joined #openstack-keystone04:01
*** rushiagr is now known as rushiagr_away04:02
*** dims__ has quit IRC04:05
*** radez is now known as radez_g0n304:17
*** hichtakk has quit IRC04:20
*** hichtakk has joined #openstack-keystone04:20
*** _cjones_ has joined #openstack-keystone04:22
*** stevemar has quit IRC04:25
*** hichtakk has quit IRC04:25
*** _cjones_ has quit IRC04:26
*** rushiagr_away is now known as rushiagr04:32
*** andreaf has quit IRC04:44
*** andreaf has joined #openstack-keystone04:45
*** ajayaa has joined #openstack-keystone05:03
*** hdd has joined #openstack-keystone05:07
*** nellysmitt has joined #openstack-keystone05:13
*** nellysmitt has quit IRC05:18
*** rm_work|away is now known as rm_work05:21
*** lhcheng has joined #openstack-keystone05:28
*** rm_work is now known as rm_work|away05:43
*** hdd has quit IRC06:02
openstackgerritOpenStack Proposal Bot proposed openstack/keystone: Imported Translations from Transifex  https://review.openstack.org/13624306:06
*** dims__ has joined #openstack-keystone06:09
jamielennoxmarekd: are you awake?06:09
*** dims__ has quit IRC06:13
openstackgerritJamie Lennox proposed openstack/python-keystoneclient: Allow v3 plugins to opt out of service catalog  https://review.openstack.org/14299106:15
*** jamielennox is now known as jamielennox|away06:25
*** k4n0 has joined #openstack-keystone06:30
*** topol has quit IRC06:35
openstackgerritwanghong proposed openstack/keystone: fix the wrong update logic of catalog kvs driver  https://review.openstack.org/13018006:40
*** wanghong has quit IRC06:41
openstackgerritwanghong proposed openstack/keystone: add circular check when updating region  https://review.openstack.org/13047406:45
*** ajayaa has quit IRC06:47
*** pcaruana has joined #openstack-keystone06:49
openstackgerritwanghong proposed openstack/keystone: set endpoint enabled default to True if not specified(kvs)  https://review.openstack.org/14231606:54
*** wanghong has joined #openstack-keystone06:54
openstackgerritwanghong proposed openstack/keystone: set endpoint enabled default to True if not specified(kvs)  https://review.openstack.org/14231606:57
*** lhcheng has quit IRC07:01
*** nellysmitt has joined #openstack-keystone07:14
*** nellysmitt has quit IRC07:19
*** hichtakk has joined #openstack-keystone07:30
*** boris-42 has quit IRC07:33
*** zz_avozza is now known as avozza07:35
openstackgerritwanghong proposed openstack/keystone: remove duplicate matching id check when updating user  https://review.openstack.org/13199507:35
openstackgerritwanghong proposed openstack/keystone: remove unnecessary checks in assignment/controllers.py  https://review.openstack.org/13072207:37
openstackgerritwanghong proposed openstack/keystone: remove assignments for foreign actors when deleting domain  https://review.openstack.org/12743307:41
*** avozza is now known as zz_avozza07:44
*** ajayaa has joined #openstack-keystone07:45
*** lhcheng has joined #openstack-keystone07:47
*** zz_avozza is now known as avozza07:58
*** LinstatSDR has quit IRC08:00
*** avozza is now known as zz_avozza08:01
*** lhcheng has quit IRC08:02
*** zz_avozza is now known as avozza08:17
*** avozza is now known as zz_avozza08:36
*** zz_avozza is now known as avozza08:36
*** Shohei has quit IRC08:44
*** Shohei has joined #openstack-keystone08:45
*** Shohei has quit IRC08:45
*** Shohei has joined #openstack-keystone08:46
openstackgerritAndrey Pavlov proposed openstack/keystone: Handle SSL termination proxies for version list  https://review.openstack.org/13223508:48
*** nellysmitt has joined #openstack-keystone08:52
*** ncoghlan has quit IRC09:09
*** nellysmitt has quit IRC09:31
*** david-ly_ has quit IRC09:32
*** hichtakk has quit IRC09:32
*** hichtakk has joined #openstack-keystone09:32
*** aix has joined #openstack-keystone09:33
*** david-lyle has joined #openstack-keystone09:33
*** hichtakk has quit IRC09:37
*** david-lyle has quit IRC09:38
*** nellysmitt has joined #openstack-keystone09:38
*** dims__ has joined #openstack-keystone09:46
*** dims__ has quit IRC09:50
*** Shohei has quit IRC09:55
*** Shohei has joined #openstack-keystone09:56
*** Shohei_ has joined #openstack-keystone09:59
*** Shohei has quit IRC10:00
*** andreaf has quit IRC10:05
*** andreaf has joined #openstack-keystone10:05
*** aix has quit IRC11:00
*** avozza is now known as zz_avozza11:04
*** zz_avozza is now known as avozza11:06
*** nellysmitt has quit IRC11:13
*** aix has joined #openstack-keystone11:21
*** wpf has quit IRC11:26
*** wpf has joined #openstack-keystone11:26
*** wpf has quit IRC11:35
*** dims__ has joined #openstack-keystone11:37
*** nellysmitt has joined #openstack-keystone11:38
*** wpf has joined #openstack-keystone11:38
*** diegows has joined #openstack-keystone11:49
*** samueldmq has quit IRC11:50
*** nellysmitt has quit IRC11:50
*** amakarov_away is now known as amakarov11:57
*** dims__ has quit IRC12:05
*** andreaf has quit IRC12:06
*** andreaf has joined #openstack-keystone12:08
*** dims__ has joined #openstack-keystone12:10
openstackgerritFlavio Percoco proposed openstack/keystonemiddleware: Don't assume everyone uses `CONF`  https://review.openstack.org/14306312:11
*** nellysmitt has joined #openstack-keystone12:13
*** jasondotstar is now known as jasondotstar|afk12:16
*** topol has joined #openstack-keystone12:19
*** ChanServ sets mode: +v topol12:19
*** topol has quit IRC12:20
*** topol has joined #openstack-keystone12:20
*** ChanServ sets mode: +v topol12:20
*** k4n0 has quit IRC12:23
*** Stone07 has quit IRC12:23
*** andreaf has quit IRC12:28
*** nellysmitt has quit IRC12:35
openstackgerritSamuel de Medeiros Queiroz proposed openstack/keystone: Improve List Role Assignment Tests  https://review.openstack.org/13702112:38
*** nellysmitt has joined #openstack-keystone12:40
*** Shohei has joined #openstack-keystone12:44
*** dguerri has quit IRC12:45
*** jdandrea has quit IRC12:45
*** jdandrea has joined #openstack-keystone12:45
*** Shohei_ has quit IRC12:47
*** wpf has quit IRC12:47
*** dguerri has joined #openstack-keystone12:47
*** wpf has joined #openstack-keystone12:48
*** nellysmitt has quit IRC13:02
openstackgerritSamuel de Medeiros Queiroz proposed openstack/keystone: WIP - Improve List Role Assignment Tests  https://review.openstack.org/13702113:03
*** nellysmitt has joined #openstack-keystone13:08
marekdjamielennox|away: i am travelling home today, so not really online. How about you shoot me an e-mail and I will reply whenever i can?13:20
*** lufix has quit IRC13:29
*** topol has quit IRC13:31
openstackgerritAlexander Makarov proposed openstack/keystone: Assignment sql backend create_grant refactoring  https://review.openstack.org/14135213:36
*** lufix has joined #openstack-keystone13:37
*** boris-42 has joined #openstack-keystone13:38
openstackgerritAlexander Makarov proposed openstack/keystone: Assignment sql backend create_grant refactoring  https://review.openstack.org/14135213:44
*** amakarov is now known as amakarov_away13:54
*** r-daneel has joined #openstack-keystone14:08
*** dims__ has quit IRC14:12
*** dims__ has joined #openstack-keystone14:12
*** gordc has joined #openstack-keystone14:12
*** dims__ has quit IRC14:16
*** r-daneel has quit IRC14:23
*** andreaf has joined #openstack-keystone14:25
*** ajayaa has quit IRC14:36
*** jungleboyj has quit IRC14:38
*** rushiagr is now known as rushiagr_away14:38
*** zzzeek has joined #openstack-keystone14:41
*** tellesnobrega_ has joined #openstack-keystone14:49
*** tellesnobrega_ has quit IRC14:51
*** avozza is now known as zz_avozza14:53
*** ajayaa has joined #openstack-keystone14:53
*** radez_g0n3 is now known as radez14:57
*** flaper87 has joined #openstack-keystone15:05
* flaper87 bows and says hi15:05
flaper87question: https://github.com/openstack/keystonemiddleware/blob/master/keystonemiddleware/auth_token.py#L897-L89915:05
flaper87that line there is doing an http call to construct the session: https://github.com/openstack/keystonemiddleware/blob/master/keystonemiddleware/auth_token.py#L1316-L132215:06
flaper87I'm hitting a problem in Zaqar unittests where I'm passing an invalid token and expecting a 40115:06
flaper87however, due to the new need of a running keystone server (to create that session), the unittest is failing15:07
flaper87My question is: Was that made on purpose? or Is it just an unfortunate bug and we can avoid returning that head if it's an invalid token?15:07
flaper87or I'm missing the point and should probably stfu15:07
flaper87:)15:07
flaper87or you're all on vacation and this is just a nice monologue15:08
gabriel-bezerraflaper87: I am not the best person to answer this, but, how do you know whether a token is valid or not without asking the server?15:08
gabriel-bezerrahow do you expect to know..15:09
*** erkules_ has joined #openstack-keystone15:09
gabriel-bezerraI know the format migth be a hint, but Keystone uses many different formats of token15:09
gabriel-bezerrauuid, pki, pkiz15:09
*** tellesnobrega_ has joined #openstack-keystone15:10
flaper87gabriel-bezerra: actually, that's a good point, by looking at the code I'm going through this path: https://github.com/openstack/keystonemiddleware/blob/master/keystonemiddleware/auth_token.py#L881-L88515:11
*** erkules has quit IRC15:11
*** palendae has left #openstack-keystone15:11
*** tellesnobrega_ has quit IRC15:11
flaper87basically, no token is being passed15:11
* flaper87 could've sworn zaqar passed an invalid token15:11
ayoungdolphm, yoy caught me by surprise with your responses to the Security Section of the Specs.    Do you have an example of one that  does meet your approval?15:13
gabriel-bezerraflaper87: so you don't pass a X-Auth-Token header and the middleware still tries to contact the server?15:13
flaper87gabriel-bezerra: yup, sorry for the confusion before15:14
*** tellesnobrega_ has joined #openstack-keystone15:14
gabriel-bezerraayoung: did you work on the middleware implementation? ^15:14
*** esmute has quit IRC15:14
flaper87ayoung: before you answer that, remember I can pay for beers :)15:15
ayounggabriel-bezerra, that is part of jamielennox|away discovery work15:15
ayoungI think that you can work around the discovery process based on the auth URL.15:15
ayoungits trying to determing whether to use V2 or V315:15
bknudsonlooks like keystoneclient release broke everything.15:15
gabriel-bezerraayoung: thanks a lot15:16
*** jasondotstar|afk has quit IRC15:16
ayoungbknudson, that is what we get for calling it 1.0.015:16
*** rushiagr_away is now known as rushiagr15:16
bknudsonbtw, I think I've got a fix for that...15:17
bknudsonhttps://review.openstack.org/#/c/140765/ -- moves the code for doing the server version check15:17
ayoungbknudson, looking15:17
*** esmute has joined #openstack-keystone15:18
*** radez is now known as radez_g0n315:19
ayoungbknudson, I am tempted to ask you to put if True: in place of  if not self._identity_server_obj:  to show what really changes in that review15:19
*** radez_g0n3 is now known as radez15:19
flaper87bknudson: does your patch will require a running keystone to create an instance of it?15:20
flaper87sorry, I don't know the code base :(15:20
ayoungfortunately there is a difference between dark and light green15:20
*** stevemar has joined #openstack-keystone15:20
*** ChanServ sets mode: +v stevemar15:20
bknudsonso flaper87 points to this line: self._identity_server.auth_uri15:20
bknudsonauth_token was changed to create an _IdentityServer obj when self._identity_server is called15:21
bknudsonand creating an _IdentityServer requires knowing the version15:21
bknudsonwith https://review.openstack.org/#/c/140765/ , the _IdentityServer obj doesn't need to know the version until it actually has to talk to keystone.15:21
*** tellesnobrega_ has quit IRC15:22
bknudsonI actually ran into this problem myself since I was refactoring the auth_token middleware and it called self._identity_server in the constructor.15:22
bknudsonI should be able to move https://review.openstack.org/#/c/140765/ before https://review.openstack.org/#/c/122281/ (a review it depends on) since they should be independent.15:24
*** jasondotstar|afk has joined #openstack-keystone15:24
bknudsonwe should have a unit test that shows if no X-Auth-Token is given then no request is made.15:25
ayoungbknudson, so I can see that this is better for testing, and it is also in keeping with the philosophy of "don't require servers to be brought up in a certain order" that I tried to follow on the cert fetching code way back when15:25
ayoungthe downside is that you don't know if something is broken until you attempt a remote call15:25
bknudsonthe reason I made the change didn't actually have anything to do with this issue... I didn't know about it... but this shows that the automagic creation of the IdentityServer obj makes thinking about how it works more difficult.15:27
*** jungleboyj has joined #openstack-keystone15:27
openstackgerritLance Bragstad proposed openstack/keystone: Move test_utils to keystone/tests/unit/  https://review.openstack.org/13398915:28
openstackgerritBrant Knudson proposed openstack/keystone: Remove test PYTHONHASHSEED setting  https://review.openstack.org/13659315:28
openstackgerritBrant Knudson proposed openstack/keystone: Correct version tests for result ordering  https://review.openstack.org/13892315:28
bknudsonflaper87: did you open a bug?15:29
*** timcline has joined #openstack-keystone15:29
flaper87bknudson: nope, I was double checking if that was something you guys had actually planned15:31
bknudsonflaper87: no, it's an unexpected side-effect.15:31
flaper87bknudson: I can open one but I believe you have more details to put there than me15:31
*** jorge_munoz has joined #openstack-keystone15:31
openstackgerritLance Bragstad proposed openstack/keystone: Bump hacking to be at least 0.9.4  https://review.openstack.org/13849715:31
openstackgerritMarco Fargetta proposed openstack/keystone: Multiple IdP authentication URL  https://review.openstack.org/14274315:36
ayoungbknudson, what were you trying to address?15:38
ayoung"preferring composition over inheritance"  music to my eyes!15:39
bknudsonayoung: in https://review.openstack.org/#/c/102403/ , I extracted the revocation list methods in auth_token to their own class, an in order to do that needed to pass self._identity_server... but calling self._identity_server would do version discovery right in the constructor..15:39
bknudsonand we've got tests that verify that there's no requests to keystone on construction15:40
*** timcline has quit IRC15:40
bknudsonso it's a similar issue, any use of self._identity_server now does version discovery.15:40
*** timcline has joined #openstack-keystone15:41
*** jasondotstar|afk has quit IRC15:41
ayoungbknudson, so we can fix the issues people will see by fixing it all in middleware.  Good.15:41
openstackgerritBrant Knudson proposed openstack/keystonemiddleware: Refactor extract class for signing directory  https://review.openstack.org/12228115:42
openstackgerritBrant Knudson proposed openstack/keystonemiddleware: Refactor auth_token revocation list members to new class  https://review.openstack.org/10240315:42
openstackgerritBrant Knudson proposed openstack/keystonemiddleware: Refactor identity version handling to strategy pattern  https://review.openstack.org/14076515:42
ayoungneither the old view nor the new on Gerrit shows me everything I need to know.  THe new view does not make clear the ordering of the patches....15:42
bknudsonthat's just changing the order.15:42
ayoungOK, so first we need the refactoring, 140765?15:43
ayounger...disregard15:43
*** hdd has joined #openstack-keystone15:43
* ayoung switched to old view15:43
lbragstadbknudson: for your comment here: https://review.openstack.org/#/c/130591/6/keystone/tests/test_content_types.py15:45
ayoungbknudson, so "create identity server"  does not trigger the call to identity15:45
lbragstadbknudson: I added another patch that shows the failure: https://review.openstack.org/#/c/142440/15:46
ayounginstead when you do something with the identity server, it calls the keystone server to do lookup?  What was triggereing it in the old code path?15:46
bknudsonlbragstad: ok, I was just wondering why it was a 200 and not a 201.15:46
lbragstadbknudson: me too15:47
lbragstadbknudson: kinda strange isn't not 20115:47
bknudsonayoung: are you wondering what's triggering discovery in the current auth_token?15:47
ayoungbknudson, yes, please15:47
bknudsonwhen you do self._identity_server15:47
bknudsonit constructs an _IdentityServer, either _IdentityServerV2 or V315:48
bknudsonso it talks to the identity server to figure out the class it needs to create.15:48
bknudsonso when a request with no token comes in, and auth_token calls _reject_auth_headers(), which does: header_val = 'Keystone uri=\'%s\'' % self._identity_server.auth_uri15:49
bknudsonit does discovery because of the call to self._identity_server15:49
bknudsonayoung: does that explain it?15:50
ayoungso with your change we would postpone it until a call required token validation15:51
ayoungflaper87, but you were handing in an invalid token?15:52
flaper87ayoung: no, sorry about the confusion there. I was calling it w/o token15:53
ayoungso this will suit your needs15:53
flaper87w0000t15:53
flaper87:D15:53
ayoungbknudson, the code looks good.  I'd like to have flaper87 test out the changes and give a thumbs up before I +215:53
ayoungbknudson, does he need all three patches, or just the first one in the series15:54
bknudsonayoung: no, just the first one.15:54
ayoungjust the first, I hope, or I don't understand the code as well as I thought15:54
ayounggood15:54
ayoungflaper87, deal?15:54
flaper87ayoung: deal, I can do that right away15:55
bknudsonthanks!15:55
*** chrisshattuck has joined #openstack-keystone15:56
ayoungbknudson, I have a JSON-HOME issue.  When I split the auth router out of the huge service object, I have no way of composing JSON home anymore15:56
ayoungI had commented out the test in my WIP, but I think I need to address that soonest15:56
ayounghttps://review.openstack.org/#/c/138452/15:56
* flaper87 is confused, what's the review again?15:57
flaper87:D15:57
bknudsonflaper87: https://review.openstack.org/#/c/140765/15:57
ayoungflaper87, added you as a reviewer, so its on your list15:58
*** pcaruana has quit IRC15:59
openstackgerritBrant Knudson proposed openstack/keystonemiddleware: Refactor identity version handling to strategy pattern  https://review.openstack.org/14076516:00
flaper87bknudson: ayoung it works http://paste.openstack.org/show/153199/16:00
*** jasondotstar has joined #openstack-keystone16:00
bknudsonflaper87: what was it doing before?16:00
*** atiwari has joined #openstack-keystone16:01
flaper87bknudson: http://paste.openstack.org/show/153200/16:01
flaper87it was trying to connect16:01
openstackgerritDolph Mathews proposed openstack/keystone: refactor: use _get_project_endpoint_group_url() where applicable  https://review.openstack.org/13908016:02
bknudsonflaper87: I opened a bug https://bugs.launchpad.net/keystonemiddleware/+bug/140429416:03
uvirtbotLaunchpad bug 1404294 in keystonemiddleware "auth_token contacts keystone when no token" [Undecided,In progress]16:03
openstackgerritDolph Mathews proposed openstack/keystone: improve error message when tenant ID does not exist  https://review.openstack.org/13125516:03
stevemardolphm, ping16:05
ayoungbknudson, so...if auth is in its own pipeline, then this code misses them https://github.com/openstack/keystone/blob/master/keystone/controllers.py#L19316:05
stevemardolphm, can you click the rebase button on https://review.openstack.org/#/c/113905/16:05
ayoungbknudson, and it seems to me that we could somehow work with paste to get the set of routers16:06
bknudsonayoung: all the V3 extensions are in their own pipeline, too.16:06
ayoungbknudson, right, but we don't return them in the V3  JSON Home document,16:06
bknudsonayoung: yes, the extensions are included in the V3 JSON Home document.16:06
ayoungis that intentional?16:06
ayoungHow?16:07
*** topol has joined #openstack-keystone16:07
*** ChanServ sets mode: +v topol16:07
bknudsonayoung: I'm looking for the code... it's in ExtensionV3 or something.16:07
ayoungbknudson, is that in a submitted change?  Cuz paste upstream is in the main pipeline16:07
ayounghttps://github.com/openstack/keystone/blob/master/etc/keystone-paste.ini#L7916:08
bknudsonayoung: here it is: http://git.openstack.org/cgit/openstack/keystone/tree/keystone/common/wsgi.py#n71416:12
bknudsonthe extension intercepts the JSON Home response and adds its own resources16:12
*** ajayaa has quit IRC16:14
ayoungbknudson, ok, so if I split the auth routes into their own pipeline, how would I trigger code like this to happen?16:15
*** ajayaa has joined #openstack-keystone16:15
ayoungIts seems like something that should be higher up in the hierarchy than the service controller16:15
bknudsonayoung: does it have a router?16:15
ayoungbknudson, its using the composing router16:15
*** chrisshattuck has quit IRC16:15
bknudsonit's only extensions that needed it before.16:15
ayounghttps://review.openstack.org/#/c/138452/2/keystone/auth/routers.py16:16
bknudsonmoving it up the hierarchy makes sense.16:16
bknudsonayoung: that's using RoutersBase and V3ExtensionRouter already depends on RoutersBase, so should be easy to move it up.16:17
morganfainbergmorning16:20
openstackgerritSteve Martinelli proposed openstack/keystone: Provide additional detail if OAuth headers are missing  https://review.openstack.org/14219116:20
openstackgerritSteve Martinelli proposed openstack/keystone: switch from sample_config.sh to oslo-config-generator  https://review.openstack.org/11390516:21
*** ajayaa has quit IRC16:21
openstackgerritSteve Martinelli proposed openstack/keystone: update sample conf using oslo-config-generator  https://review.openstack.org/13850816:22
openstackgerritSteve Martinelli proposed openstack/keystone: Remove oslo incubator's config generator  https://review.openstack.org/14265216:23
stevemardolphm, you took too long16:23
*** dims__ has joined #openstack-keystone16:24
*** dims__ has quit IRC16:24
*** dims__ has joined #openstack-keystone16:24
*** chrisshattuck has joined #openstack-keystone16:28
*** chrisshattuck has quit IRC16:29
openstackgerritMarco Fargetta proposed openstack/keystone: Multiple IdP authentication URL  https://review.openstack.org/14274316:30
*** boris-42 has quit IRC16:33
ayoungbknudson, I'm still trying to figure out how that gets triggered.  Is it via the Pipeline processing?16:35
ayoungI think it is, in which case it does me no good. I want auth in its own paste pipeline.16:35
bknudsonayoung: right, all requests do __call__16:35
*** thiagop has quit IRC16:35
bknudsonayoung: yes, if it's outside the normal pipeline then it won't do you any good.16:35
bknudsonsomehow the one pipeline needs to talk to the other pipeline16:36
bknudsonI don't know how you do that other than through global variables?16:36
bknudsonthis is why paste is so crappy16:36
bknudsonwe essentially have the same problem due to the separate pipeline for public_version_api16:37
bknudsonI believe I changed that so that it calls the other pipeline... let me see where that is.16:37
openstackgerritBrant Knudson proposed openstack/keystonemiddleware: Refactor extract class for signing directory  https://review.openstack.org/12228116:39
openstackgerritBrant Knudson proposed openstack/keystonemiddleware: Refactor auth_token revocation list members to new class  https://review.openstack.org/10240316:39
openstackgerritBrant Knudson proposed openstack/keystonemiddleware: Refactor identity version handling to strategy pattern  https://review.openstack.org/14076516:39
openstackgerritBrant Knudson proposed openstack/keystonemiddleware: Add a test to ensure no HTTP call for no token  https://review.openstack.org/14313416:39
*** _cjones_ has joined #openstack-keystone16:39
bknudsonayoung: it's here in get_versions -- http://git.openstack.org/cgit/openstack/keystone/tree/keystone/controllers.py#n16816:41
bknudsonayoung: see it does a request of /v3: http://git.openstack.org/cgit/openstack/keystone/tree/keystone/controllers.py#n4816:41
bknudsonso if the auth pipeline supported a GET / request that returned JSON Home then it could be called by the version router16:42
*** thedodd has joined #openstack-keystone16:43
*** nellysmitt has quit IRC16:45
openstackgerritBrant Knudson proposed openstack/keystonemiddleware: Refactor extract class for signing directory  https://review.openstack.org/12228116:53
openstackgerritBrant Knudson proposed openstack/keystonemiddleware: Refactor auth_token revocation list members to new class  https://review.openstack.org/10240316:53
openstackgerritBrant Knudson proposed openstack/keystonemiddleware: Fix auth_token does version request for no token  https://review.openstack.org/14076516:53
*** dims__ is now known as dimsum__16:56
*** gyee has joined #openstack-keystone16:58
*** ChanServ sets mode: +v gyee16:58
flaper87morganfainberg: bknudson ayoung are you guys going to release a minor with the fix ?17:01
*** rm_work|away is now known as rm_work17:03
bknudsonflaper87: good question ... needs to merge first, and then I guess morganfainberg does the release17:03
flaper87awesome, as long as there will be a release, I'm happy :D17:04
*** nellysmitt has joined #openstack-keystone17:05
*** nellysmitt has quit IRC17:08
*** LinstatSDR has joined #openstack-keystone17:26
*** _cjones_ has quit IRC17:27
*** aix has quit IRC17:30
morganfainbergbknudson, yeah that is exactly how it works17:33
*** hichtakk has joined #openstack-keystone17:34
*** f13o has quit IRC17:36
*** atiwari has quit IRC17:37
morganfainbergbknudson, people are still doing magic replacement of middleware?17:38
morganfainbergfor unit tests that is17:39
*** _cjones_ has joined #openstack-keystone17:40
morganfainbergbknudson, is that really a 1.0.0 release issue vs 1.3.0?17:42
*** _cjones_ has quit IRC17:49
*** _cjones_ has joined #openstack-keystone17:49
*** raildo_away has quit IRC17:54
*** lhcheng has joined #openstack-keystone17:56
openstackgerritDavid Stanek proposed openstack/keystone: Support for running functional federation tests  https://review.openstack.org/13913718:01
openstackgerritDavid Stanek proposed openstack/keystone: Use bashate to run_tests.sh  https://review.openstack.org/14314818:01
openstackgerritDavid Stanek proposed openstack/keystone: Be more precise with flake8 filename matches  https://review.openstack.org/14314918:01
openstackgerritDavid Stanek proposed openstack/keystone: Adds a wip decorator for tests  https://review.openstack.org/13151618:03
*** harlowja_away is now known as harlowja_18:05
ayoungbknudson, I'm almost thinking that the right solution is to split identity, assignment, etc into separate pipelines as well18:06
ayoungat least at the V3 level18:06
ayoungand then instead of18:06
ayoungv3_json_home = request_v3_json_home('/v3')18:07
gabriel-bezerradstanek: have you got the attributes to be passed in the assertion? I'm investigating pysaml2 source code since wednesday looking for that.18:07
ayoungit would be the union of18:07
ayoungfor s in 'identity' ....  v3_json_home += request_v3_json_home('/v3/%s' % s)18:07
ayoungI recall trying that once, and getting tripped up by something...I think the fact that the extensions hack on additional routes to identity, but I bet I can work around that18:08
gabriel-bezerradstanek: how did you discover about the sign_response and sign_assertion configuration parameters?18:12
*** timcline has quit IRC18:16
*** _cjones_ has quit IRC18:16
openstackgerritDavid Stanek proposed openstack/keystone: Fixes a type check to make it work in Python 3  https://review.openstack.org/12541018:17
openstackgerritDavid Stanek proposed openstack/keystone: Updates Python3 requirements  https://review.openstack.org/13057918:17
openstackgerritDavid Stanek proposed openstack/keystone: Mocks out the memcache library for tests  https://review.openstack.org/12540918:17
openstackgerritDavid Stanek proposed openstack/keystone: Adds a fork of python-ldap for Py3 testing  https://review.openstack.org/9582718:17
*** hdd has quit IRC18:18
dstanekgabriel-bezerra: i rigged it to be working, but i'll have it figured out soon18:22
dstanekgabriel-bezerra: i read through the code to find those18:22
*** hichtakk has quit IRC18:38
*** hichtakk has joined #openstack-keystone18:39
*** hdd has joined #openstack-keystone18:39
*** erkules has joined #openstack-keystone18:42
*** erkules_ has quit IRC18:43
openstackgerritDavid Stanek proposed openstack/keystone: region.description is optional and can be null  https://review.openstack.org/11761118:45
*** htruta has quit IRC18:47
*** thedodd has quit IRC18:49
*** r-daneel has joined #openstack-keystone18:52
*** _cjones_ has joined #openstack-keystone18:53
*** timcline_ has joined #openstack-keystone18:55
*** r-daneel has quit IRC18:57
*** _cjones_ has quit IRC18:58
*** lhcheng has quit IRC19:00
*** lhcheng has joined #openstack-keystone19:00
*** lhcheng has quit IRC19:00
*** lhcheng has joined #openstack-keystone19:01
*** openstack has joined #openstack-keystone19:08
*** hichtakk has quit IRC19:08
*** hichtakk has joined #openstack-keystone19:08
*** stevemar2 has joined #openstack-keystone19:08
*** ChanServ sets mode: +v stevemar219:08
*** zz_avozza is now known as avozza19:08
*** hichtakk has quit IRC19:08
*** hichtakk has joined #openstack-keystone19:08
*** harlowja_ is now known as harlowja_away19:08
*** harlowja_away is now known as harlowja_19:08
*** erkules_ has joined #openstack-keystone19:08
*** mancdaz_ has joined #openstack-keystone19:08
*** erkules has quit IRC19:08
*** nellysmitt has joined #openstack-keystone19:08
*** mancdaz_ is now known as mancdaz19:08
*** thedodd has joined #openstack-keystone19:08
*** jimbaker has joined #openstack-keystone19:09
*** Ephur has joined #openstack-keystone19:09
*** jimbaker has quit IRC19:09
*** jimbaker has joined #openstack-keystone19:09
*** openstackstatus has joined #openstack-keystone19:09
*** ChanServ sets mode: +v openstackstatus19:09
*** dougwig has joined #openstack-keystone19:09
*** erkules has joined #openstack-keystone19:12
*** stevemar2 is now known as stevemar19:13
stevemardolphm, maybe you know... for v2 service create, which args are required vs optional http://developer.openstack.org/api-ref-identity-v2.html19:13
dolphmstevemar: eek, type is definitely required19:13
stevemarah19:13
dolphmstevemar: i've always thought of name as required, but apparently it's not, according to the implementation?19:13
*** erkules_ has quit IRC19:14
dolphmstevemar: or maybe name is required, but not unique?19:14
stevemardolphm, not sure about the impl, lemme look19:14
dolphmthere was a bug on name over the summer19:14
stevemarservice and endpoint is so scrambled19:14
dolphmstevemar: yeah, i really wanted to see it flattened for v3, but someone made a pretty strong argument that it was more difficult to manage if you flattened them. *shrug*19:15
stevemarapparently nothing is required19:15
stevemaroh wait, theres a schema, maybe only for v3..19:16
stevemardolphm, yeah, pretty sure nothing is required https://github.com/openstack/keystone/blob/master/keystone/catalog/controllers.py#L53-L6019:17
*** erkules has quit IRC19:17
dolphmstevemar: maybe something in the sql schema will balk?19:17
dolphmstevemar: nonnull type maybe?19:17
stevemardolphm, yeah, validation goes down to the SQL column types19:18
stevemarhttps://github.com/openstack/keystone/blob/master/keystone/catalog/backends/sql.py#L57-L6519:18
stevemarname isn't even an arg for starters19:18
dolphmstevemar: but even type isn't nullable=False19:18
stevemarmight default to that19:18
dolphmstevemar: only because there was no reason to index on name, i suppose? other than it should arguably be unique19:19
dolphmstevemar: i think nullable=True is the default19:19
dolphmhence the explicit nullable=False's19:19
*** erkules has joined #openstack-keystone19:19
*** hichtakk has quit IRC19:19
*** hichtakk has joined #openstack-keystone19:19
dolphmstevemar: "nullable – If set to the default of True, indicates the column will be rendered as allowing NULL, else it’s rendered as NOT NULL. This parameter is only used when issuing CREATE TABLE statements."19:19
stevemarso it can be null, so we can create a service in v2 with just {'service':{}}19:20
dolphmstevemar: fun!19:20
stevemarid is assigned, and enabled is defaulted to true19:20
dolphmstevemar: try it lol19:20
stevemartrying now19:20
dolphmstevemar: http://pasteraw.com/dz5r155lce7d6ncm0unvgatgo0gzw9719:22
stevemardolphm, yep!19:23
stevemarhttp://paste.openstack.org/show/153253/19:23
stevemarwelp!19:25
*** lhcheng has quit IRC19:25
stevemarlhcheng, ^^19:25
*** jorge_munoz has quit IRC19:25
stevemarsee what you've gone and done now lhcheng19:25
*** jorge_munoz has joined #openstack-keystone19:25
*** lhcheng has joined #openstack-keystone19:25
*** shakamunyi has joined #openstack-keystone19:25
stevemardolphm, so type can't/shouldn't be nullable19:25
*** lhcheng_ has joined #openstack-keystone19:27
dolphmstevemar: a null service type makes zero sense to me19:28
stevemardolphm, right, so seems like a bug in v2.019:29
stevemarlemme see what the heck we're doing for OSC19:29
stevemarapparently we take a name arg19:29
*** lhcheng has quit IRC19:30
stevemarand no enabled param19:30
stevemartype, is optional19:30
stevemarcause well, nullable19:30
stevemarugh, KSC isn't much better https://github.com/openstack/python-keystoneclient/blob/master/keystoneclient/v2_0/services.py#L38-L4319:31
stevemarapparently all 3 are required19:31
*** hichtakk has quit IRC19:32
*** lhcheng_ has quit IRC19:32
*** lhcheng has joined #openstack-keystone19:33
stevemari think 'name' is probably stored in the 'extra' args sql column19:35
stevemarwhich is wonky as heck19:35
*** packet has joined #openstack-keystone19:35
stevemarcause the service catalog always gives a name19:35
stevemarughhhh19:35
morganfainbergso, which way do we resolve this?19:38
*** packet has quit IRC19:38
morganfainbergthe catalog backend is... weird19:38
morganfainbergalso templeated ugh19:38
*** _cjones_ has joined #openstack-keystone19:40
*** avozza is now known as zz_avozza19:42
stevemardolphm, https://bugs.launchpad.net/keystone/+bug/140407319:51
uvirtbotLaunchpad bug 1404073 in python-openstackclient "type should be required for v2.0 service create" [Undecided,New]19:51
stevemarmorganfainberg, ^19:51
stevemarya welcome!19:51
morganfainberghehe19:51
stevemarmorganfainberg, easy fix, deprecate v219:51
stevemarmorganfainberg, you're still on a plane!?19:52
*** timcline_ has quit IRC19:55
*** timcline has joined #openstack-keystone19:55
*** rushiagr is now known as rushiagr_away19:55
morganfainberghah19:56
morganfainbergno, i'm home. but jetlagged19:56
*** _cjones_ has quit IRC19:59
*** timcline_ has joined #openstack-keystone20:00
*** stevemar has quit IRC20:03
*** stevemar has joined #openstack-keystone20:03
*** ChanServ sets mode: +v stevemar20:03
*** timcline has quit IRC20:04
*** zz_avozza is now known as avozza20:05
openstackgerrithenry-nash proposed openstack/keystone: Split the assignments manager/driver.  https://review.openstack.org/13095420:07
gabriel-bezerradstanek: this file seems to be promising about the attributes: https://github.com/rohe/pysaml2/blob/25704a9faeaaa22f88bd2126b3152274702446c7/tests/test_37_entity_categories.py20:08
openstackgerritBrant Knudson proposed openstack/keystone: Fix to not use empty IN clause  https://review.openstack.org/14317520:13
morganfainbergstevemar, i'm going to address bknudson's comments in the no-more-extensions spec. can i get you to review it once i've done that?20:13
*** henrynash has joined #openstack-keystone20:13
*** ChanServ sets mode: +v henrynash20:13
henrynashstevemar: ping20:14
stevemarhenrynash, ahoy20:14
morganfainberghenrynash, hey, i'll respin the extensions-no-more spec to address the outstanding comments later today20:14
stevemarmorganfainberg, shore20:14
henrynashsteevmar: so on the oslo.conf thing…what I meant was that if someone tries update the the config file once that patch goes in, but before the other one…then it will look totally different…and it will be odd doing a commit with that changes conf file in there20:15
henrynashmorganfainberg: soudns great20:15
henrynashstevemar: I’d have just thought we would want to keep the change ‘atomic'20:16
stevemarhenrynash, ah i see what you mean...20:18
stevemardo you want me to merge the two patches?20:18
henrynashstevemar: I;d have thought that would be the simplest thing20:18
stevemaralrighty, dolphm heads up, i'm merging your two oslo.config patches20:19
*** avozza is now known as zz_avozza20:21
openstackgerritBrant Knudson proposed openstack/keystone: Fix to not use empty IN clause  https://review.openstack.org/14317520:22
ayoungbknudson, I think I am going to bail on splitting out /auth  ...what do you think of getting  rid of Paste instead?  Is there any good argument for keeping it around?20:22
dstanekgabriel-bezerra: i just removed some of my hacks and i am getting this in my assertion - http://paste.openstack.org/show/153258/20:23
bknudsonayoung: what's the alternative to no paste?20:23
dstanekgabriel-bezerra: i'm not sure what i should be gettig20:23
openstackgerritBrant Knudson proposed openstack/keystone: Fix to not use empty IN clause  https://review.openstack.org/14317520:24
dstanekwhat's with this neutron bug? driving me crazy20:26
stevemardstanek, that's funny stuff in an assertion20:31
dstanekstevemar: what should be there?20:32
stevemardstanek, well ideally edupersontargetedid should be openstack_user or something20:32
stevemarand one!for!all should be the user's name20:32
stevemarthe rest looks OK thought20:33
stevemarthough*20:33
openstackgerritSteve Martinelli proposed openstack/keystone: switch from sample_config.sh to oslo-config-generator  https://review.openstack.org/11390520:35
openstackgerritSteve Martinelli proposed openstack/keystone: Remove oslo incubator's config generator  https://review.openstack.org/14265220:36
dstanekstevemar: i can fix the user data to have openstack_user - this is the default idp user data https://github.com/rohe/pysaml2/blob/master/example/idp2/idp_user.py20:36
openstackgerritBrant Knudson proposed openstack/keystone: Don't allow deprecations during testing  https://review.openstack.org/14318320:37
stevemarhenrynash, should be to your liking now sir20:37
*** erkules_ has joined #openstack-keystone20:38
stevemardstanek, were you using that as your input? cause then it seems fine20:38
*** erkules has quit IRC20:39
*** gyee has quit IRC20:39
*** _cjones_ has joined #openstack-keystone20:41
*** _cjones_ has quit IRC20:42
*** _cjones_ has joined #openstack-keystone20:42
dstanekstevemar: yes, that's the default20:42
gabriel-bezerradstanek: that's exactly what I'm getting, but the problem is that haho0032 (the user you are using, right?) has much more data in the idp_user.py's dictionary20:48
gabriel-bezerradstanek: and those attributes are not comming in the assertion20:48
gabriel-bezerras/comming/coming/20:49
*** _cjones_ has quit IRC20:50
*** zz_avozza is now known as avozza20:54
*** gyee has joined #openstack-keystone20:55
*** ChanServ sets mode: +v gyee20:55
*** nellysmitt has quit IRC20:58
*** hdd has quit IRC20:59
openstackgerritBrant Knudson proposed openstack/keystone: Integrate logging with the warnings module  https://review.openstack.org/14318820:59
ayoungbknudson, we can do all of the stuff paste does in Python.20:59
*** raildo has joined #openstack-keystone20:59
ayoungThe only thing I see us telling end users to do is remove the admin token filter once the thing is set up21:00
ayoungit is a config file that we don't really need21:00
ayoungI'll do some research, but I'm sure there is a better way21:00
*** nellysmitt has joined #openstack-keystone21:00
*** stevemar has quit IRC21:01
ayoungwe might be able to do the paste config in python code as a first step21:01
ayoungreally just removing the Paste Deploy part.21:01
dstanekgabriel-bezerra: yeah :-( let's see why21:02
*** _cjones_ has joined #openstack-keystone21:02
ayoungdstanek, is there a competing project to paste.deploy we should consider?21:04
dstanekayoung: for building the pipeline?21:04
ayoungdstanek, yes.  I'd like to build it in Python, not a config file21:04
ayoungdstanek, there is very little in paste that an end use should touch.21:05
dstanekayoung: if you do it in Python you don't need a project - you just construct the objects21:05
dstanekthat'll make us much different from everyone else so we should start socializing that kind of change21:05
dstanekunless other projects are going that route already21:06
ayoungdstanek, OK,  so PasteDeploy seems to be something we are working around as opposed to working with21:07
ayoungfor example,  we lump all of the routers together into a single one and call it the v3 api21:07
*** raildo has quit IRC21:07
ayoungeverything we have needs an ever-growing set of filters21:08
ayoungat least one per extension...21:08
dstanekayoung: i don't think we are working around it - we use it to construct the object21:08
ayoungwe work around pastedeploy21:08
ayoungdstanek, I just tried splitting out /auth into its own pipeline.  Its not possible without rearchitecting our code21:09
dstanekayoung: why not?21:10
ayoungdstanek, the big thing was the JSON Home,21:11
ayoungwhich assumes we have a single tree21:11
ayoungand addressing that means that we would have to split out /auth, /identity, /assignemtn21:11
ayoungets21:11
ayoungactuall, it is not /identity21:11
ayoungit is /user and /users and /group and /groups21:11
dstanekayoung: sounds like you would have to re-architect then - paste-deploy shouldn't matter here21:11
ayoungnah21:12
ayoungI could do everything I need inside of the current code, and then paste is just being ignored21:12
ayoungso....why continue to use it if it is just dead weight21:12
ayoungmore specifically, why put out a file nominally as a config file, but that the user should not touch or they will break the application?21:13
*** _cjones_ has quit IRC21:15
dstanekayoung: our docs all over the place tell people to modify that config file21:15
dstanekayoung: that's also an extension point for deployers to add their own middleware21:16
*** hichtakk has joined #openstack-keystone21:22
*** henrynash has quit IRC21:22
morganfainbergayoung, the value of deployers being able to add thier own middleware in can't be underestimated21:29
ayoungmorganfainberg, to do what?21:30
morganfainbergayoung, now... we could collapse everything else down if we wanted - and probably not break anything too much21:30
morganfainbergayoung, so the deployer can still add their middleware / extension but we can avoid them "breaking" things by removing something important21:30
morganfainbergnot saying we shoul.d21:31
morganfainbergayoung, middleware/extensions etc. deployers do things that are custom - and we've supported it. so we need to continue to do so21:31
ayoungmorganfainberg, is this actually done, or is it theoretical?  Would it really make sense to add middleware (extensions are a different story)21:31
morganfainbergi've talked with people who have done it. and metacloud has done it21:32
ayoungwhat kind of middleware?21:32
morganfainbergmiddleware/extensions are the same thing from paste-perspective21:32
*** hichtakk has quit IRC21:33
morganfainbergmetacloud did some in-line data extration/injection for some cases [at least there was code to do so, not sure how widely used it was]21:33
morganfainbergand extensions are used.21:33
*** hichtakk has joined #openstack-keystone21:33
*** _cjones_ has joined #openstack-keystone21:33
morganfainbergand not waht we call an extension in-tree ;)21:33
*** jungleboyj has quit IRC21:33
*** nellysmitt has quit IRC21:34
ayoungmorganfainberg, extensions, at least things like S3 and OAUTH are in their own subtrees.  If we were using paste as it was intended, they would be their own pipelines21:36
*** erkules has joined #openstack-keystone21:36
ayoungwe just seem to be in this odd place, and I'm trying to do something I thought would be trivial21:36
ayoungand finding that it really is not21:36
ayoungpaste deploy seems to be stagnating as a project.  I like the idea, but it needs some more work.21:37
*** erkules_ has quit IRC21:37
dstanekayoung: i like building the pipeline from a config, but not the rest of paste*21:37
ayoungand, before I try to contribute to paste deploy, I want to know if it is in our interest to continue to use it21:37
dstanekayoung: i actually wrong a small snippet to load them without having to depend on paste21:37
*** hichtakk has quit IRC21:38
ayoungdstanek, so one thing I would do if I go the "contribute to paste" approach is to make a filter composable from other filters21:38
ayoungNow, I could collapse them in code, too21:38
dstanekwhy would you want to do that?21:39
dstanekayoung: why compose filters in that way i mean21:39
rodrigodsmorganfainberg, ayoung, so we a final +2 here: https://review.openstack.org/#/c/140161/21:40
ayoungdstanek, to avoid duplicating them in multiple pipeliens21:40
rodrigodswe need*21:40
dstanekayoung: you mean the duplication of the pipeline string itself?21:41
ayoungyeah21:41
ayoungdstanek, was looking for the code...one sec21:42
ayoungOK,  so the whole "factory is blah"  then "factory goes here in the pipeline" is ... sort of right, and sort of wrong21:42
ayoungdstanek, I would rather do the thing you were showing at the summit for that21:43
ayoungDependency Injection21:43
ayoungsizelimit url_normalize build_auth_context token_auth admin_token_auth json_body  is repeated at least 3 times.  And when I went to split out /auth it would have been almost repeated again21:43
*** hichtakk has joined #openstack-keystone21:44
ayoungActually, I would have been...I was thinking I would have removed token_auth, but even that is still needed for validation.21:44
ayoungI was trying to make multiple auth pipelines, one of which would be used for X509, one for Kerberos, one for SAML  etc21:45
ayoungnow, maybe this is the wrong approach, but what struck was how hard it was to do21:45
ayoungand, if the whole thing were either in paste deploy format, or the whole thing were in python, it would be easier.  Its this split-brained approach that makes it hard to address21:46
*** hdd has joined #openstack-keystone21:46
ayoungI guess I don't really need the whole AUTH_URL.  All I need is to be able to do POST /auth/tokens.21:50
ayoungI could make a separate router that only supports that, and put it in the paste file sans any other calls21:51
ayoung... so long as we support jamielennox|away 's approach of putting a service catalog into an unscoped token21:51
*** Tahmina has joined #openstack-keystone21:58
*** chrisshattuck has joined #openstack-keystone22:05
*** chrisshattuck has quit IRC22:08
flaper87morganfainberg: https://review.openstack.org/#/c/140765/ +2 ?22:09
flaper87zaqar's gate is blocked on that :(22:10
morganfainbergEarlier it hasn't passed check (when I looked). +2 now. Will release a dot fix either tonight or Sunday evening.22:12
morganfainbergflaper87: ^22:12
*** avozza is now known as zz_avozza22:12
flaper87morganfainberg: awesone, thanks a lot! :D22:13
*** _cjones_ has quit IRC22:14
*** _cjones_ has joined #openstack-keystone22:14
morganfainbergchances are id trather release Sunday night if that won't block you up too badly. I would rather avoid having to jump on fixes over the weekend.22:18
morganfainbergIf we introduce some other bug by accident.22:18
morganfainbergflaper87: ^22:18
flaper87morganfainberg: sure, we can wait 'til then22:19
flaper87we can use keystonemiddleware from git 'til the new version is out22:19
*** dimsum__ has quit IRC22:23
*** timcline_ has quit IRC22:25
*** jungleboyj has joined #openstack-keystone22:29
morganfainbergGreat.22:30
morganfainbergI'm going to a friends wedding starting tonight, don't want to have things blow up when that is going on.22:31
*** henrynash has joined #openstack-keystone22:33
*** ChanServ sets mode: +v henrynash22:33
*** erkules has quit IRC22:38
*** topol has quit IRC22:39
*** erkules has joined #openstack-keystone22:42
*** radez is now known as radez_g0n322:46
ayoungflaper87, ah you still here?22:49
ayoungflaper87, you oslo core?  Can you approve https://review.openstack.org/#/c/140161/22:49
*** henrynash has quit IRC22:52
flaper87ayoung: yup22:52
* flaper87 clicks22:52
ayoungflaper87, thanks!22:52
ayoungflaper87, once that goes through, we need....22:53
ayounghttps://review.openstack.org/#/c/142813/22:53
ayoungso, thanks, you are helping to move along an essential issue that it outside of our control22:54
flaper87ayoung: done22:54
ayoungflaper87, I think we are at Beer parity here22:54
flaper87ayoung: I added a comment with +1 on the second one22:54
ayoung++22:54
*** timcline has joined #openstack-keystone22:56
ayoungOK,  time to be dad22:57
*** ayoung has quit IRC22:57
*** timcline has quit IRC23:00
rodrigodsmorganfainberg, graduation spec merged \o/23:01
openstackgerritCedric Brandily proposed openstack/python-keystoneclient: Use textwrap instead of home made implementation  https://review.openstack.org/13903223:03
morganfainbergrodrigods, nice!23:05
*** chrisshattuck has joined #openstack-keystone23:11
*** zz_avozza is now known as avozza23:15
lhchenghello, is there a way to run python-keystoneclient CLI without installing it on my system?  I am working on a bug and figuring out how to test the CLI.23:16
morganfainberglhcheng, you could use a VENV and install it there instead of overridding the system libs/system install23:16
morganfainberglhcheng, venv = virtualenv23:17
morganfainberglhcheng, so virtualenv <path> then source <path>/bin/activate23:17
lhchengmorganfainberg: activate from venv23:17
lhchengmorganfainberg: okay23:17
morganfainberglhcheng, then you can pip install etc the keystoneclient without overriding your system stuff23:17
*** gordc has quit IRC23:18
lhchengmorganfainberg: I see, then create a symlink from the venv to my keystoneclient code?23:19
morganfainberglhcheng, nope you should just install (once the VENV is active) the keystoneclient23:19
morganfainberglhcheng, the VENV should put it's bin dir ahead of your normal path, meaning that running `keystone` should use the one from the venv23:19
*** rm_work is now known as rm_work|away23:20
*** Tahmina has quit IRC23:20
*** chrisshattuck has quit IRC23:21
lhchengmorganfainberg: Ah. I don't want to run the keystoneclient from pypi, but run the keystoneclient that I am currently working on.23:23
morganfainberglhcheng, yo can install a local keystoneclient via pip <path>23:23
morganfainberglhcheng, you could also use setup23:23
morganfainbergi recomment using pip -e <path to your keystoneclient you're working on>23:24
*** chrisshattuck has joined #openstack-keystone23:24
morganfainbergso that any changes you make to the keystoneclient code is immediate, you don't need to reinstall (it uses symlinks, like "develop" mode in setup.py)23:24
lhchengmorganfainberg: do I have to install the requirements.txt prior to  pip -e <path to your keystoneclient you're working on>23:25
morganfainberglhcheng, i usually do personally, but i *think* it does the install like you'd expect23:25
lhchengmorganfainberg: good stuff, forgot I can pip install from source23:25
morganfainberglhcheng :)23:25
lhchengmorganfainberg: this should get me going23:26
lhchengmorganfainberg: thanks for help! :)23:26
lhchengmorganfainberg: so yeah, pip was smart enough to inspect the requirements.txt and install it in venv. Cool!23:28
morganfainberghappy to help23:28
*** nellysmitt has joined #openstack-keystone23:34
*** chrisshattuck has quit IRC23:37
*** nellysmitt has quit IRC23:39
*** dimsum__ has joined #openstack-keystone23:41
*** _cjones_ has quit IRC23:42
*** jungleboyj has quit IRC23:43
openstackgerritMerged openstack/keystone: Use bashate to run_tests.sh  https://review.openstack.org/14314823:45
*** avozza is now known as zz_avozza23:47
*** timcline has joined #openstack-keystone23:57
*** timcline has quit IRC23:59
*** timcline_ has joined #openstack-keystone23:59

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