Monday, 2014-12-01

*** persia has quit IRC01:41
*** persia has joined #storyboard01:43
*** r1chardj0n3s is now known as r1chardj0n3s_afk05:49
*** jcoufal has joined #storyboard07:24
*** k4n0 has joined #storyboard07:24
*** alexismonville has joined #storyboard07:37
*** mrmartin has joined #storyboard07:39
*** wdutch has joined #storyboard07:52
*** mrmartin has quit IRC08:18
*** mrmartin has joined #storyboard08:20
*** jtomasek has joined #storyboard08:24
*** MaxV has joined #storyboard08:47
*** yolanda has joined #storyboard09:08
openstackgerritMerged openstack-infra/storyboard: Add API call to return task statuses  https://review.openstack.org/13522109:31
*** jedimike has joined #storyboard09:32
openstackgerritMerged openstack-infra/storyboard: Fixed bug in working directories.  https://review.openstack.org/13719709:33
openstackgerritMerged openstack-infra/storyboard-webclient: Story project is defaulted to the current project if available  https://review.openstack.org/13705709:49
*** openstackgerrit has quit IRC09:50
*** openstackgerrit has joined #storyboard09:50
*** CTtpollard has joined #storyboard10:09
CTtpollardhas anyone had chance to look at https://storyboard.openstack.org/#!/story/2000037 ?10:54
*** mase_x200 has joined #storyboard10:57
yolandahi CTtpollard, do you have a change to review?11:11
CTtpollardI'm am in the process of getting it ready to push to gerrit11:14
yolandaCTtpollar, i'll be happy to review it11:18
*** jcoufal has quit IRC11:22
openstackgerritTom Pollard proposed openstack-infra/storyboard-webclient: Change Gruntfile Connect Hostname to 0.0.0.0  https://review.openstack.org/13805312:23
jedimikei need to run the webclient on my local machine, but use the api running on another machine. Where's the config to set that up?12:24
persiajedimike: I edited Gruntfile.js to mirror the production API target with another target, which worked for me.12:29
jedimikepersia, ah, thanks! I'd overlooked that file12:30
persiaI'd be curious *why* you need this.  I was hoping to create a generic deployment for it, but was advised that only I was crazy enough to want to run my API on a server other than my development environment12:31
persiaIf several of us could use this, then adding a generic handler (taking an argument to provide the server) might make sense.12:32
jedimikepersia, there's a bug with timezones, i need to run my api server on a vm with a different timezone to the client12:40
persiaExcellent.  That's the sort of use case that may come up not infrequently.12:40
jedimikehmmm, does anyone know what timezone the production api server is configured with?13:21
persiaI would have expected to find something in http://git.openstack.org/cgit/openstack-infra/system-config , but don't see anything timezone related.13:44
persiaPerhaps set one system to UTC+8 and the other to UTC-8 for a wide difference?  Hong Kong and Portland may be useful cities for this.13:44
*** mase_x200 has quit IRC13:52
jedimikesounds like a plan13:58
jedimikemysql + python + json is a horrible combination for getting timezones right :)13:59
*** mattfarina has joined #storyboard14:00
openstackgerrityolanda.robla proposed openstack-infra/storyboard-webclient: hide events filter if not logged in  https://review.openstack.org/13807714:36
jedimikeso far I've tried the api server and client server in different timezones, and the api server and client server in the same timezone, but the web browser in a different timezone, I can't reproduce this bug14:48
jedimikekrotscheck, when you're around, can you help me with the login/loading bug? I'm struggling to reproduce. I have VMs set up, able to switch them to different timezones to help test locally14:57
krotscheckjedimike: It really is.15:06
jedimikekrotscheck, good morning :)15:07
krotscheckjedimike: Hey there!15:07
krotscheckjedimike: Good afternoon to you :)15:07
CTtpollardmorning krotscheck15:07
krotscheckHey there, CTtpollard.15:07
krotscheckjedimike: Let me see what I can do about the login piece.15:10
jedimikethanks, no matter what I try, it works!15:10
yolandajedimike, works locally for me as well15:11
yolandabut it fails in production every time15:11
jedimikefails for me in production *sometimes*15:13
*** k4n0 has quit IRC15:16
openstackgerritMichael Krotscheck proposed openstack-infra/storyboard-webclient: Eabled custom dev configuration.  https://review.openstack.org/13808715:18
krotscheckpersia: ^^15:18
openstackgerritNikita Konovalov proposed openstack-infra/python-storyboardclient: Initial Cookiecutter Commit.  https://review.openstack.org/13809015:23
openstackgerritNikita Konovalov proposed openstack-infra/python-storyboardclient: Addind apiclient from oslo incubator  https://review.openstack.org/13809115:23
openstackgerritNikita Konovalov proposed openstack-infra/python-storyboardclient: Setting up base classes  https://review.openstack.org/13809215:23
*** jtomasek has quit IRC15:32
*** jtomasek has joined #storyboard15:33
krotscheckjedimike: still poking on your issue. Have to suspend for meeting prep, will pick up again at 9AM PST.15:34
jedimikekrotscheck, thanks! I'll catch you later, I should be around further into my evening today, I really want to get this figured out :)15:35
krotscheckjedimike: Yeah, I do too.15:35
krotscheckStoryboard meeting in #openstack-meeting-316:00
*** mattfari_ has joined #storyboard16:02
*** mattfarina has quit IRC16:02
*** mattfari_ has quit IRC16:04
*** mattfarina has joined #storyboard16:06
krotscheckmbitard16:10
*** alexismonville has quit IRC16:56
krotscheckMeeting Agenda: http://eavesdrop.openstack.org/meetings/storyboard/2014/storyboard.2014-12-01-16.00.html17:01
krotscheckSorry17:01
krotscheckSummary!17:01
krotscheckFor those who weren’t there :)17:01
*** mrmartin has quit IRC17:03
CTtpollardcould some provide me a url to the python client please? :)17:03
rcarrillocruzhttp://git.openstack.org/cgit/openstack-infra/python-storyboardclient17:08
rcarrillocruzhttps://review.openstack.org/#/q/project:openstack-infra/python-storyboardclient,n,z17:08
*** mrmartin has joined #storyboard17:08
rcarrillocruzCTtpollard: ^17:09
CTtpollardty17:09
*** mrmartin has quit IRC17:10
*** mrmartin has joined #storyboard17:11
*** mrmartin has quit IRC17:13
yolandakrotscheck, i left a comment for the add new task bug... i suppose priority and description should not be propagated when a new task is added after another one?17:17
krotscheckPerhaps. Will look into that17:18
* krotscheck needs to go commute, back in 1517:18
krotscheckI mean 4517:18
*** jesusaurus has quit IRC17:21
*** jesusaurus has joined #storyboard17:28
*** MaxV has quit IRC17:31
*** reed has joined #storyboard17:51
*** lifeless has quit IRC18:10
*** lifeless has joined #storyboard18:23
*** MaxV has joined #storyboard18:44
*** jedimike is now known as jedimike|afk18:48
*** MaxV has quit IRC19:17
*** MaxV has joined #storyboard19:24
*** mrmartin has joined #storyboard19:32
*** MaxV has quit IRC19:49
krotscheckjedimike|afk: Ok, I’m going to dump some of the things I’ve discovered.19:52
*** jedimike|afk is now known as jedimike19:52
jedimikekrotscheck, cool19:52
krotscheckFirst of all: To reproduce the login error, what you need to do is login first, then add the following to the end of /src/app/storyboard/module.js -> http://paste.openstack.org/show/142849/19:53
krotscheckThat will invalidate the current access token, and after another refresh will attempt to get a refresh token, which breaks.19:53
krotscheckAfter that happens, storyboard issues _two_ requests to refresh the token. The second one always fails, but that triggers a permission refresh.19:54
krotscheckThe permission refresh forces a user load, but at that point the system thinks it’s logged out, and doesn’t have a user_id in memory.19:55
krotscheckSo it loads /api/v1/users rather than /api/v1/users/ID, and that throws an exception causing the javascript parser to lock the app.19:55
*** MaxV has joined #storyboard19:56
krotscheckI’m still tracking down the timestamp bit, doing that now.19:56
*** jtomasek has quit IRC19:57
jedimikeah, that explains the "array not object" error19:57
krotscheckYep19:57
krotscheckjedimike: Actually, I stand corrected. The timestamp thing I sent you down is a red herring.19:57
* krotscheck feels sheepish19:57
jedimikekrotscheck, that makes me feel better for not being able to reproduce it then :)19:57
krotscheckThe oauth response uses the default http date header, which I don’t think is set by the API, it’s rather set by apache and contains a timezone,19:58
krotscheckSo that should be accurate.19:58
jedimikeyeah, no matter what timezone combinations i used, the expiry date in the db always worked as expected19:58
krotscheckjedimike: I’m really sorry about that :(20:00
jedimikekrotscheck, no, it's fine, I learned about how grunt is configured while looking at it, so time was still well spent!20:01
jedimikeso now i guess we need to figure out how the tokens are becoming invalid, or how they're generated with an invalid state?20:02
krotscheckjedimike: Honestly, I think they’re invalidating as expected, it’s the “Why are we trying to refresh the token twice” question.20:04
krotscheckAnd I think I know why.20:04
jedimikerace condition? two requests from the client at the same time?20:04
krotscheckjedimike: Look at line 53 in refresh_manager.js. Notice something interesting about the function call to getAccessToken()?20:06
* jedimike goes to look20:06
krotscheckSorry20:06
krotscheck6320:06
*** MaxV has quit IRC20:07
jedimike!!nextRefreshPromise ?20:07
openstackjedimike: Error: "!nextRefreshPromise" is not a valid command.20:07
krotscheckjedimike: The fact that there’s no () at the end of it.20:08
krotscheckjedimike: It’s comparing a string to a function20:08
krotscheckThat’s totally my fault :/20:08
*** r1chardj0n3s_afk is now known as r1chardj0n3s20:10
jedimikethat's one of the "here be dragons" bits of javascript, what happens when you treat a function as a boolean without calling it? I wouldn't have been able to say off the tp of my head, I'd have thought it would have been truthy20:11
krotscheckYeah, but we’re using a strict equal20:12
krotscheckso that’s always going to be false.20:13
krotscheckAlso, neither the refreshtokenpromise nor the schedulefortoken are ever cleared.20:13
krotscheckUsually that wouldn’t be a problem, but a long running session will have problems.20:13
jedimikekrotscheck, thing is, nextRefreshPromise starts out as null, so you need to deal with that case too don't you?20:13
krotscheckjedimike: Yep20:13
jedimikehmmm20:14
krotscheckI feel like scheduleForRefresh is doing a lot of things that tryRefresh should be handling.20:15
jedimikeso !!nextRefreshPromise seems correct, that's just checking if you don't have a nextRefreshPromise, it's just the () on getAccessToken that's missing, because if you *don't* have nextRefreshPromise, it gets assigned in that block20:15
jedimikeor am i reading it wrong?20:15
krotscheckThat’s correct.20:16
jedimikecool :)20:18
krotscheckjedimike: I think I have a fix20:31
openstackgerritMichael Krotscheck proposed openstack-infra/storyboard-webclient: Fixed refresh token.  https://review.openstack.org/13817420:33
krotscheckjedimike: ^^20:34
jedimikekrotscheck, looking now20:34
krotscheckOoops20:34
krotscheckneed to fix the module.js20:34
openstackgerritMichael Krotscheck proposed openstack-infra/storyboard-webclient: Fixed refresh token.  https://review.openstack.org/13817420:35
krotscheckMuch better.20:35
jedimikeah you took out the debug before i could leave my comment :)20:37
jedimikekrotscheck, that looks good20:38
krotscheckjedimike: Thanks! I’m off ot lunch, bbiab.20:44
jedimikeoff for the evening, working on the search results spec tomorrow!20:57
*** jedimike has quit IRC20:58
*** MaxV has joined #storyboard21:23
*** jesusaur has joined #storyboard21:29
*** jesusaurus has quit IRC21:31
*** jesusaur is now known as jesusaurus21:31
*** MaxV has quit IRC21:35
*** mrmartin has quit IRC21:35
krotscheckNikitaKonovalov: Comment for you here https://review.openstack.org/#/c/135739/21:38
openstackgerritMerged openstack-infra/storyboard-webclient: Add more details on event dashboard  https://review.openstack.org/13595421:40
openstackgerritMichael Krotscheck proposed openstack-infra/storyboard-webclient: Streamlined task edit form.  https://review.openstack.org/13573921:47
reedI cannot find the UX project in gerrit/projects.yaml.. Is it supposed to be there? https://storyboard.openstack.org/#!/project/70721:56
persiareed: There is no associated git repo22:01
reedpersia, right... so how was that project created in SB?22:01
persiaI always presumed it to have been a manual administrative action.  I could be wrong.22:02
reedah22:02
krotscheckIt’s not.22:03
krotscheckLooks like the jenkins merge that immediately followed my ux patch erased it.22:04
* krotscheck pings infra about this.22:04
*** mattfarina has quit IRC22:06
openstackgerritMerged openstack-infra/storyboard-webclient: Streamlined task edit form.  https://review.openstack.org/13573922:49
reedthanks for investigating krotscheck22:53
krotscheckNo prob reed23:09
*** MaxV has joined #storyboard23:18
*** r1chardj0n3s is now known as r1chardj0n3s_afk23:27
*** MaxV has quit IRC23:29

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