Monday, 2019-06-24

*** mrhillsman has quit IRC00:51
*** whoami-rajat has joined #storyboard03:54
*** udesale has joined #storyboard04:01
*** gouthamr_ has joined #storyboard06:14
*** gouthamr has quit IRC06:15
*** irclogbot_3 has quit IRC06:18
*** irclogbot_0 has joined #storyboard06:20
*** jtomasek has joined #storyboard06:58
*** tosky has joined #storyboard07:14
*** jpich has joined #storyboard08:05
*** whoami-rajat has quit IRC08:48
*** jpich has quit IRC09:00
*** udesale has quit IRC09:02
*** udesale has joined #storyboard09:03
*** udesale has quit IRC09:04
*** jpich has joined #storyboard09:08
*** udesale has joined #storyboard09:08
*** udesale has quit IRC09:13
*** udesale has joined #storyboard09:14
*** udesale has quit IRC09:51
*** udesale has joined #storyboard09:52
*** jpich has quit IRC09:52
*** jpich has joined #storyboard09:52
*** udesale has quit IRC09:56
*** udesale has joined #storyboard09:57
*** jpich has quit IRC09:57
*** jpich has joined #storyboard09:58
*** udesale has quit IRC10:00
*** udesale has joined #storyboard10:00
*** Zara has quit IRC10:44
*** Zara has joined #storyboard11:05
*** udesale has quit IRC11:39
*** whoami-rajat has joined #storyboard12:14
*** zbr is now known as zbr|ruck12:53
*** udesale has joined #storyboard13:58
*** jamesmcarthur has joined #storyboard14:58
*** jpich has quit IRC15:12
*** jpich has joined #storyboard15:13
*** jamesmcarthur has quit IRC15:56
*** jpich has quit IRC16:29
*** diablo_rojo has joined #storyboard16:30
*** whoami-rajat has quit IRC16:44
*** whoami-rajat has joined #storyboard17:02
*** udesale has quit IRC17:07
*** tosky has quit IRC18:41
*** diablo_rojo has quit IRC19:12
*** diablo_rojo has joined #storyboard19:13
*** jtomasek has quit IRC19:22
*** whoami-rajat has quit IRC19:34
*** armstrong has joined #storyboard19:56
armstrongHello19:58
fungihello armstrong!19:59
armstrongis there a way, to extract all project bugs from storyboard19:59
armstrongUsing command line20:00
armstrong?20:01
fungiarmstrong: there is a storyboard python library, though i think it lacks a command-line wrapper: https://opendev.org/opendev/python-storyboardclient20:05
fungiahh, yeah, its documentation confirms as much: https://docs.openstack.org/infra/python-storyboardclient/20:06
fungithere are usage examples for it in the documentation though20:07
fungior you could just query the storyboard rest api directly. that's documented at20:09
fungihttps://docs.openstack.org/infra/storyboard/webapi/v1.html20:09
fungithis method can retrieve tasks by project_id or project_group_id (all projects in a specific project team)20:11
fungihttps://docs.openstack.org/infra/storyboard/webapi/v1.html#get--v1-tasks-search20:11
armstrongOk great!20:12
armstrongI appreciate @fungi20:12
fungiyou need to be aware of storyboard's data model though... a task is associated with one project, but a story can contain multiple tasks for different projects20:12
armstrongOh I see20:13
fungioh, though this method claims to resolve that directly if you need: https://docs.openstack.org/infra/storyboard/webapi/v1.html#get--v1-stories-search20:13
fungilooks like you can use that to query for stories which have at least one task associated with a particular project or project group20:14
fungiso maybe that's sufficient20:15
fungianyway, you can likely do the same with python-storyboardclient20:16
fungiyou'll want to create an access token by going to https://storyboard.openstack.org/#!/profile/tokens and hitting the "issue token" button20:17
fungi(you can also get to that page from the user drop-down at the top-right of the webclient)20:18
armstrongI noticed the API requires a user token, how do I obtain this?20:19
fungithat's what i was just describing20:24
fungiit gets called a few things in different places... access token, authentication token, user token20:24
fungiall the same thing20:25
armstrongOk20:27
*** gouthamr_ is now known as gouthamr21:16
*** ianychoi_ has joined #storyboard21:19
*** ianychoi has quit IRC21:22
*** ianychoi_ has quit IRC21:30
*** ianychoi_ has joined #storyboard21:31
fungiSotK: per discussion in #openstack-infra creation of a new story on storyboard.openstack.org with two or more initial tasks seems to result in "500: POST /api/v1/tasks: This session is in 'inactive' state, due to the SQL transaction being rolled back; no further SQL can be emitted within this transaction."22:06
fungiapparently creating with only one initial task and then adding more tasks later works22:06
fungiis this the same problem https://review.opendev.org/650614 was trying to address?22:07
SotKSounds like a new problem, probably introduced by that patch22:10
fungii wonder if retries don't actually work due to transaction rollback?22:11
SotKYeah that could well be the case22:20
SotKWe should probably just look at rewriting the problematic function I think22:20
SotKI keep meaning to write a script to fill my test instance with a load of stories so I can reproduce it22:20
fungiSotK: one of the outreachy intern candidates mentioned having used http://filldb.info/ to populate a local sb deployment with a configurable amount of appropriate data22:23
fungiyou just dump in the db schema and set a few tuning parameters22:24
SotKOh that looks promising22:24
fungithey claimed it "just worked" for them22:25
SotKThanks, I'll experiment with it when I get the time22:25
fungiSotK: this is the pecan/sqla traceback from the InvalidRequestError: http://paste.openstack.org/show/753329/22:49
fungiit definitely passed right through the function 650614 decorated for retries22:51
fungiso seems like a pretty safe bet22:51
fungisame user is also failing to be able to create a worklist, and this is the corresponding traceback in the apache error log: http://paste.openstack.org/show/753330/23:06
*** ianw_pto is now known as ianw23:08
fungilooks like that may be fallout from the team ownership work?23:08
fungicorresponding line there is "event_team_owners = [{id: teams_api.team_get(id).name}23:08
fungier23:08
fungicorresponding line there is "event_team_owners = [{id: teams_api.team_get(id).name} for id in owners]"23:08
fungiso the teams_api.team_get(id) is apparently returning None and we're failing to check for that before trying to access its name23:09
openstackgerritJeremy Stanley proposed opendev/storyboard master: Guard for nonexistent team in worklist creation  https://review.opendev.org/66724823:21
fungiSotK: ^ that's my best guess23:21
*** cloudnull has joined #storyboard23:26
fungicloudnull here is the one who found our two latest exceptions23:27
cloudnullo/23:27
diablo_rojocloudnull, hola23:27
* diablo_rojo was reading scrollback in infra23:27
fungifor the orm error where it looks like we're retrying in an inactive session because the initial try had its transaction rolled back, i expect we just need to reopen one of the several stories we had about that23:29
fungiwell, about the multiple task creation deadlock which led to adding that retry decorator anyway23:29
diablo_rojofungi, you want to reopen it/make another?23:33
fungii don't want to make yet another story about that problem in case we end up reverting the fix23:35
diablo_rojoThats fair23:35
fungiprobably best we reopen the one whose task was linked from that retry decorator change23:36
diablo_rojoMaybe I'll just add mention to the meeting agenda for tomorrow23:36
diablo_rojoerr wednesday23:36
SotKLooks like we're using the wrong variable in those team-related dictionary comprehensions23:36
SotKShould be team_owners and team_users for the team ones23:37
SotKI don't know how I didn't catch that23:37
SotKI guess my test instance must've had conveniently overlapping IDs every time I tried23:38
diablo_rojoIt's alright. Stuff happens.23:38
fungii've set the task for https://storyboard.openstack.org/#!/story/2000983 back to todo and included the new traceback from the resulting inactive session23:40
fungiSotK: should i just change the variable in 667248?23:41
fungi(and drop the conditionals)23:41
SotKYeah :)23:42
SotKThanks for patching!23:42
* SotK goes to sleep23:43
openstackgerritJeremy Stanley proposed opendev/storyboard master: Correct team iterator lists in worklist creation  https://review.opendev.org/66724823:44
fungithere we go ^23:44

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