Thursday, 2015-09-17

*** dave-mccowan has joined #openstack-barbican00:00
*** lee_calcote has joined #openstack-barbican00:04
*** lee_calcote has quit IRC00:14
*** xaeth_afk is now known as xaeth00:20
*** everjeje has quit IRC00:32
*** dimtruck is now known as zz_dimtruck00:48
*** zz_dimtruck is now known as dimtruck00:49
*** dimtruck is now known as zz_dimtruck01:04
*** lee_calcote has joined #openstack-barbican01:15
*** jmckind has joined #openstack-barbican01:17
*** jmckind has quit IRC01:17
*** lee_calcote has quit IRC01:20
*** xaeth is now known as xaeth_afk01:37
*** chlong has joined #openstack-barbican01:47
*** vivek-ebay has joined #openstack-barbican01:49
*** chlong_ has joined #openstack-barbican01:53
*** vivek-ebay has quit IRC02:11
*** vivek-ebay has joined #openstack-barbican02:13
*** zz_dimtruck is now known as dimtruck02:19
*** xaeth_afk is now known as xaeth02:24
*** david-lyle has joined #openstack-barbican02:34
*** chlong_ has quit IRC02:50
openstackgerritAde Lee proposed openstack/barbican: Add functional test for project CA  https://review.openstack.org/22258302:52
openstackgerritAde Lee proposed openstack/barbican: Fix ca related controllers  https://review.openstack.org/22412602:54
*** edtubill has joined #openstack-barbican03:26
*** dave-mccowan has quit IRC03:33
*** chlong has quit IRC04:16
*** chlong has joined #openstack-barbican04:33
*** chlong has quit IRC04:48
*** xaeth is now known as xaeth_afk05:03
*** dimtruck is now known as zz_dimtruck05:03
*** vivek-ebay has quit IRC05:13
*** edtubill has quit IRC05:18
*** jaosorior has joined #openstack-barbican05:54
openstackgerritOpenStack Proposal Bot proposed openstack/barbican: Imported Translations from Zanata  https://review.openstack.org/22422706:14
*** chlong has joined #openstack-barbican06:18
*** jaosorior has quit IRC07:04
*** lee_calcote has joined #openstack-barbican07:09
*** lee_calcote has quit IRC07:14
*** jaosorior has joined #openstack-barbican07:20
*** shohel has joined #openstack-barbican07:39
openstackgerritElvin Tubillara proposed openstack/python-barbicanclient: barbican help needs authentication  https://review.openstack.org/22446707:40
openstackgerritElvin Tubillara proposed openstack/python-barbicanclient: barbican help needs authentication  https://review.openstack.org/22446707:44
-openstackstatus- NOTICE: Gate is currently stuck, failing grenade upgrade tests due the release of oslo.utils 1.4.1 for Juno.08:00
*** jaosorior has quit IRC08:23
*** jaosorior has joined #openstack-barbican08:24
*** darrenmoffat has quit IRC08:39
*** darrenmoffat has joined #openstack-barbican08:40
*** jaosorior has quit IRC09:05
*** jaosorior has joined #openstack-barbican09:09
-openstackstatus- NOTICE: Gate back to normal, thanks to the backlisting of the problematic version10:14
*** everjeje has joined #openstack-barbican10:22
*** shohel has quit IRC11:01
*** shohel has joined #openstack-barbican11:01
*** dave-mccowan has joined #openstack-barbican11:32
*** shohel1 has joined #openstack-barbican12:03
*** shohel has quit IRC12:03
dave-mccowanjaosorior ping12:10
openstackgerritOpenStack Proposal Bot proposed openstack/barbican: Updated from global requirements  https://review.openstack.org/22459812:10
openstackgerritOpenStack Proposal Bot proposed openstack/castellan: Updated from global requirements  https://review.openstack.org/22459912:10
openstackgerritOpenStack Proposal Bot proposed openstack/python-barbicanclient: Updated from global requirements  https://review.openstack.org/21719312:16
jaosoriordave-mccowan: pong12:21
dave-mccowanjaosorior are you working on subca stuff today?  i just opened two bugs on it, if you want to grab one.12:22
jaosoriordave-mccowan: No, this week I'm working on other stuff :/ So I won't be able to do Barbican work, except for reviews, those I can always do12:22
jaosoriorwhich bugs did you open?12:22
dave-mccowanhttps://bugs.launchpad.net/barbican/+bug/149682112:23
openstackLaunchpad bug 1496821 in Barbican "HTTP 403 Returned when trying to get preferred CA" [Undecided,New]12:23
dave-mccowanhttps://bugs.launchpad.net/barbican/+bug/149681912:23
openstackLaunchpad bug 1496819 in Barbican "HTTP Code 500 Returned on bad CA resource in URL" [Undecided,New]12:23
*** alee has quit IRC12:24
*** jaosorior has quit IRC12:31
*** shohel1 has quit IRC13:02
*** shohel has joined #openstack-barbican13:03
*** peter-hamilton has joined #openstack-barbican13:10
*** lee_calc_ has joined #openstack-barbican13:24
*** alee has joined #openstack-barbican13:25
*** openstackgerrit has quit IRC13:31
*** openstackgerrit has joined #openstack-barbican13:31
*** tristanC has left #openstack-barbican13:32
*** shohel1 has joined #openstack-barbican13:33
*** shohel has quit IRC13:33
dave-mccowanalee ping13:42
aleedave-mccowan, pong13:42
aleedave-mccowan, morning13:42
*** rellerreller has joined #openstack-barbican13:42
dave-mccowanalee good morning13:42
dave-mccowanalee did you see the bugs on cas controller i opened this morning?13:43
aleedave-mccowan, no .. where are they?13:43
dave-mccowanhttps://bugs.launchpad.net/barbican/+bug/149682113:43
openstackLaunchpad bug 1496821 in Barbican "HTTP 403 Returned when trying to get preferred CA" [Undecided,New]13:43
dave-mccowanhttps://bugs.launchpad.net/barbican/+bug/149681913:43
openstackLaunchpad bug 1496819 in Barbican "HTTP Code 500 Returned on bad CA resource in URL" [Undecided,New]13:43
aleedave-mccowan, for the first one, my guess is that there is a decorator missing for content types or similar13:45
aleedave-mccowan,  and will have to look into the second one.13:46
aleeunless you happen to have time to look into it13:46
dave-mccowanalee there is some ambiguity between /{CA_ID}/ and other keyword resource names.  i think that may be contributing to the weirdness.13:46
dave-mccowanalee i still have some work to do on the refresh_table at init.  we should divide and conquer.13:47
aleedave-mccowan, yes -- I'm still working on getting jaosoriors patch to pass the gate.13:48
aleedave-mccowan, https://review.openstack.org/#/c/222583/13:49
aleedave-mccowan, its a strange failure -- trying to track it down13:49
aleeonce I do, you can rebase your change13:49
aleedave-mccowan, and there is jaosorior's next patch to restrict the get_cas -- which  I have rewritten somewhat13:50
dave-mccowanalee there is something weird with the CA plugins.  sometimes, i do a GET /v1/cas twice in a row.  the first time I see two (simple and snake), the second time comes back empty list.  any idea what might cause a disappearing act like that?13:50
*** su_zhang has joined #openstack-barbican13:50
aleedave-mccowan, like right after each other?13:51
redrobotcrap.  looks like I missed the deadline for ptl candidacy13:51
redrobot:(13:51
aleedave-mccowan, or within a couple days of each other?13:51
*** rellerreller has quit IRC13:51
dave-mccowanalee immediately after.  without an order posted, just refresh_table() called.13:52
aleedave-mccowan, so the CA plugins have the concept of expiration.  that is the plugin tells the server when the information becomes stale.  But I think thats set to something like 2 days by default.13:53
aleedave-mccowan, so yeah , I've never seen it disappear like that13:53
dave-mccowanredrobot time time buy presents for the technical committee13:53
dave-mccowanalee sounds like refresh table needs to be called before every CAs operation, otherwise it's a crapshoot if the information is current.13:54
*** rellerreller has joined #openstack-barbican13:54
dave-mccowanalee it might only happen with my refresh at init patch13:55
dave-mccowanalee is there anything about placing a cert order that might make a plugin more permanent?13:57
*** spotz_zzz is now known as spotz14:00
dave-mccowanalee the failure in the gate looks like a parallel running problem.  the test is checking that a specific number of cas is in the list.  but, with multiple tests running at the same there is no predicting how many will be in the list.  i had to fix this for quotas.  the fix is to added tests like that to a separate class, then update functionaltests/run_tests.sh to skip them during the parallel run.14:01
aleedave-mccowan, yeah - I was wondering whether the tests were running in parallel14:02
aleehow do you skip during the parallel run?14:02
dave-mccowanalee https://github.com/openstack/barbican/blob/master/functionaltests/run_tests.sh#L3214:04
dave-mccowanalee the plan is to do it with an [attribute], but for now regex is the way14:05
*** xaeth_afk is now known as xaeth14:07
*** xaeth has left #openstack-barbican14:08
*** su_zhang has quit IRC14:09
aleedave-mccowan, thanks -- ok - let me get that fixed ..14:25
*** lisaclark1 has joined #openstack-barbican14:25
*** shohel1 has quit IRC14:26
*** pglass has joined #openstack-barbican14:29
dave-mccowanalee there's more weirdness about calling refresh_table() to start.  some unit tests are failing with that change.  one expecting 0 cas, but getting two.  another expecting 11 and getting 13.14:31
aleedave-mccowan, right - you're going to need to revise the tests14:31
aleeto account for the assumption that now there are cas defiend.14:32
dave-mccowanalee ah... ok.  that makes sense, we should always start with the number of plugins configured.14:33
*** xaeth has joined #openstack-barbican14:34
dave-mccowanalee which leads to another question....  i don't think we should have snakeoil enabled in the default config file.  we'll need to update test cases for that too.14:34
*** lee_calc_ has quit IRC14:35
aleedave-mccowan, why not have it configured?14:35
aleedave-mccowan, it needs to be there for sure for the functional tests14:36
dave-mccowanalee hmmmm.  we're supposed to discourage its use, since it is "snakeoil".  i guess i'd feel better if someone had to purposefully turn it on.  but, thinking about it I guess all the other defaults are insecure too (http, static encryption key, etc.).  maybe it is ok.14:39
aleedave-mccowan, well we would never expect anyone to use the simple ca plugin either14:40
aleedave-mccowan, think of these as two testing plugins14:40
*** lisaclark1 has quit IRC14:41
*** lisaclark1 has joined #openstack-barbican14:41
dave-mccowanalee i do.  i'm just not sure what the barbican adopter expects out of the default config.  i guess something that works out of the box is good, even if it is not secure.14:41
aleedave-mccowan, yup14:43
aleedave-mccowan, at this point, the only secure ca plugin we have is dogtag14:44
dave-mccowanalee ok.  i'm convinced.14:45
dave-mccowanalee did you know that the gate (with only committed patches) is failing due to the parallel testing of cas?14:46
aleedave-mccowan, sigh .. link?14:47
dave-mccowanhttps://review.openstack.org/22321914:47
*** jorge_munoz has joined #openstack-barbican14:47
dave-mccowanalee you just need to get your patch with the change to run_tests.sh up next.14:47
*** edtubill has joined #openstack-barbican14:48
*** lee_calcote has joined #openstack-barbican14:49
*** silos has joined #openstack-barbican14:49
dave-mccowanalee what do you think about call refresh_table before every CA operation, to make sure we never fail due to expiration?14:54
aleedave-mccowan, well the reason I did  not do that was that I was worried about the overhead of making a call to the ca plugin and hence to the ca each time we did a ca operation14:56
aleefor many ca plugins that would not be a big deal because the data does not change14:56
aleefor dogtag, that could be crippling14:56
aleeunless we do caching in the plugin14:57
dave-mccowanalee when the plugin expires, what happens?  the system is broken.14:58
aleedave-mccowan, well no - actually ..14:59
aleedave-mccowan, if I recall correctly, each time we request a cert - we call refresh_cas()15:00
aleeso if a plugin has expired, it will be queried15:00
aleeif not expired , it wont15:01
aleedave-mccowan, question is whether to do this for any ca operation ..15:01
*** kebray has joined #openstack-barbican15:02
*** everjeje has quit IRC15:03
dave-mccowanalee if i am an orchestration script, and i need to order a cert, the first thing i need to get is get a list of CAs to find the ID of the one I want to use.15:03
*** zz_dimtruck is now known as dimtruck15:03
aleedave-mccowan, let me revisit what refresh does ..15:04
aleedave-mccowan, just a sec -- being pinged for escalation of the day - back in a sec.15:05
*** lee_calcote has quit IRC15:19
*** kfarr has joined #openstack-barbican15:19
*** diazjf has joined #openstack-barbican15:20
*** ccneill has joined #openstack-barbican15:26
*** dave-mccowan has quit IRC15:35
*** vivek-ebay has joined #openstack-barbican15:39
openstackgerritAde Lee proposed openstack/barbican: Add functional test for project CA  https://review.openstack.org/22258315:52
peter-hamiltonredrobot: whaaaaaaaaat?15:52
redrobotpeter-hamilton hehe, yeah...  bad UTC conversion on my part15:53
* peter-hamilton sagely nods his head15:53
*** rellerreller has quit IRC15:54
peter-hamiltonredrobot: what dark magics are required to get you back in?15:54
redrobotpeter-hamilton Dave recommended buying the TC presents. :)15:55
redrobotpeter-hamilton hoping the TC will appoint me, but we could possibly have a surprising new PTL15:56
peter-hamiltonredrobot: haha, worth a shot15:56
peter-hamiltonredrobot: are there any other candidates?15:56
peter-hamiltonredrobot: o.o15:56
redrobotpeter-hamilton no, we're in the TC appoitment process because there were no candidates at all15:56
peter-hamiltonredrobot: ah, ok15:56
*** kfarr has quit IRC15:56
peter-hamiltonredrobot: well good luck! can we hold a write-in election? that'd be fun15:57
redrobotpeter-hamilton haha, thanks15:59
rm_workhey0!16:00
rm_workplease review because i did a dumb: https://review.openstack.org/#/c/224220/16:00
redrobotrm_work looking16:01
redrobotrm_work does that mean that anyone who uses the barbican plugin will get python-barbicanclien trunk?16:01
*** kebray has quit IRC16:01
rm_workyes16:02
rm_workwell, in devstack16:02
*** lisaclark1 has quit IRC16:02
rm_worknone of this applies if you don't install via the devstack mechanism16:02
rm_workthe reason the barbican clone wasn't required is that the gate checks out whatever project is being tested already -- and obviously if the script was being run, it was already cloned16:03
rm_workbut unless you've linked a client change to it as a dependency, it won't clone that16:03
*** diazjf has quit IRC16:03
rm_workactually I am not sure how this would effect doing a Depends-On: from a client CR16:04
*** diazjf has joined #openstack-barbican16:04
rm_workbut, it's required to un-break OTHER project-gates that use barbican16:04
rm_workand it puts us back to parity with the other devstack script16:04
redrobotrm_work +2ed16:04
rm_workso16:04
rm_workthx16:04
*** woodster_ has joined #openstack-barbican16:04
diazjfredrobot, are there any problems with the gate, some of my minor edits are failing. Should I rebase https://review.openstack.org/#/c/223219/16:09
aleediazjf, its an issue with the parallel tests in one of the ca tests16:12
aleediazjf, I have put up a patch to fix16:12
aleewaiting for it to clear gate testing16:12
diazjfawesome, thanks alee. Do I run reverify or recheck after it merges?16:13
aleeyeah recheck16:13
aleeredrobot, once it clears gate checks, I'll be looking for +2's ..16:14
aleeredrobot, https://review.openstack.org/#/c/222583/16:15
diazjfalee, awesome!! I'll give it a review soon as well. Also I'm gonna need to rebase my stuff as well right?16:16
aleeyeah  - if you rebase it will probably kick off tests again16:17
aleediazjf, wait till it merges of course.16:17
diazjfalee, thanks!16:19
*** vivek-ebay has quit IRC16:20
edtubillhi, can someone review my patch https://review.openstack.org/#/c/222328/16:21
*** kebray has joined #openstack-barbican16:21
*** lee_calcote has joined #openstack-barbican16:24
*** lee_calcote has quit IRC16:28
*** vivek-ebay has joined #openstack-barbican16:33
*** david-lyle has quit IRC16:36
*** silos has left #openstack-barbican16:42
*** peter-hamilton has quit IRC16:43
*** vivek-ebay has quit IRC16:43
*** david-lyle has joined #openstack-barbican16:47
*** edtubill has quit IRC16:55
*** ccneill has quit IRC16:55
*** alee is now known as alee_lunch16:57
*** lee_calcote has joined #openstack-barbican16:57
*** su_zhang has joined #openstack-barbican16:57
*** su_zhang has quit IRC16:58
*** su_zhang has joined #openstack-barbican16:58
*** dave-mccowan has joined #openstack-barbican17:02
*** david-lyle has quit IRC17:03
*** vivek-ebay has joined #openstack-barbican17:15
*** lee_calcote has quit IRC17:23
*** lee_calcote has joined #openstack-barbican17:28
*** diazjf has quit IRC17:31
*** mragupat has joined #openstack-barbican17:37
*** rm_work has quit IRC17:43
*** rm_work has joined #openstack-barbican17:45
*** su_zhang has quit IRC17:50
*** su_zhang has joined #openstack-barbican17:50
*** lee_calcote has quit IRC17:50
*** diazjf has joined #openstack-barbican18:02
*** edtubill has joined #openstack-barbican18:02
*** su_zhang_ has joined #openstack-barbican18:02
*** ccneill has joined #openstack-barbican18:04
*** jamielennox is now known as jamielennox|away18:05
*** su_zhang has quit IRC18:05
*** rellerreller has joined #openstack-barbican18:06
*** kfarr has joined #openstack-barbican18:13
*** lee_calcote has joined #openstack-barbican18:14
*** everjeje has joined #openstack-barbican18:22
*** lee_calcote has quit IRC18:28
*** su_zhang_ has quit IRC18:35
*** alee_lunch is now known as alee18:37
aleeredrobot, something wrong with the gate -- been waiting for 3 hours for my CR to clear18:38
aleehttps://review.openstack.org/#/c/22258318:38
aleeredrobot, wheres the site that shows the status of gate jobs?18:40
aleedave-mccowan, ^^18:40
dave-mccowanalee i think it's just a busy day.  everyone submitting last minute fixes for Release Candidates.  http://status.openstack.org/zuul/18:40
*** diazjf has quit IRC18:41
dave-mccowanalee any new thoughts on how to keep GET /v1/cas working without swamping the plugins?18:42
*** jaosorior has joined #openstack-barbican18:43
aleedave-mccowan, sorry - let me look again at the refresh_cas()18:43
jaosorioralee, dave-mccowan: Anything I should be reviewing?18:44
aleejaosorior, just waiting on the damn gate ..18:45
aleehttps://review.openstack.org/#/c/222583/18:45
jaosorioralee: haha well, it's gate rush hour18:45
aleeonce it passes, then would be good to get in +2 from you and dave-mccowan18:45
aleejaosorior, I'm reworking your follow on patch18:46
aleeit does not do exactly what is needed18:46
jaosorioralee: oh, sorry about that18:47
aleedave-mccowan, so refresh_cas() basically checks each plugin and sees if there are any cas present18:47
aleejaosorior, no worries -- its close18:47
aleedave-mccowan, for that plugin18:47
aleewith the idea being that all cas will expire at the same time18:47
aleefor a given plugin18:48
openstackgerritJuan Antonio Osorio Robles proposed openstack/barbican: Fix ca related controllers  https://review.openstack.org/22412618:48
aleejaosorior, eh?18:48
aleedave-mccowan, so point is - that for the most part this is a no-op for the plugins18:48
jaosorioralee: rebased18:49
aleedave-mccowan, so it should be ok to refresh the table18:49
aleeon GET /cas18:49
dave-mccowanalee cool.  i think that would be a good solution.18:49
aleebecause this will likely not do anything most of the time for any given plugin18:49
jaosorioralee: Also remember to add the Co-Authored-By: in git. If you're doing work there it should be reflected ;)18:49
aleejaosorior, will do :)18:50
dave-mccowanalee to make sure i understand, is there a database entry for each CA, or is the only record stored in the plugin?18:50
aleedave-mccowan, there is a db entry for each ca18:50
aleeCertificateAuthoritites18:51
aleethe plugin/backend keeps its own records18:51
jaosoriorclear18:51
jaosoriorwrong terminal18:51
aleeok -- now to try and get jaosorior patch working ..18:52
dave-mccowanalee so, i'm really confused why GET /v1/cas can return an empty list.  there must be a subtle bug, in addition to the missing "init"18:52
aleedave-mccowan, yeah -- I dont know how that can happen18:55
aleedave-mccowan, the refresh should fix that though - hopefully18:56
kfarralee, this is the site btw http://status.openstack.org/zuul/19:02
aleekfarr, got it - thanks19:02
*** lee_calcote has joined #openstack-barbican19:05
*** david-lyle has joined #openstack-barbican19:11
*** silos has joined #openstack-barbican19:11
*** rellerreller has quit IRC19:14
*** kfarr has quit IRC19:14
*** lee_calcote has quit IRC19:15
*** lisaclark1 has joined #openstack-barbican19:16
silosdave-mccowan: ping19:19
*** diazjf has joined #openstack-barbican19:19
*** spotz is now known as spotz_zzz19:24
dave-mccowansilos pong19:24
*** david-lyle has quit IRC19:25
silosdave-mccowan: I know you're really busy today so I'll keep it short. If I'm a user and do a get for my effective quotas, I should get the values in the barbican.conf file if the service-admin user hasn't set them yet correct?19:25
dave-mccowansilos yes19:26
* dave-mccowan crossing fingers that's what you're seeing :-)19:26
* silos becomes the bearer of bad news19:26
silosI'm not seeing those values :(19:27
dave-mccowanwhat values are you seeing?19:27
silos-1 all the time19:27
silosDo the values need to be set before installing barbican??19:28
dave-mccowansilos barbican.sh install makes a copy of barbican.conf in /etc/barbican and that's the file that is used.  so... edit them in /etc/barbican, or edit them in-tree before installing19:29
silosdave-mccowan: ok. I'll edit it in tree and see what happens. thx19:29
dave-mccowansilos thanks for testing that.  there is a chance there is a bug there; the functional tests don't cover changing config files.19:31
silosdave-mccowan: no prob. I'll let you know what happens.19:32
*** spotz_zzz is now known as spotz19:33
*** lee_calcote has joined #openstack-barbican19:46
*** kebray has quit IRC19:48
*** spotz is now known as spotz_zzz19:51
silosdave-mccowan: I installed barbican from scratch twice. Once with keystone middleware enabled and one with it not turned on. And both times I tested a GET request for quotas for a user with admin privileges to their project and both times it gave me -1 for all values :'(19:52
dave-mccowansilos hmm. i'll give it a try too.19:54
rm_workhmmm19:54
rm_workapi.v1.functional.test_cas.CertificateAuthoritiesTestCase.test_list_and_get_cas <-- failing on my change in gate19:54
edtubilldave-mccowan: I tried it too and I got a -119:55
rm_workcan't POSSIBLY be related <_<19:55
dave-mccowanrm_work  alee is fixing that.  that test works in serial mode, then fails in parallel.19:56
rm_workkk19:56
rm_worki feel like every time i turn around, something else has broken one of my changes in gate today/yesterday T_T19:56
diazjfrm_work its gonna fail until alee, gets her patch merged19:56
rm_workthe oslo.utils thing hit me pretty hard yesterday19:56
diazjfhis*19:56
rm_workheh19:57
rm_workyeah k19:57
rm_workis a review up?19:57
diazjfyeah, let me pull it up19:57
*** su_zhang has joined #openstack-barbican19:57
diazjfhttps://review.openstack.org/#/c/222583/19:57
dave-mccowanrm_work it should just skip that test when using testr in parallel mode, so you know it can't fail. :-)19:58
*** lee_calcote has quit IRC19:58
dave-mccowansilos yep, fails for me too.  it should be an easy fit in barbican/common/quota.py, where the config parameters are defined, but the problem isn't jumping out at me.20:00
dave-mccowansilos it seems like it is always taking the defaults, instead of reading the config file.20:01
*** su_zhang has quit IRC20:02
silosdave-mccowan: Hmmm It should read the config file every time bin/barbican.sh start is run. So idk why it's not doing it for those values.20:02
silosdave-mccowan: I'll file a bug and take a look into it. If I come up with the solution I'll assign it to myself. But you know the code better than me so you'll probably find the solution faster.20:04
dave-mccowansilos maybe that config code needs to be moved to (or called from) common/config.py.20:04
dave-mccowanjaosorior, alee ^^   do all config parameters need to be registered under new_config()20:05
*** jaosorior has quit IRC20:05
dave-mccowansilos yea, i think that's it.  if you cut and paste out that register config code, and make it fit in config.py, consistent with the other groups, I think you will fix the bug.20:08
silosdave-mccowan: okay. I'll try that.20:09
*** kebray has joined #openstack-barbican20:13
*** lee_calcote has joined #openstack-barbican20:17
*** diazjf1 has joined #openstack-barbican20:19
*** diazjf has quit IRC20:19
*** spotz_zzz is now known as spotz20:22
*** vivek-ebay has quit IRC20:28
*** mragupat has quit IRC20:29
*** gyee has joined #openstack-barbican20:31
*** lisaclark1 has quit IRC20:41
*** su_zhang has joined #openstack-barbican20:46
silosdave-mccowan: that was it :-D. Some tests are failing so those need to be refactored.20:50
dave-mccowansilos cool.  as long as the tests pass when the config is reverted to default, then i think you're ok.20:51
silosah ok. I'll test that to be sure then. thanks.20:52
aleedave-mccowan, have you had to do any controller unit tests where you pass in the external project id?20:52
aleejust trying to figure out how to do it ..20:53
dave-mccowanalee yea, i think it have.  let me see if i can find an example.20:55
dave-mccowanalee in test_models.py, WhenCreatingNewProjectQuotas()  I create a project entry and point to it.20:57
aleedave-mccowan, yeah - thats at the model level ..20:57
aleedave-mccowan, I'm thinking about the api level -- ie controllere20:57
aleecontrollers20:58
dave-mccowanalee in tests/api/controllers/test_quotas.py, I was able to fake it.  the in-memory DB used for unit test doesn't enforce foreign keys.20:58
aleeyeah - but how do you pass in the external_project_id in the request?20:59
aleeso for instance .. we end up doing something like this ...20:59
aleeresp = self.app.get('/cas/', self.params)20:59
*** kebray has quit IRC21:00
aleewhat is external_project_id set to in this case -- None?21:00
*** kebray has joined #openstack-barbican21:00
aleeand if so, how can you change it?21:00
rm_workpsst lisaclark21:02
*** lee_calcote has quit IRC21:02
aleedave-mccowan, is it maybe in the extra_environ ?21:04
*** kfarr has joined #openstack-barbican21:04
dave-mccowanalee ah... yea that looks like it.  test_acls.py uses that and sets project_id and user_id.21:05
aleedave-mccowan, looking21:05
aleeah coool21:06
*** david-lyle has joined #openstack-barbican21:06
*** david-lyle has quit IRC21:09
openstackgerritChristopher Solis proposed openstack/barbican: Updates quota values to be read from conf file  https://review.openstack.org/22490321:21
*** jamielennox|away is now known as jamielennox21:24
*** vivek-ebay has joined #openstack-barbican21:28
*** silos has left #openstack-barbican21:28
*** diazjf1 has left #openstack-barbican21:37
*** dave-mccowan has quit IRC21:39
*** vivek-ebay has quit IRC21:41
*** edtubill has quit IRC21:54
*** xaeth is now known as xaeth_afk21:57
*** kfarr has quit IRC22:02
*** kebray has quit IRC22:04
*** dave-mccowan has joined #openstack-barbican22:08
*** dimtruck is now known as zz_dimtruck22:09
*** kebray has joined #openstack-barbican22:13
aleedave-mccowan, ping22:15
dave-mccowanalee pong22:16
aleedave-mccowan, trying to get GET /cas right -- but I think I have the query wrong ... let me post what I have and you can tell me what I need to do instead ..22:16
aleedave-mccowan, http://www.fpaste.org/268694/25282711/22:18
aleedave-mccowan, the part in lines 18 - 26 is wrong22:19
aleedave-mccowan, specifically what I want is select cas where ca.project_id=project_id OR join(pca) where pca.project_id=project_id ..22:21
aleedoe sthat make sense?22:21
dave-mccowanalee i think so.  quick check: are you sure all project_id's are internal project id's?22:24
aleeyup22:24
dave-mccowani'm not sure.  i need to step away for a couple hours.  back later.22:26
aleedave-mccowan, I think I just need a union of two queries22:26
aleeyeah me too22:26
aleedave-mccowan, wonder if the change will get through the gate today :/22:27
*** alee has quit IRC22:36
*** spotz is now known as spotz_zzz22:37
*** pglass has quit IRC22:40
*** vivek-ebay has joined #openstack-barbican22:41
*** vivek-ebay has quit IRC22:46
*** kebray has quit IRC22:52
*** david-lyle has joined #openstack-barbican22:59
*** vivek-ebay has joined #openstack-barbican23:09
*** alee has joined #openstack-barbican23:29
dave-mccowanalee what do you think about doing the join this way? http://paste.openstack.org/show/467024/23:50
*** ccneill has quit IRC23:58

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