Monday, 2015-02-09

*** wuhg has joined #storyboard01:49
*** miqui has quit IRC03:41
*** coolsvap_ is now known as coolsvap04:02
*** coolsvap is now known as coolsvap_04:55
*** coolsvap_ is now known as coolsvap04:56
*** alexismonville has joined #storyboard06:37
*** alexismonville has quit IRC07:03
*** alexismonville has joined #storyboard07:19
*** jcoufal has joined #storyboard08:40
openstackgerritAleksey Ripinen proposed openstack-infra/storyboard: Added new paginate query  https://review.openstack.org/15323108:41
*** mrmartin has joined #storyboard08:44
openstackgerritAleksey Ripinen proposed openstack-infra/storyboard: Added controller for refresh tokens  https://review.openstack.org/15359108:56
*** MaxV has joined #storyboard09:16
*** jedimike has joined #storyboard09:42
*** CTtpollard has joined #storyboard09:49
openstackgerritNikita Konovalov proposed openstack-infra/storyboard: Fix exception in stories db api  https://review.openstack.org/15396809:57
openstackgerritNikita Konovalov proposed openstack-infra/storyboard: Fix exception in stories db api  https://review.openstack.org/15396810:06
*** ssam2 has joined #storyboard10:08
openstackgerritNikita Konovalov proposed openstack-infra/storyboard: Added controller for refresh tokens  https://review.openstack.org/15359110:17
*** alexismonville has quit IRC10:21
*** alexismonville has joined #storyboard10:21
openstackgerritNikita Konovalov proposed openstack-infra/storyboard: Revert "Adding pretty-tox"  https://review.openstack.org/15397110:21
openstackgerritNikita Konovalov proposed openstack-infra/storyboard: Revert "Adding pretty-tox"  https://review.openstack.org/15397110:23
openstackgerritNikita Konovalov proposed openstack-infra/storyboard: Added controller for refresh tokens  https://review.openstack.org/15359110:24
openstackgerritMerged openstack-infra/storyboard: Added new way to filter stories by tags  https://review.openstack.org/15295110:28
rcarrillocruzNikitaKonovalov , yolanda: are you cool approving https://review.openstack.org/#/c/151645/ ?10:32
rcarrillocruzi need that change to continue doing streaming stuff...10:32
yolandaok, taking a look10:32
NikitaKonovalovrcarrillocruz: done10:33
yolandaoh, faster than me :)10:34
rcarrillocruzexcellent, thx folks :-)10:38
openstackgerritNikita Konovalov proposed openstack-infra/storyboard: Added controller for refresh tokens  https://review.openstack.org/15359110:45
ttxyolanda: I +2ed the chain starting at https://review.openstack.org/#/c/153409/2 -- if you can rereview it that would be great, to clear some of the long patch series10:51
yolandasure10:51
ttxYou could even bypass my -1 from https://review.openstack.org/#/c/152253/ and we can fix that typo later10:52
*** ssam2 has quit IRC10:52
yolandai can amend this one, ttx10:53
yolandaand we have Nikita around as well so we could push it fast10:53
ttxyolanda: ok, hopefully that won't lose votes on the rest of the chain10:54
ttxyolanda: let me know when/where to reapply +2 if necessary10:55
yolandaok, will ping you10:55
openstackgerritMerged openstack-infra/storyboard: OAuth checks for remote data access permissions.  https://review.openstack.org/15340910:56
openstackgerrityolanda.robla proposed openstack-infra/storyboard: Explicit Hook Priorities  https://review.openstack.org/15225310:57
yolandahere it goes, let's wait for tests to pass10:58
ttxok, so that debased https://review.openstack.org/#/c/151645/ and the rest of the patch chain10:59
ttxit will need to be rebased11:00
ttxyolanda: you can still review/approve https://review.openstack.org/#/c/153674/ & https://review.openstack.org/#/c/153675/ & https://review.openstack.org/#/c/153710/ & https://review.openstack.org/#/c/153715/11:01
ttxthat would be the patch chain before 15225311:02
yolandaMichael is a test machine :)11:03
openstackgerritMerged openstack-infra/storyboard: OAuth Validate Token Grant Types  https://review.openstack.org/15367411:06
openstackgerritMerged openstack-infra/storyboard: OAuth tests for invalid authorization codes.  https://review.openstack.org/15367511:07
yolandattx, tons of changes being merged, can you take a look after that, to check if everything works fine?11:11
yolandaon-call this week, so no much free time11:11
yolandareally no free time11:11
ttxyolanda: sure! I think the rest of the patch chain will need a rebase, I'll see with michael11:12
yolandamy change failed nearly inmediately, looked as a false positive, i rechecked11:12
openstackgerritMerged openstack-infra/storyboard: OAuth delete refresh tokens when access tokens deleted.  https://review.openstack.org/15371011:12
ttxlooks like a pretty-tox fail11:13
openstackgerritMerged openstack-infra/storyboard: OAuth now validates client ID against a configured list.  https://review.openstack.org/15371511:14
yolandamm, i remember some comment from jeblair asking to remove pretty-tox?11:20
rcarrillocruzuh oh11:22
rcarrillocruzi think https://review.openstack.org/#/c/151645/ is not merging because it depends on a change that was set outdated11:22
rcarrillocruzah nm11:23
rcarrillocruzit's one of the changes from the patch chain you were talking about11:23
rcarrillocruzi'll await11:24
ttxyolanda: might be some stuck node, because we managed to merge stuff11:24
ttxyolanda: your rename was incomplete, just commented11:26
yolandaok, looking11:26
ttxtaht might be what makes tests fail, but then the message is pretty misleading11:26
* ttx lunches11:27
*** ssam2 has joined #storyboard11:28
yolandattx, you are totally right, correcting it11:28
openstackgerrityolanda.robla proposed openstack-infra/storyboard: Explicit Hook Priorities  https://review.openstack.org/15225311:30
openstackgerritAleksey Ripinen proposed openstack-infra/storyboard: Fix method is_valid in access_token api  https://review.openstack.org/15399711:44
yolandattx, change passed now, can you +2 it?12:05
*** alexismonville has quit IRC12:26
openstackgerritMerged openstack-infra/storyboard: Explicit Hook Priorities  https://review.openstack.org/15225312:30
*** alexismonville has joined #storyboard12:32
rcarrillocruznice12:32
rcarrillocruzso after the explicit hooks merged12:32
rcarrillocruznow https://review.openstack.org/#/c/151645/ is unmergeable :S12:32
rcarrillocruzi'll fetch the change and figure out the rebase12:36
openstackgerritAleksey Ripinen proposed openstack-infra/storyboard: Fix method checks.superuser  https://review.openstack.org/15401312:41
*** alexismonville has quit IRC12:48
*** alexismonville has joined #storyboard12:51
openstackgerritAleksey Ripinen proposed openstack-infra/storyboard: Added controller for refresh tokens  https://review.openstack.org/15359112:56
ttxrcarrillocruz: you actually need to rebase the whole patchseries. Otherwise you're just propagating the conflict one step higher in the chain12:56
* ttx has a try12:58
openstackgerritThierry Carrez proposed openstack-infra/storyboard: Email Templating Engine  https://review.openstack.org/14773413:02
openstackgerritThierry Carrez proposed openstack-infra/storyboard: API events now include resource before/after state.  https://review.openstack.org/15231813:02
openstackgerritThierry Carrez proposed openstack-infra/storyboard: Email configuration.  https://review.openstack.org/15194613:02
openstackgerritThierry Carrez proposed openstack-infra/storyboard: Pass the old entity values in the NotificationHook  https://review.openstack.org/15164513:02
rcarrillocruzttx saw your new patchset, thx13:07
ttxI rebased up to the first patch without approvals13:08
openstackgerritMerged openstack-infra/storyboard: Pass the old entity values in the NotificationHook  https://review.openstack.org/15164513:25
openstackgerritMerged openstack-infra/storyboard: API events now include resource before/after state.  https://review.openstack.org/15231813:25
openstackgerritMerged openstack-infra/storyboard: Email Templating Engine  https://review.openstack.org/14773413:26
openstackgerritMerged openstack-infra/storyboard: Email configuration.  https://review.openstack.org/15194613:29
mrmartinhi13:46
mrmartinis it possible, that I can't create a new story?13:46
mrmartinI get back a HTTP 500 code.13:47
mrmartinyolanda are you here?13:52
*** alexismonville has quit IRC13:52
yolandamm, crashes?13:52
yolandathat was my fear13:52
yolandataking a look13:52
mrmartinyeap, I cannot even login in a different browser window13:52
yolandathere have been some merges today, let me take a look13:53
yolandado you see this one? https://review.hpcloud.net/#/c/51853/13:53
yolandaoops13:53
yolanda500: POST /api/v1/openid/token?grant_type=refresh_token&refresh_token=MjpK1jKglvFNVFXrJcDv3P07ruDcZI: No error details available.13:53
mrmartinsimilar13:54
yolandaok, going to debug locally13:54
mrmartinbut I get back 500 too when I tried to post a story with a logged-in user.13:54
yolandathere have been some merges related with oauth, must be one of them13:56
*** alexismonville has joined #storyboard13:56
rcarrillocruzyah, i'm getting a 500 as well from refresh_token13:58
yolandaahh, i want time for the integration tests.13:58
yolandai wish days were longer13:58
mrmartinwe all wish the same :)13:59
rcarrillocruzuh14:00
rcarrillocruzi can't even login14:00
rcarrillocruzlet me check on my dev SB instance14:00
*** jcoufal has quit IRC14:02
*** jcoufal has joined #storyboard14:02
yolandamm, something like invalid_grant14:03
rcarrillocruzyolanda, are you core on the SB instance?14:09
rcarrillocruzi can login on my SB instance, maybe a commit that breaks it that I don't have it locally14:09
yolandarcarrillocruz, i'm not root on that instance, no14:09
yolandabut if you sync latest changes it fails14:10
yolandalocally14:10
yolandait's something related to the oauth_validator changes14:14
yolandaok, got it14:15
yolandaexpiration date issues14:15
yolandagoing to revert that change14:16
rcarrillocruzdifferent problem on my side14:19
rcarrillocruzi get unauthorized_client, which seems to be happening due to "OAuth now validates client ID against a configured list."14:20
yolandamm, worked for me when i commented that one14:20
yolandahave you upgraded schema as well?14:20
openstackgerrityolanda.robla proposed openstack-infra/storyboard: Revert "OAuth tests for invalid authorization codes."  https://review.openstack.org/15405614:21
yolandaok, i'm reverting this one14:23
yolandafailing for me, maybe because of timezones14:23
*** wuhg has quit IRC14:29
openstackgerrityolanda.robla proposed openstack-infra/storyboard: Revert "OAuth tests for invalid authorization codes."  https://review.openstack.org/15405614:32
yolandahere, let's wait for it to pass and then we need an urgent approval14:32
*** jcoufal has quit IRC14:34
*** jcoufal has joined #storyboard14:34
*** reed has joined #storyboard14:42
openstackgerritNikita Konovalov proposed openstack-infra/storyboard: Fix exception in stories db api  https://review.openstack.org/15396814:46
yolandamm, this patch doesn't apply cleanly14:50
yolandai'll create a new one14:50
openstackgerrityolanda.robla proposed openstack-infra/storyboard: Temporarily bypass expiration date check  https://review.openstack.org/15406915:09
rcarrillocruzyolanda: i find the problem for the 50015:20
rcarrillocruzthe map_resource function in NotificationHook was renamed15:21
yolandamm, so that's another issue...15:21
rcarrillocruzto get_original_resource15:21
rcarrillocruzbut in the same class we still call it to old name map_resource15:21
rcarrillocruzi'll push a change15:21
yolandak, thx15:22
openstackgerritRicardo Carrillo Cruz proposed openstack-infra/storyboard: Rename map_resource call to get_original_resource  https://review.openstack.org/15407715:24
openstackgerrityolanda.robla proposed openstack-infra/storyboard: Temporarily bypass expiration date check  https://review.openstack.org/15406915:26
*** jcoufal_ has joined #storyboard15:26
krotscheckYou’d figure that adding all those tests would result in, you know, things NOT breaking with auth.15:26
* krotscheck peers at those dates.15:28
rcarrillocruzdoh15:29
*** jcoufal has quit IRC15:29
rcarrillocruzthe map_resource is still referenced in tests15:29
rcarrillocruzi'm prepping another patchset15:29
krotscheckWait a sec. The tests let it _pass_?15:30
krotscheckThat doesn’t sound like a very useful test.15:30
rcarrillocruzminor things , krotschec, there are mentions to map_resource in the tests, but just in docstrings15:32
rcarrillocruzkrotscheck: ^15:32
krotscheckrcarrillocruz: Oh, gotcha.15:32
krotscheckClearly, we need more test.15:33
krotscheckIt’s someone else’s job to write tests this week, I’m all tested out.15:33
krotscheck:D15:34
yolandahi krotscheck15:34
yolandabusy monday as always15:35
krotscheckhi hi15:35
krotscheckIndeed15:35
yolandaso the expiration date check fails, i imagine that due to timezones15:35
yolandai'm trying to bypass that check15:35
yolandatill we can look at it properly15:35
krotscheckProbably. Timezones are a rather large PITA.15:35
krotscheckEspecially since mysql may not store in UTC.15:36
yolandathis is what i'm trying to push https://review.openstack.org/#/c/154069/15:36
krotscheckYeah, still waiting on jenkins15:36
yolandaso i tested locally ... expiration date of my token was few hours ago than my local time15:36
krotscheckYou’re UTC -1, right?15:37
rcarrillocruzin other news15:38
rcarrillocruzi get alembic errors when running tox15:38
rcarrillocruzkrotscheck: i'm NOT oncall this week, so let me know where you left off in terms of tests or what's needed to get done, i can tackle for real15:38
krotscheckrcarrillocruz: When I’ve gotten alembic errors, it usually means that the migration pyc files in storyboard/db/migration/migrations/somethingsomething no longer match what’s in the actual code.15:39
krotscheckrcarrillocruz: Notifications need tests.15:40
rcarrillocruzk15:40
krotscheckrcarrillocruz: In fact15:40
krotscheckrcarrillocruz: Here are 800 lines of subscription tests I wrote :)15:40
krotscheckhttps://review.openstack.org/#/c/143744/5/storyboard/tests/worker/task/test_subscription.py15:40
krotscheckThe event constants are NOT the same.15:40
krotscheckAnd this particular event handling doesn’t use timeline_events anymore, it now uses the actual CRUD events from the resources.15:41
krotscheckSo it might need to be adapted a bit.15:41
krotscheckBut if you want to write some tests around the hooks- those are more critical because if they break the API goes down.15:41
*** jcoufal_ has quit IRC15:43
*** jcoufal has joined #storyboard15:44
rcarrillocruzhmm15:46
rcarrillocruzyou getting this failure on tests?15:46
rcarrillocruzCommandError: Multiple head revisions are present for given argument 'head'15:46
yolandamm, not here15:46
rcarrillocruzthat by running 'python -m unittest2 storyboard/tests/notifications/test_notification_hook.py15:46
krotscheckNot here either.15:47
krotscheckTry rm -rf storyboard/db/migration/alembic_migrations/versions/*.pyc15:47
rcarrillocruzk, something hosed on my env15:48
rcarrillocruzlet's merge https://review.openstack.org/#/c/154077/15:48
rcarrillocruzgot +115:48
rcarrillocruzwe can push later to fix the docstrings, right now that causes a nice 50015:48
rcarrillocruzi had some migration cruft indeed:15:50
rcarrillocruzubuntu@storyboard:~/storyboard/storyboard/db/migration/alembic_migrations/versions$ rm 585eb4ff8bca_.py15:50
rcarrillocruzubuntu@storyboard:~/storyboard/storyboard/db/migration/alembic_migrations/versions$ rm 585eb4ff8bca_.pyc15:50
rcarrillocruzthat fixed it15:50
rcarrillocruznow running tests with tox15:50
yolandakrotscheck, change passed15:51
yolandawe shal approve it to have storyboard working15:51
krotscheckyolanda: aight15:53
krotscheckAny last minute items for the agenda?15:57
yolandaSB is broken?15:57
yolandalooks as the monday topic :)15:57
krotscheck:D15:58
krotscheckYeah, well, at least we’re slowly learning.15:58
krotscheckStoryboard meeting in #openstack-meeting-316:00
openstackgerritMerged openstack-infra/storyboard: Rename map_resource call to get_original_resource  https://review.openstack.org/15407716:08
openstackgerritMerged openstack-infra/storyboard: Temporarily bypass expiration date check  https://review.openstack.org/15406916:13
*** coolsvap is now known as coolsvap_16:15
mrmartinsb works for me now, thanks16:19
yolandamonday hotfix!16:22
rcarrillocruzheh, yeah, i'm seeing some other stuff breaking with notificationhook code :-), i'll dive into that shortly...16:25
rcarrillocruzgetting this whne updating a task status on SB:16:29
rcarrillocruzhttp://paste.openstack.org/show/170041/16:29
rcarrillocruzi'll look when meeting ends16:30
openstackgerritMerged openstack-infra/storyboard: Prevent duplicate register_options call  https://review.openstack.org/15163016:33
ttxkrotscheck: also there have been discussions about dropping pre-milestone targeting in OpenStack release processes, which would match nicely with our usage of milestone (i.e. we track the milestone fixes landed, rather than the promise that it will land in a given milestone)17:01
* ttx likes being on both ends of the spectrum17:01
krotscheckOh, nice.17:01
krotscheckThat’ll simplify things for us too :)17:01
ttxPeople are actually very bad at predicting when a change will land.17:02
ttxso that could all be replaced with the task list concept17:02
*** coolsvap_ is now known as coolsvap17:02
ttxif there are a list of tasks you want to track completion off for a given deadline, you can just create another task list17:02
ttxand promote it publicly17:03
*** MaxV has quit IRC17:03
ttxI uncovered the tension with LP using milestones both for pre-milestone promises and post-milestones completed-work in https://wiki.openstack.org/wiki/StoryBoard/Vision already17:04
yolandathey had a good tool, used upstream, with launchpad17:06
yolandait had problems but with proper work and enabling needed functionality, they had it done17:06
* krotscheck wanders off to commute to the office.17:08
krotscheckbbiab17:08
openstackgerritRicardo Carrillo Cruz proposed openstack-infra/storyboard: Jsonify the result from get_original_resource  https://review.openstack.org/15413417:24
*** jcoufal has quit IRC17:57
*** cawil has joined #storyboard18:07
openstackgerritMichael Krotscheck proposed openstack-infra/storyboard: Email base plugin.  https://review.openstack.org/15194818:15
openstackgerritMichael Krotscheck proposed openstack-infra/storyboard: Email SMTP Sender  https://review.openstack.org/14979218:15
openstackgerritMichael Krotscheck proposed openstack-infra/storyboard: [WIP] Email Send Cron Worker  https://review.openstack.org/15141618:15
openstackgerritMichael Krotscheck proposed openstack-infra/storyboard: Email Working Directory Utility Method  https://review.openstack.org/15194718:15
openstackgerritMichael Krotscheck proposed openstack-infra/storyboard: Email Outbox  https://review.openstack.org/15141318:15
*** coolsvap is now known as coolsvap_18:45
openstackgerritMichael Krotscheck proposed openstack-infra/storyboard: Jsonify the result from get_original_resource  https://review.openstack.org/15413418:45
*** coolsvap_ is now known as coolsvap18:46
*** coolsvap is now known as coolsvap_18:47
openstackgerritMerged openstack-infra/storyboard: Fix method checks.superuser  https://review.openstack.org/15401318:51
openstackgerritMerged openstack-infra/storyboard: Fix method is_valid in access_token api  https://review.openstack.org/15399718:52
*** ssam2 has quit IRC19:09
*** openstackgerrit has quit IRC19:41
*** openstackgerrit has joined #storyboard19:41
*** mrmartin has quit IRC20:00
*** alexismonville has quit IRC20:28
rcarrillocruzwootz20:30
rcarrillocruzthx krotscheck, i throwed that jsonify change before leaving and saw you pushed a patchset to fix it :-)20:31
krotscheckrcarrillocruz: No worries :)20:31
*** jedimike has quit IRC20:39
*** reed has quit IRC23:00
*** MarkAtwood has joined #storyboard23:41

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