Wednesday, 2016-08-31

*** bethwhite_ has joined #storyboard07:08
*** matthewbodkin has joined #storyboard08:01
*** fay has joined #storyboard08:38
*** fay is now known as Guest997208:39
*** Guest9972 is now known as faybrocklebank08:43
*** faybrocklebank has quit IRC08:47
*** fay_ has joined #storyboard09:30
openstackgerritMerged openstack-infra/storyboard-webclient: Re-add note that markdown formatting is supported  https://review.openstack.org/36316209:43
Zaraoh hey09:45
*** bethwhite_ has quit IRC10:31
matthewbodkinAnyone provide any hints about doing the python client and script stuff so that I can create a list of stories and projects etc?10:31
Zarawhat have you tried so far?10:34
matthewbodkina lot of various things, I've been trying to make sense of what the instructions are in client.py10:35
matthewbodkinbut basically all I've done so far is installed the python client10:36
Zaraokay, the first step would be to make a script that imports the storyboard client, using that usage as a guide to the syntax (there are also draft docs in review now). do you have a drafty attempt at a script?10:37
Zara(or if any of that doesn't make sense, I can elaborate)10:37
matthewbodkinyes I do10:38
matthewbodkinI just keep running into errors when trying to import things10:38
Zaraokay, where is the script? and could you paste it?10:39
matthewbodkinI created the script in storyboardclient/v110:40
Zaraokay, that sounds right to me10:41
Zara(well, it's probably possible to run it from a bunch of directories but that one should definitely work)10:42
matthewbodkinhttp://paste.openstack.org/show/565118/10:44
matthewbodkinthat is it's current state, but I've tried an array of things10:44
Zarathat seems like it should be fine; it should also work without the shebang10:45
matthewbodkinhttp://paste.openstack.org/show/565119/ this is the error message I get10:46
matthewbodkinwithout the shebang I get http://paste.openstack.org/show/565120/10:48
Zaraaha, that looks like it depends on pbr and you need to install that. (yeah, without the shebang you'd run it with `python my_script.py`)10:48
Zara(the shebang means you can just run the script directly with ./my_script.py , but it should be runnable either way)10:49
ZaraI vaguely recall this; I can't remember if pbr is part of some other package10:49
matthewbodkinahhh okay10:50
Zaraso my tip there is 'every time you get a message like that, search the thing in case it's something weird, then try installing the thing (using pip)' xD10:54
matthewbodkinhahaha okay I'll git it a go10:54
Zara:D10:55
matthewbodkinokay great so I now think I have pbr installed11:00
Zara\o/11:00
Zaradoes it work11:01
matthewbodkinnope think I need to install more things :)11:02
Zaraah, the installation docs suggest doing `pip install .` in the repo11:02
Zaraso that might be quicker.11:03
matthewbodkincan you link me these docs :)11:09
*** bethwhite__ has joined #storyboard11:10
*** bethwhite__ has quit IRC11:10
Zarayeah, I'll have a look. in the meantime, they're in the repo, in doc/source/installation.rst11:10
*** bethwhite_ has joined #storyboard11:10
ZaraI don't think they don't have a dedicated home online yet11:11
matthewbodkinahh okay :)11:12
Zaraso I'll have to ask infra about getting those up, but everything will be in doc/source in the repo since the online docs would just show that (formatted nicely)11:12
matthewbodkinokay great everything installed and I don't now get an error when I run the script11:16
Zara\o/11:17
Zaraokay, so next you want to make it talk to your storyboard instance, so that's where the usage example in client.py comes in handy11:18
Zarathat example talks to storyboard.openstack.org, but here you want to talk to your own instance, so your api url will be different11:20
matthewbodkinhmmm okay11:23
matthewbodkinnothing happened but also nothing burst into flames so11:24
Zaraheh11:33
Zarayeah, there shouldn't be anything visible yet so that's a good sign11:33
Zaraso next I'd suggest doing something simple like 'get one story and print it' (assuming your instance has one story)11:33
Zaraso you can see if it works11:33
Zara(print it to the screen, that is)11:34
Zaraat this point, the stuff in https://review.openstack.org/#/c/362878/ may be handy11:36
*** openstackgerrit has quit IRC12:34
*** openstackgerrit has joined #storyboard12:34
matthewbodkinhmm those commands don't seem to work12:45
matthewbodkinmeant to send this before we discussed foot remedies.12:45
Zarawhat happens?12:48
matthewbodkinhttp://paste.openstack.org/show/565158/12:50
matthewbodkinthat was with the command to create things12:51
Zaraah, I think you want 0.0.0.0:9000 for your api12:52
Zara(instead of 172.16.20.188:9000)12:53
matthewbodkinsame result12:53
Zaracan you paste your script?12:54
SotKthe api will be running on port 8080 not 9000 by default I think12:54
matthewbodkinhttp://paste.openstack.org/show/565166/12:55
matthewbodkinokay SotK I'll try that12:55
Zaraah, couple of things. firstly your api url still needs the http:// and the /api/v1 at the end, so it can find the api12:55
Zarasecond, 'mytoken' is a placeholder value for your actual access token12:56
SotKah, you can use 9000 if you include the /api part12:56
matthewbodkinah, I had tried it with the `http://` but not `/api/v1`12:56
Zaraso if you want to create a story, you'll need to replace that, but that's why I'd suggest starting with a 'get'12:56
Zarasince that doesn't need authentication12:56
matthewbodkinOkay12:56
Zara(3. if that paste accurately reflects the script, the script will probably error as the commands are partially pasted, so closing brackets and things are missing.)13:00
matthewbodkinscript: http://paste.openstack.org/show/565170/13:01
matthewbodkinresult: http://paste.openstack.org/show/565171/13:01
Zarayay, that looks like it's doing the right thing. it's failing because you've given it a token13:01
Zarabut the token isn't valid13:01
Zaraif you remove the token entirely it should work13:02
Zara(I'll add $ before mytoken in docs so it's clear it's a placeholder, and a bit about how to find it)13:05
Zarazaro: when you're about-- we have the storyboard meeting in a couple of hours, 15:00 UTC, in #openstack-meeting; I thought you wanted to add things to the infra meeting agenda so were going to add them, but now wondering if you thought persia or I intended to add them and they slipped through the cracks.13:10
Zaraso there's a chance to bring things up there if so, or we can add something to the agenda for next week's infra meeting13:10
matthewbodkinyay I think that works13:13
Zara:D13:13
matthewbodkinI stress the 'think' though :)13:16
Zara:P well, what happens?13:17
matthewbodkinwhen I run http://paste.openstack.org/show/565191/ nothing happens13:18
ZaraI think at the moment, it will get the stories but not print them to the screen13:18
matthewbodkinbut if I add `print get_stories` I get `[]`13:18
Zaraah, does your instance have any stories in it yet?13:19
Zaraif not, make a story and see what happens.13:19
matthewbodkinno but I tried to create one and just couldn't13:19
Zaravia the web ui or the python client?13:19
Zarathat looks like it's working so far, anyway since the empty list []  suggests it knows it should get a list, and it's correctly finding that there's nothing in it13:21
matthewbodkinon my instance13:22
matthewbodkinit says13:22
matthewbodkin...13:22
matthewbodkinhttp://paste.openstack.org/show/565195/13:24
ZaraI wonder if your db needs an update13:25
ZaraI think we upgraded while you were on holiday, so the api code may be ahead of the db13:25
matthewbodkinoh13:26
Zarathe command to upgrade might be somewhere here http://docs.openstack.org/infra/storyboard/install/development.html13:27
Zara(my internet's bad so it won't load)13:27
Zaraah yeah, step 713:27
Zaraso that would be the thing to run in whatever tab the api is running13:28
Zaraif your api is on the master branch13:29
Zarahopefully that will solve it, if not you get to say 'I had a spot of trouble upgrading a database schema' and it sounds cool.13:29
matthewbodkinyay13:31
SotKmeeting agenda is here: https://wiki.openstack.org/wiki/Meetings/StoryBoard#Agenda_for_next_meeting14:29
SotKfeel free t add to it14:29
Zarazaro ^14:30
Zarasaid meeting is in 15 minutes, oooooh!14:44
Zara2 mins14:58
*** bethwhite_ has quit IRC15:08
*** bethwhite_ has joined #storyboard15:56
*** matthewbodkin has quit IRC16:00
openstackgerritAdam Coldrick proposed openstack-infra/storyboard: Send notifications to subscribers for worklists  https://review.openstack.org/35473016:08
openstackgerritAdam Coldrick proposed openstack-infra/storyboard: Make it possible to get worklist/board timeline events via the API  https://review.openstack.org/35472916:08
openstackgerritAdam Coldrick proposed openstack-infra/storyboard: Don't allow users to subscribe to private worklists they can't see  https://review.openstack.org/36377616:08
Zarauh oh16:10
Zarathat seems to be my catchphrase today16:11
SotKargh, forgot to add a note in the docstring again16:11
SotKsorry Zara16:11
Zarahaha16:12
Zaraoh well at least I don't have to comment it again this time16:12
Zara+ it might just be common sense16:12
openstackgerritAdam Coldrick proposed openstack-infra/storyboard: Send notifications to subscribers for worklists  https://review.openstack.org/35473016:13
openstackgerritAdam Coldrick proposed openstack-infra/storyboard: Make it possible to get worklist/board timeline events via the API  https://review.openstack.org/35472916:13
Zarazaro: we had some discussion around your question about putting projects on storyboard today in the meeting, http://eavesdrop.openstack.org/irclogs/%23openstack-meeting/%23openstack-meeting.2016-08-31.log.html#t2016-08-31T15:17:2116:18
zarothanks. i have a project that can go over and i don't even care about the bugs :)16:30
Zaralol16:32
*** aswadr_ has joined #storyboard16:39
Zaraoh yeah, should mention in here-- AJaeger just sent a patch to update the publishing jobs for storyboard things so that we can get docs up for our python client https://review.openstack.org/#/c/363795/16:57
Zaraonce we have some nice docs I'll update the index so they can be found.16:57
*** zaro has quit IRC18:26
*** zaro has joined #storyboard18:27
*** aswadr_ has quit IRC19:31
*** alexismonville has joined #storyboard19:59
*** bethwhite_ has quit IRC20:13
*** alexismonville has quit IRC20:20
*** alexismonville has joined #storyboard20:48
*** alexismonville has quit IRC21:09
*** alexismonville has joined #storyboard21:45
*** alexismonville has quit IRC22:08
*** alexismonville has joined #storyboard23:48
*** alexismonville has quit IRC23:53

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