*** bethwhite_ has joined #storyboard | 07:08 | |
*** matthewbodkin has joined #storyboard | 08:01 | |
*** fay has joined #storyboard | 08:38 | |
*** fay is now known as Guest9972 | 08:39 | |
*** Guest9972 is now known as faybrocklebank | 08:43 | |
*** faybrocklebank has quit IRC | 08:47 | |
*** fay_ has joined #storyboard | 09:30 | |
openstackgerrit | Merged openstack-infra/storyboard-webclient: Re-add note that markdown formatting is supported https://review.openstack.org/363162 | 09:43 |
---|---|---|
Zara | oh hey | 09:45 |
*** bethwhite_ has quit IRC | 10:31 | |
matthewbodkin | Anyone 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 |
Zara | what have you tried so far? | 10:34 |
matthewbodkin | a lot of various things, I've been trying to make sense of what the instructions are in client.py | 10:35 |
matthewbodkin | but basically all I've done so far is installed the python client | 10:36 |
Zara | okay, 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 |
matthewbodkin | yes I do | 10:38 |
matthewbodkin | I just keep running into errors when trying to import things | 10:38 |
Zara | okay, where is the script? and could you paste it? | 10:39 |
matthewbodkin | I created the script in storyboardclient/v1 | 10:40 |
Zara | okay, that sounds right to me | 10:41 |
Zara | (well, it's probably possible to run it from a bunch of directories but that one should definitely work) | 10:42 |
matthewbodkin | http://paste.openstack.org/show/565118/ | 10:44 |
matthewbodkin | that is it's current state, but I've tried an array of things | 10:44 |
Zara | that seems like it should be fine; it should also work without the shebang | 10:45 |
matthewbodkin | http://paste.openstack.org/show/565119/ this is the error message I get | 10:46 |
matthewbodkin | without the shebang I get http://paste.openstack.org/show/565120/ | 10:48 |
Zara | aha, 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 |
Zara | I vaguely recall this; I can't remember if pbr is part of some other package | 10:49 |
matthewbodkin | ahhh okay | 10:50 |
Zara | so 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)' xD | 10:54 |
matthewbodkin | hahaha okay I'll git it a go | 10:54 |
Zara | :D | 10:55 |
matthewbodkin | okay great so I now think I have pbr installed | 11:00 |
Zara | \o/ | 11:00 |
Zara | does it work | 11:01 |
matthewbodkin | nope think I need to install more things :) | 11:02 |
Zara | ah, the installation docs suggest doing `pip install .` in the repo | 11:02 |
Zara | so that might be quicker. | 11:03 |
matthewbodkin | can you link me these docs :) | 11:09 |
*** bethwhite__ has joined #storyboard | 11:10 | |
*** bethwhite__ has quit IRC | 11:10 | |
Zara | yeah, I'll have a look. in the meantime, they're in the repo, in doc/source/installation.rst | 11:10 |
*** bethwhite_ has joined #storyboard | 11:10 | |
Zara | I don't think they don't have a dedicated home online yet | 11:11 |
matthewbodkin | ahh okay :) | 11:12 |
Zara | so 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 |
matthewbodkin | okay great everything installed and I don't now get an error when I run the script | 11:16 |
Zara | \o/ | 11:17 |
Zara | okay, so next you want to make it talk to your storyboard instance, so that's where the usage example in client.py comes in handy | 11:18 |
Zara | that example talks to storyboard.openstack.org, but here you want to talk to your own instance, so your api url will be different | 11:20 |
matthewbodkin | hmmm okay | 11:23 |
matthewbodkin | nothing happened but also nothing burst into flames so | 11:24 |
Zara | heh | 11:33 |
Zara | yeah, there shouldn't be anything visible yet so that's a good sign | 11:33 |
Zara | so next I'd suggest doing something simple like 'get one story and print it' (assuming your instance has one story) | 11:33 |
Zara | so you can see if it works | 11:33 |
Zara | (print it to the screen, that is) | 11:34 |
Zara | at this point, the stuff in https://review.openstack.org/#/c/362878/ may be handy | 11:36 |
*** openstackgerrit has quit IRC | 12:34 | |
*** openstackgerrit has joined #storyboard | 12:34 | |
matthewbodkin | hmm those commands don't seem to work | 12:45 |
matthewbodkin | meant to send this before we discussed foot remedies. | 12:45 |
Zara | what happens? | 12:48 |
matthewbodkin | http://paste.openstack.org/show/565158/ | 12:50 |
matthewbodkin | that was with the command to create things | 12:51 |
Zara | ah, I think you want 0.0.0.0:9000 for your api | 12:52 |
Zara | (instead of 172.16.20.188:9000) | 12:53 |
matthewbodkin | same result | 12:53 |
Zara | can you paste your script? | 12:54 |
SotK | the api will be running on port 8080 not 9000 by default I think | 12:54 |
matthewbodkin | http://paste.openstack.org/show/565166/ | 12:55 |
matthewbodkin | okay SotK I'll try that | 12:55 |
Zara | ah, couple of things. firstly your api url still needs the http:// and the /api/v1 at the end, so it can find the api | 12:55 |
Zara | second, 'mytoken' is a placeholder value for your actual access token | 12:56 |
SotK | ah, you can use 9000 if you include the /api part | 12:56 |
matthewbodkin | ah, I had tried it with the `http://` but not `/api/v1` | 12:56 |
Zara | so 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 |
Zara | since that doesn't need authentication | 12:56 |
matthewbodkin | Okay | 12: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 |
matthewbodkin | script: http://paste.openstack.org/show/565170/ | 13:01 |
matthewbodkin | result: http://paste.openstack.org/show/565171/ | 13:01 |
Zara | yay, that looks like it's doing the right thing. it's failing because you've given it a token | 13:01 |
Zara | but the token isn't valid | 13:01 |
Zara | if you remove the token entirely it should work | 13: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 |
Zara | zaro: 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 |
Zara | so there's a chance to bring things up there if so, or we can add something to the agenda for next week's infra meeting | 13:10 |
matthewbodkin | yay I think that works | 13:13 |
Zara | :D | 13:13 |
matthewbodkin | I stress the 'think' though :) | 13:16 |
Zara | :P well, what happens? | 13:17 |
matthewbodkin | when I run http://paste.openstack.org/show/565191/ nothing happens | 13:18 |
Zara | I think at the moment, it will get the stories but not print them to the screen | 13:18 |
matthewbodkin | but if I add `print get_stories` I get `[]` | 13:18 |
Zara | ah, does your instance have any stories in it yet? | 13:19 |
Zara | if not, make a story and see what happens. | 13:19 |
matthewbodkin | no but I tried to create one and just couldn't | 13:19 |
Zara | via the web ui or the python client? | 13:19 |
Zara | that 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 it | 13:21 |
matthewbodkin | on my instance | 13:22 |
matthewbodkin | it says | 13:22 |
matthewbodkin | ... | 13:22 |
matthewbodkin | http://paste.openstack.org/show/565195/ | 13:24 |
Zara | I wonder if your db needs an update | 13:25 |
Zara | I think we upgraded while you were on holiday, so the api code may be ahead of the db | 13:25 |
matthewbodkin | oh | 13:26 |
Zara | the command to upgrade might be somewhere here http://docs.openstack.org/infra/storyboard/install/development.html | 13:27 |
Zara | (my internet's bad so it won't load) | 13:27 |
Zara | ah yeah, step 7 | 13:27 |
Zara | so that would be the thing to run in whatever tab the api is running | 13:28 |
Zara | if your api is on the master branch | 13:29 |
Zara | hopefully 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 |
matthewbodkin | yay | 13:31 |
SotK | meeting agenda is here: https://wiki.openstack.org/wiki/Meetings/StoryBoard#Agenda_for_next_meeting | 14:29 |
SotK | feel free t add to it | 14:29 |
Zara | zaro ^ | 14:30 |
Zara | said meeting is in 15 minutes, oooooh! | 14:44 |
Zara | 2 mins | 14:58 |
*** bethwhite_ has quit IRC | 15:08 | |
*** bethwhite_ has joined #storyboard | 15:56 | |
*** matthewbodkin has quit IRC | 16:00 | |
openstackgerrit | Adam Coldrick proposed openstack-infra/storyboard: Send notifications to subscribers for worklists https://review.openstack.org/354730 | 16:08 |
openstackgerrit | Adam Coldrick proposed openstack-infra/storyboard: Make it possible to get worklist/board timeline events via the API https://review.openstack.org/354729 | 16:08 |
openstackgerrit | Adam Coldrick proposed openstack-infra/storyboard: Don't allow users to subscribe to private worklists they can't see https://review.openstack.org/363776 | 16:08 |
Zara | uh oh | 16:10 |
Zara | that seems to be my catchphrase today | 16:11 |
SotK | argh, forgot to add a note in the docstring again | 16:11 |
SotK | sorry Zara | 16:11 |
Zara | haha | 16:12 |
Zara | oh well at least I don't have to comment it again this time | 16:12 |
Zara | + it might just be common sense | 16:12 |
openstackgerrit | Adam Coldrick proposed openstack-infra/storyboard: Send notifications to subscribers for worklists https://review.openstack.org/354730 | 16:13 |
openstackgerrit | Adam Coldrick proposed openstack-infra/storyboard: Make it possible to get worklist/board timeline events via the API https://review.openstack.org/354729 | 16:13 |
Zara | zaro: 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:21 | 16:18 |
zaro | thanks. i have a project that can go over and i don't even care about the bugs :) | 16:30 |
Zara | lol | 16:32 |
*** aswadr_ has joined #storyboard | 16:39 | |
Zara | oh 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 |
Zara | once we have some nice docs I'll update the index so they can be found. | 16:57 |
*** zaro has quit IRC | 18:26 | |
*** zaro has joined #storyboard | 18:27 | |
*** aswadr_ has quit IRC | 19:31 | |
*** alexismonville has joined #storyboard | 19:59 | |
*** bethwhite_ has quit IRC | 20:13 | |
*** alexismonville has quit IRC | 20:20 | |
*** alexismonville has joined #storyboard | 20:48 | |
*** alexismonville has quit IRC | 21:09 | |
*** alexismonville has joined #storyboard | 21:45 | |
*** alexismonville has quit IRC | 22:08 | |
*** alexismonville has joined #storyboard | 23:48 | |
*** alexismonville has quit IRC | 23:53 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!