Wednesday, 2018-08-15

kmallocknikolla: nvm, found it00:00
*** dklyle has quit IRC00:20
*** lbragstad has joined #openstack-keystone00:28
*** ChanServ sets mode: +o lbragstad00:28
kmallocknikolla: i need to check the header format from the webob request object00:28
kmallocknikolla: so i can properly extend the flask header(s)00:28
*** Nel1x has joined #openstack-keystone00:31
*** gyee has quit IRC00:39
openstackgerritMerged openstack/keystone master: Convert services api to flask native dispatching  https://review.openstack.org/58964101:01
lbragstadkmalloc: qq01:08
kmalloclbragstad: qa01:08
lbragstadthe json home document for policies is missing the resource relations for /policies01:09
lbragstadi must be doing something wrong in https://review.openstack.org/#/c/589950/2/keystone/api/policy.py@3901:09
kmallocin your implementation or in general?01:09
lbragstadthe OS-ENDPOINT-POLICY relations look to be ok01:10
kmalloclooking01:10
lbragstadfor example there is no https://docs.openstack.org/api/openstack-identity/3/rel/policies key in the actual response01:10
lbragstad(but there is in the reference)01:11
kmallochm.01:11
lbragstadso when i ported policies to flask, i must have missed something that builds that for the /v3/policies key01:11
kmallocthat is the current patch?01:11
lbragstadno - but the handful of changes that i have locally aren't related to that01:12
lbragstador to json jome01:12
lbragstadhome*01:12
kmallocah, ok well first AssertionError: View function mapping is overwriting an existing endpoint function: policy.policyresource01:12
kmallocView function mapping is overwriting an existing endpoint function: policy.policyresource01:12
kmalloc}}} <-- error that is because you can't use a resource twice01:12
lbragstadnote that https://review.openstack.org/#/c/589950/2/keystone/api/policy.py@31 appears to be working fine01:12
lbragstadyeah - i already fixed that bit01:12
kmallocsec. let me do one thing01:13
kmallochm. weird.01:13
kmallocbecause Adding standard routes to API policy for `MethodViewType` (API Prefix: ) [/policies, /policies/<string:policy_id>]01:14
kmalloc should add json_home bits01:14
lbragstadi had to add _api_url_prefix = '/policies' to fix the policy.policyresource error you just pasted01:14
lbragstadin the PolicyAPI class01:15
kmallocyou're going to have an issue then, since /policies will prefix and you'll have /policies/policies01:15
lbragstadi removed the /policies/ from the other paths01:15
kmallocbut we automatically construct for Resources01:16
kmallocwhich includes the collection_kehy01:16
kmallockey*01:16
kmallocyou might want to add the changes from https://review.openstack.org/#/c/591082/9/keystone/tests/unit/test_versions.py01:16
kmallocthey make debugging json_home issues a lot easier01:16
kmallocso, if you want to use a prefix, you'll need to do a resource_mapping for the main resource as well [totally fine]01:17
lbragstadnice01:17
lbragstaddiffing that error is a pain01:17
lbragstadlet me try that quick01:17
kmallocyeah $%!@ diffing the errors.01:17
kmallocif you push the latest code up, i can cherry-pick it and look at it01:18
kmallocit's a little frustrating/fragile when porting, but pretty bomb proof once you get it down.01:18
kmallocanyway i need to go eat.01:19
lbragstadack01:19
kmallocwill check back in in a bit. remember, you can have multiple api classes (look at federation)01:20
kmallocif it helps01:20
kmalloclbragstad: https://git.openstack.org/cgit/openstack/keystone/tree/keystone/api/os_federation.py?h=refs/changes/82/591082/9#n55901:21
lbragstadok01:21
lbragstadthanks01:21
kmallocalso note if you do that the _additional_parameters parts01:21
kmallocneeded to construct json_home sanely01:21
kmallocif you want to use that you'll need to rebase on top of OS-FEDERATION01:21
kmallocsome other fixes were rolled in (such as the regex/sub of <> to {}01:22
kmallocfor the whole url, not just the post-prefix parts01:22
kmallocso 591082 is safe to rebase on, might make it easier for you too since you can just delete EP-Polidy routers01:23
kmallocsince by that point endpoints is already ported01:23
*** dave-mccowan has quit IRC02:19
*** openstack has joined #openstack-keystone02:33
*** ChanServ sets mode: +o openstack02:33
*** Nel1x has quit IRC03:11
openstackgerritMerged openstack/keystone master: Convert endpoints api to flask native dispatching  https://review.openstack.org/58964203:41
*** ayoung has quit IRC03:44
*** orange_julius has quit IRC04:40
*** pcaruana has joined #openstack-keystone05:12
openstackgerritwangqiang-bj proposed openstack/keystone master: modify json file relative path in 'application-credentials'  https://review.openstack.org/59190906:20
*** jaosorior has joined #openstack-keystone06:25
openstackgerritwangqiang-bj proposed openstack/keystone master: fix wrong relative path in 'application-credentials.inc'  https://review.openstack.org/59191906:35
*** jaosorior has quit IRC06:40
openstackgerritwangqiang-bj proposed openstack/keystone master: fix wrong relative path in 'inherit.inc'  https://review.openstack.org/59192206:44
openstackgerritwangqiang-bj proposed openstack/keystone master: fix wrong relative path in 'os-pki.inc'  https://review.openstack.org/59192406:49
openstackgerritwangqiang-bj proposed openstack/keystone master: fix wrong relative path in 'inherit.inc'  https://review.openstack.org/59192606:55
openstackgerritAndriy Shevchenko proposed openstack/ldappool master: fix tox python3 overrides  https://review.openstack.org/59192706:55
*** s10 has joined #openstack-keystone07:11
*** jaosorior has joined #openstack-keystone07:15
*** s10 has quit IRC07:22
openstackgerritShuo Liu proposed openstack/keystoneauth master: add release notes to readme.rst  https://review.openstack.org/59194307:48
openstackgerritwangxiyuan proposed openstack/keystone master: Fix db model inconsistency for FederatedUser  https://review.openstack.org/56624207:51
openstackgerritwangxiyuan proposed openstack/keystone master: Enable Foreign keys for sql backend unit test  https://review.openstack.org/55802907:51
openstackgerritwangxiyuan proposed openstack/keystone master: Enable foreign keys for unit test  https://review.openstack.org/55819307:51
openstackgerritwangxiyuan proposed openstack/keystone master: ADD a test for idp and federated user cascade deleting  https://review.openstack.org/59194607:51
openstackgerritShuo Liu proposed openstack/keystonemiddleware master: add releasenotes to readme.rst  https://review.openstack.org/59194707:52
*** lbragstad has quit IRC07:54
*** rha has quit IRC08:34
*** josecastroleon has quit IRC09:00
*** josecastroleon has joined #openstack-keystone09:00
*** samueldmq_ has joined #openstack-keystone09:16
*** andreaf has quit IRC09:16
*** andreaf has joined #openstack-keystone09:17
*** bzhao__ has quit IRC09:18
*** samueldmq has quit IRC09:18
*** samueldmq_ is now known as samueldmq09:18
*** josecastroleon has quit IRC10:09
openstackgerritMerged openstack/oslo.limit master: fix doc gate  https://review.openstack.org/59116210:41
openstackgerritMerged openstack/oslo.limit master: import zuul job settings from project-config  https://review.openstack.org/58869710:41
*** s10 has joined #openstack-keystone10:41
openstackgerritMerged openstack/oslo.limit master: add python 3.6 unit test job  https://review.openstack.org/58959910:45
*** raildo has joined #openstack-keystone11:59
*** josecastroleon has joined #openstack-keystone12:00
knikollao/12:34
*** josecastroleon has quit IRC12:54
*** josecastroleon has joined #openstack-keystone12:54
*** mvkr has quit IRC13:10
openstackgerritLance Bragstad proposed openstack/keystone master: Convert policy API to flask  https://review.openstack.org/58995013:16
*** dklyle has joined #openstack-keystone13:31
*** orange_julius has joined #openstack-keystone13:38
*** mvkr has joined #openstack-keystone13:40
*** david-lyle has joined #openstack-keystone13:48
*** dklyle has quit IRC13:49
*** david-lyle has quit IRC13:49
*** david-lyle has joined #openstack-keystone13:49
openstackgerritLance Bragstad proposed openstack/keystone master: Convert policy API to flask  https://review.openstack.org/58995014:31
*** _ix has joined #openstack-keystone14:33
gagehugoo/14:44
*** d0ugal has joined #openstack-keystone14:59
*** david-lyle is now known as dklyle15:01
*** gyee has joined #openstack-keystone15:32
*** fiddletwix has quit IRC15:41
*** mvkr has quit IRC15:46
*** itlinux has joined #openstack-keystone15:52
*** FracKen has joined #openstack-keystone15:56
*** ayoung has joined #openstack-keystone16:15
*** sayalilunkad has quit IRC16:16
*** sayalilunkad has joined #openstack-keystone16:20
*** sayalilunkad has quit IRC16:32
*** sayalilunkad has joined #openstack-keystone16:47
*** sayalilunkad has quit IRC16:51
*** sayalilunkad has joined #openstack-keystone16:52
*** openstackstatus has joined #openstack-keystone16:57
*** ChanServ sets mode: +v openstackstatus16:57
*** sayalilunkad has quit IRC17:09
*** mbuil has quit IRC17:10
*** s10 has quit IRC17:11
*** gyee has quit IRC17:54
*** mvkr has joined #openstack-keystone17:56
openstackgerritMichael Beaver proposed openstack/oslo.policy master: WIP Docs: Remove references to JSON format  https://review.openstack.org/59217018:21
_ixI think I've gotten the most mileage out of asking questions in here. No good deed goes unpunished ;)18:25
_ixIs there a specific channel for tempest questions?18:26
ayoung_ix, qa used to be it18:28
ayoungtry /join #openstack-qa18:28
_ixThanks, ayoung!18:29
ayoung_ix, tell them kmalloc sent you18:30
*** Dano8080 has joined #openstack-keystone19:09
*** openstackgerrit has quit IRC19:19
kmalloclol19:28
*** openstackgerrit has joined #openstack-keystone19:53
openstackgerritMorgan Fainberg proposed openstack/keystone master: Convert policy API to flask  https://review.openstack.org/58995019:53
openstackgerritMerged openstack/ldappool master: fix ldappool bad password retry logic  https://review.openstack.org/59117420:01
Dano8080Hi.  Does anyone know if there's a way to have keystone include the elapsed time in the log message for a request?  Or some other way to capture the elapsed time for a request?20:01
*** raildo has quit IRC20:42
kmallocDano8080: there are two ways, but they are chatty/can slow things down.20:53
kmallocDano8080: there is the debug middleware (just per request data)20:53
kmallocAnd there is the trace log level (logs a TON of data about each manager call/time in the DB, etc)20:54
kmallocMy guess is you want the debug middleware20:54
openstackgerritMichael Beaver proposed openstack/oslo.policy master: Docs: Remove references to JSON format  https://review.openstack.org/59217020:55
*** ayoung has quit IRC21:19
*** rcernin has joined #openstack-keystone21:29
Dano8080kmalloc: Thanks.  I will investigate those methods21:32
openstackgerritMorgan Fainberg proposed openstack/keystone master: Convert OS-FEDERATION to flask native dispatching  https://review.openstack.org/59108222:14
openstackgerritMorgan Fainberg proposed openstack/keystone master: Refactor ProviderAPIs object to better design pattern  https://review.openstack.org/57195522:15
openstackgerritMorgan Fainberg proposed openstack/keystone master: Fix RBACEnforcer get_member_from_driver mechanism  https://review.openstack.org/59114622:15
openstackgerritMorgan Fainberg proposed openstack/keystone master: Convert groups API to flask native dispatching  https://review.openstack.org/59114722:15
openstackgerritMorgan Fainberg proposed openstack/keystone master: Fix a translation of log  https://review.openstack.org/59116422:15
openstackgerritMorgan Fainberg proposed openstack/keystone master: Convert OS-INHERIT API to flask native dispatching  https://review.openstack.org/59116522:15
kmallocknikolla: ^ ok i *think* i've solved all the issues with OS-FEDERATION port22:16
kmallocgoing to see what zuul has to say, but it should be ready now.22:16
*** FracKen has left #openstack-keystone22:21
*** itlinux has quit IRC22:22
*** d0ugal has quit IRC22:33
*** imacdonn has quit IRC22:38
*** imacdonn has joined #openstack-keystone22:38
*** d0ugal has joined #openstack-keystone22:44
kmallocknikolla: yep, passes functional test now. phew22:45
*** d0ugal has quit IRC23:01
*** _ix has quit IRC23:01
*** d0ugal has joined #openstack-keystone23:03
kmallocknikolla: further along, there is another os-federation issue cropping up, but we're good for reviews up until OS-FEDERATION patch and maybe one after23:07
*** rcernin has quit IRC23:18
*** rcernin has joined #openstack-keystone23:19
*** d0ugal has quit IRC23:42
*** d0ugal has joined #openstack-keystone23:56

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