*** b3rnard0 is now known as b3rnard0_away | 03:06 | |
*** mrmartin has joined #storyboard | 05:37 | |
*** mrmartin has quit IRC | 05:44 | |
*** mrmartin has joined #storyboard | 05:48 | |
*** mrmartin has quit IRC | 05:48 | |
*** mrmartin has joined #storyboard | 08:06 | |
*** mrmartin has quit IRC | 09:45 | |
Zara | morning, storyboard! | 10:11 |
---|---|---|
*** mrmartin has joined #storyboard | 11:16 | |
Zara | quiet day, had to look at some other stuff this morning, should now be back to sb again. | 11:35 |
*** faybrocklebank has quit IRC | 12:01 | |
*** fay_ has joined #storyboard | 12:02 | |
*** mrmartin has quit IRC | 12:02 | |
Zara | I should set my desktop background to the gerrit stream events, so I look like a super hacker | 12:26 |
* Zara goes back to the python client | 13:07 | |
*** wendar_ has joined #storyboard | 13:14 | |
*** wendar has quit IRC | 13:21 | |
*** b3rnard0_away has quit IRC | 13:21 | |
*** pleia2 has quit IRC | 13:21 | |
*** tlbr has quit IRC | 13:21 | |
*** SotK has quit IRC | 13:21 | |
*** persia has quit IRC | 13:21 | |
*** Zara has quit IRC | 13:21 | |
*** dabukalam has quit IRC | 13:21 | |
*** jjardon has quit IRC | 13:21 | |
*** yarkot has quit IRC | 13:21 | |
*** jtomasek has quit IRC | 13:21 | |
*** krotscheck has quit IRC | 13:21 | |
*** jmccrory has quit IRC | 13:21 | |
*** persia_ has quit IRC | 13:21 | |
*** openstackgerrit has quit IRC | 13:21 | |
*** perryl has quit IRC | 13:21 | |
*** alexismonville has quit IRC | 13:21 | |
*** pedroalvarez has quit IRC | 13:21 | |
*** ChanServ has quit IRC | 13:21 | |
*** lifeless has quit IRC | 13:22 | |
*** ttx has quit IRC | 13:22 | |
*** jasondotstar has quit IRC | 13:22 | |
*** anteaya has quit IRC | 13:22 | |
*** gothicmindfood has quit IRC | 13:22 | |
*** NikitaKonovalov has quit IRC | 13:22 | |
*** openstackgerrit has joined #storyboard | 13:24 | |
*** SotK has joined #storyboard | 13:24 | |
*** jtomasek has joined #storyboard | 13:24 | |
*** alexismonville has joined #storyboard | 13:24 | |
*** perryl has joined #storyboard | 13:24 | |
*** krotscheck has joined #storyboard | 13:24 | |
*** pleia2 has joined #storyboard | 13:24 | |
*** jasondotstar has joined #storyboard | 13:24 | |
*** lifeless has joined #storyboard | 13:24 | |
*** tlbr has joined #storyboard | 13:24 | |
*** pedroalvarez has joined #storyboard | 13:24 | |
*** persia has joined #storyboard | 13:24 | |
*** jjardon has joined #storyboard | 13:24 | |
*** yarkot has joined #storyboard | 13:24 | |
*** Zara has joined #storyboard | 13:24 | |
*** jmccrory has joined #storyboard | 13:24 | |
*** anteaya has joined #storyboard | 13:24 | |
*** dabukalam has joined #storyboard | 13:24 | |
*** persia_ has joined #storyboard | 13:24 | |
*** NikitaKonovalov has joined #storyboard | 13:24 | |
*** ttx has joined #storyboard | 13:24 | |
*** gothicmindfood has joined #storyboard | 13:24 | |
*** ChanServ has joined #storyboard | 13:24 | |
*** wolfe.freenode.net sets mode: +o ChanServ | 13:24 | |
*** openstackstatus has quit IRC | 13:24 | |
*** openstackstatus has joined #storyboard | 13:28 | |
*** ChanServ sets mode: +v openstackstatus | 13:28 | |
*** b3rnard0- has joined #storyboard | 13:36 | |
Zara | okay, so users have an is_active field, but afaict it's not used. was it something that was planned but never implemented? deprecated? | 14:44 |
pedroalvarez | Zara: hmm.. I think it's being used | 14:45 |
pedroalvarez | if you go to the admin menu, and edit an user, there is a check-box called "enable login" | 14:45 |
pedroalvarez | that might be it's use? | 14:45 |
pedroalvarez | its* | 14:46 |
Zara | huh, I wondered because it's not showing up on the requests I'm making with the python-storyboardclient (after adding it to users.py), but might be a case of lookign at the wrong user | 14:46 |
Zara | created_at and updated_at seem to always be None for users, though maybe it's possible to update them and it's just that nobody has | 14:49 |
Zara | (or I haven't found the ones that have updated) | 14:50 |
Zara | last_login seems to work, anyway | 14:51 |
Zara | good, the python client won't let me list anybody's user tokens | 14:52 |
Zara | ahh, there's also an enable_login field | 14:54 |
Zara | so I think that's different to is_active | 14:54 |
* Zara tries to hook it up to her storyboard instance to check the superuser stuff | 14:57 | |
Zara | requests.exceptions.SSLError: [Errno 1] _ssl.c:510: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol | 14:57 |
Zara | hm. | 14:57 |
Zara | 127.0.0.1 - - [05/Apr/2016 14:57:00] code 400, message Bad request syntax ('\x16\x03\x01\x01') | 15:00 |
Zara | 127.0.0.1 - - [05/Apr/2016 14:57:00] "" 400 - | 15:00 |
Zara | I got it to do that! :D | 15:00 |
Zara | requests.exceptions.SSLError: [Errno 8] _ssl.c:510: EOF occurred in violation of protocol | 15:01 |
Zara | so many errors are possible | 15:02 |
Zara | yay, got it working | 15:05 |
Zara | turns out you should probably look at the url the webclient's already using for your instance, and base your request url on that | 15:05 |
Zara | who knew | 15:05 |
Zara | hahahahaha, I forgot how I named one of the tasks in my instance... | 15:08 |
Zara | <Task assignee_id=None, branch_id=2, created_at=2015-09-22T08:45:42+00:00, creator_id=1, id=30, link=None, milestone_id=None, priority=medium, project_id=2, status=todo, story_id=26, title=heyayayayayaya heyayayayayaya heyayayayayaya heyayayayayaya heyayayayayaya heyayayayayaya heyayayayayaya heyayayayayaya heyayayayayaya heyayayayayaya heyayayayayaya heyayayayayaya heyayayayayaya heyayayayayaya heyayayay | 15:08 |
Zara | ayaya heyayayayayaya heyayayayayaya, updated_at=None> | 15:08 |
Zara | so I guess the next thing to work out is how to format a 'put' with the things I want... | 15:10 |
Zara | and similar for posts... | 15:13 |
*** b3rnard0- is now known as b3rnard0 | 15:53 | |
krotscheck | Urgh burked registry | 15:55 |
*** fay_ has quit IRC | 15:56 | |
Zara | eep | 15:57 |
Zara | POSTs work, anyway ¬_¬ | 16:00 |
Zara | er, wrong emoticon | 16:00 |
Zara | B) | 16:00 |
Zara | like how did I even do that | 16:01 |
Zara | anyway. | 16:01 |
Zara | okay, I don't really know where to start with a PUT | 16:03 |
Zara | it's saying ValueError: No JSON object could be decoded | 16:12 |
Zara | so I would guess that after the task id, I need valid json with the fields I want to change | 16:12 |
persia | Doesn't that get rendered automatically by the client? I'm imagining a program flow wherein one authenticates, instantiates a variable with a GET, changes some property of it, and then uses that instantiated variable to populate the PUT. | 16:21 |
Zara | I might be currently trying to do it in some weird way | 16:23 |
Zara | storyboard.tasks.put(id, SOME_OTHER_MYSTERY_THING_I_DON'T_KNOW_YET) | 16:24 |
*** NikitaKonovalov_ has joined #storyboard | 16:39 | |
Zara | oh my, what wonderful timing! | 16:41 |
Zara | NikitaKonovalov_: hi! :) I was wondering how to do a put for a task via the python-storyboardclient (plan is to hook it up to gerrit, down the line). I don't know the syntax for it | 16:42 |
*** NikitaKonovalov_ has quit IRC | 16:44 | |
Zara | ;_; | 16:44 |
*** NikitaKonovalov_ has joined #storyboard | 16:44 | |
*** wendar_ is now known as wendar | 16:45 | |
*** NikitaKonovalov_ has quit IRC | 16:51 | |
Zara | :D https://github.com/openstack-infra/storyboard/blob/428bd522f20951e0f2a5e9b6b12fe4561e213e97/storyboard/api/v1/wmodels.py#L92 | 16:58 |
pedroalvarez | :) | 17:06 |
Zara | I still have no idea how to do this put, mind. | 17:08 |
Zara | this kind of thing works for a post: testTask = storyboard.tasks.create(title="hiiiiiiiiii", project_id=2, story_id=3) | 17:11 |
Zara | but I tried swapping 'create' for 'put' and adding the task id; it wasn't having it | 17:11 |
pedroalvarez | hm... try passing json in "SOME_OTHER_MYSTERY_THING_I_DON'T_KNOW_YET" | 17:12 |
Zara | I tried it earlier and it said it couldn't handle one keyword argument and one not-keyword-argument | 17:13 |
Zara | I'll try to get the exact error again... | 17:13 |
pedroalvarez | so if you: | 17:14 |
pedroalvarez | import json\n dict = {}\n dict['foo'] = "bla blabla"\n json_thing = json.dumps(dict) | 17:14 |
Zara | ahh, well I don't think I'm even importing json yet | 17:15 |
Zara | so that might help xD | 17:15 |
Zara | (my json may not even be right anyway, I have: | 17:16 |
Zara | testTask = storyboard.tasks.put(task_id=42, {"task":[{"title":"hi how are you"}]}) | 17:16 |
Zara | SyntaxError: non-keyword arg after keyword arg | 17:16 |
pedroalvarez | hm.. | 17:18 |
pedroalvarez | TIL | 17:18 |
pedroalvarez | that error means that task_id arg, which is a keyword arg, has to go after the other argument, which is non-keyword arg | 17:18 |
pedroalvarez | also, that thing is a python dict, not a json string I'd say | 17:19 |
Zara | hehehe | 17:19 |
pedroalvarez | if you quote it, might be valid json | 17:20 |
pedroalvarez | that is: "{ .... }" | 17:20 |
persia | While it can be made to work with JSON, I think the point of the python client is to not have to think about JSON (note that this bit may be unimplemented) | 17:20 |
pedroalvarez | yeah, sadly I have no idea without playing with any of this | 17:21 |
Zara | it's working pretty nicely up to here, so there's a good chance I just don't know the right syntax for the request, which is annoying | 17:21 |
Zara | I've kinda worked out the previous ones mainly through trial and error and commonsense. | 17:22 |
Zara | and stackoverflow for helpful print functions | 17:22 |
*** b3rnard0 is now known as b3rnard0_away | 17:25 | |
persia | Looking at base.py, I think you want foo.update for PUT if foo.create is working for POST | 17:27 |
Zara | arghhhh | 17:28 |
Zara | I think you're right! | 17:28 |
pedroalvarez | that was a good catch indeed | 17:28 |
Zara | my print looked like this: http://paste.openstack.org/show/493041/ | 17:29 |
Zara | for tasks | 17:29 |
Zara | so I completely missed update, and just saw 'put'. will try that, thanks | 17:29 |
Zara | boom, it works | 17:30 |
Zara | let's check status | 17:30 |
persia | I don't see where the "put" method is defined. I wonder what it does. | 17:30 |
Zara | I'm still pretty hazy on a *lot* of things in here | 17:31 |
Zara | as always! | 17:31 |
Zara | status seems to wrok | 17:31 |
Zara | *work | 17:31 |
Zara | ace, and if you set it to something totally wrong, you do indeed get an error | 17:31 |
persia | Ah, found it. In openstack/common/apiclient/client.py. Yes, that is for JSON, if you have it. Don't use that :) | 17:31 |
Zara | so the python-storyboardclient can update a task status, if you can give it 1) address of sb instance, 2) user token, 3)task id, 4) status to change it to | 17:32 |
persia | Also avoid "head", "post", and "delete" :) "get" is safely overridden. | 17:32 |
Zara | :) | 17:32 |
persia | Cool! | 17:32 |
Zara | so... now I need to find some way of getting relevant stuff from gerrit stream events... | 17:33 |
* persia wonders if base.py should use "retrieve" instead of "get" to allow access to the RAW HTTP, but can't really imagine why one would want to do that. | 17:33 | |
Zara | as long as I can use it to do stuff I'm fine to leave it well alone | 17:33 |
persia | heh | 17:33 |
Zara | :) I'm so dull! | 17:36 |
Zara | anyway, I... really have no idea how I'm going to do the gerrit side yet. I remember there was a library linked the other day, to make it easier to manipulate stream event data, iirc? | 17:37 |
Zara | ahh, gerritlib, I think | 17:38 |
Zara | this is why it's nice to be able to concentrate on a project; I can actually hold this stuff in my head. | 17:38 |
pedroalvarez | yup, gerritlib | 17:40 |
Zara | got the api reference up now... :) | 17:40 |
Zara | still not totally sure about how I go about importing it; guessing I install it first. | 17:41 |
* pedroalvarez nods | 17:41 | |
persia | https://docs.python.org/2/library/logging.html may also be useful to read once you attach | 17:41 |
*** davidlenwell has quit IRC | 17:42 | |
Zara | okay. | 17:42 |
Zara | heh it's called gerrit, so 'from gerritlib import gerrit', not 'from gerritlib import gerritlib' | 17:48 |
*** davidlenwell has joined #storyboard | 17:49 | |
pedroalvarez | you can `import gerritlib` to get it all. It might have more things than gerritlib.gerrit | 17:59 |
persia | It doesn't. | 18:00 |
persia | Just gerrit.GerritWatcher and gerrit.Gerrit | 18:00 |
persia | (so importing the entire thing just forces extra typing because of namespacing, etc.) | 18:00 |
*** b3rnard0_away is now known as b3rnard0 | 18:06 | |
*** mrmartin has joined #storyboard | 18:08 | |
*** zigo has joined #storyboard | 19:17 | |
Zara | hi! :) | 19:17 |
anteaya | StoryBoard? Storyboard? | 19:19 |
anteaya | I always forget which | 19:19 |
Zara | it *should* be StoryBoard | 19:20 |
Zara | in practice, I tend to write storyboard | 19:20 |
Zara | because I'm too lazy to capitalize anything | 19:20 |
Zara | I've assumed it's that way so it looks a bit like OpenStack; don't really know the history there | 19:20 |
anteaya | thanks | 19:20 |
anteaya | ttx would probably know the history | 19:21 |
Zara | yes | 19:21 |
Zara | that reminds me of the pic I found of storyboard as a baby: http://ttx.re/storyboard-sprint-in-brussels.html | 19:23 |
persia | When I first heard about Storyboard / StoryBoard (early 2014), a mix of "StoryBoard", "Storyboard", and "storyboard" seems to have been used in etherpads and wikis. | 19:23 |
Zara | haha | 19:23 |
persia | Amusing that "...ability to use non-Launchpad OpenID for login" was a goal, given the hardcoded single-authentication-provider implementation :) | 19:24 |
Zara | I think someone wrote a custom openid provider for another instance | 19:34 |
persia | Oh, it's pluggable. You can use any OpenID provider, as long as every user uses the same one. | 19:38 |
Zara | yeah | 19:38 |
persia | (or, at least, that was the case last time I fussed with that bit) | 19:38 |
Zara | that matches my understanding, I haven't really looked at it though | 19:38 |
persia | It's a balance between asserting unique identity and convenience. Having a single trusted provider makes life easy, because one can control the provider, and assure conformance to certain guidelines (e.g. people have unique "username" or "email address") | 19:41 |
persia | On the other hand, supporting federation means anyone with an OpenID can use the one they have, and life goes on (although there is no promise the data is reliable, as "the internet" has no SLA) | 19:42 |
*** mrmartin has quit IRC | 19:52 | |
jtomasek | Hi, we're using gate-{name}-npm-run-{command} jenkins job in tuskar-ui and we started hitting this issue today: http://logs.openstack.org/40/300240/2/check/gate-tripleo-ui-npm-run-test/8421582/console.html | 20:13 |
jtomasek | has storyboard been hitting this too? | 20:13 |
jtomasek | I suspect that it might be caused by nodejs version that is used by jenkins (in ubuntu-trusty) | 20:13 |
jtomasek | oh s/tuskar-ui/tripleo-ui/ | 20:14 |
Zara | hmm, I haven't seen it today but I don't think I've uploaded any patches for the webclient, which is the bit that uses node | 20:15 |
Zara | krotscheck might have seen it on another project | 20:15 |
jtomasek | we started hitting it today. the package it fails on has not been updated to a newer version. it is quite strange | 20:16 |
krotscheck | jtomasek: I'm aware of it. It's an error that occurrs reliably, but usually on different packages, leading us to believe that it's an issue with the NPM registry. | 20:16 |
jtomasek | krotscheck: is that supposed to go away eventually? | 20:17 |
krotscheck | jtomasek: The current plan is to A) Wait it out, and in the meantime B) finish building the NPM mirror so we're shielded from these issues in the meantime. | 20:17 |
krotscheck | jtomasek: I hope so. I do not have much confidence in npm.inc | 20:17 |
jtomasek | krotscheck: thanks! | 20:17 |
jtomasek | Zara, krotcheck: maybe a bit unrelated you think it would be ok if I created a patch for that jenkins job so it could be configurable which node is used? right now it has ubuntu-trusty hardcoded while other jobs allow to specify which node (os) to use | 20:18 |
Zara | I don't think I have a problem with it; I *think* production sb is on precise anyway... | 20:20 |
jtomasek | Zara: ok | 20:20 |
krotscheck | jtomasek: I don't think that's a good idea. The version of npm available on precise is even older than the one available on trusty. | 20:22 |
krotscheck | jtomasek: Frankly, I'm hoping things remain reasonably stable until we can go to xenial LTS nodes, which comes with Node 4LTS and npm 2 LTS | 20:23 |
Zara | ah, I defer to krotscheck in this, then. I thought it might be a problem with a change that had been brought in in a newer version of node, since it worked before | 20:23 |
krotscheck | jtomasek: Also, ¯\_(ツ)_/¯ centos, rhel, etc. | 20:23 |
jtomasek | krotscheck: I am not 100% confident, but we'd probably want to test tripleo-ui on centos7 as other tripleo ci runs there too (afaik) | 20:23 |
Zara | (but the registry is constant, so if it's that, then... yeahhh) | 20:24 |
krotscheck | jtomasek: Are your tests doing things that are different based on the operating system? JS is usually hosted and then run in the browser, no? | 20:24 |
krotscheck | jtomasek: If it's a horizon thing I can understand that you'd want to test the python code on centos, but most of the JS pieces don't care about operating systems, they care about browsers. | 20:25 |
jtomasek | krotscheck: you're probably right. I said I am not 100% confident:) | 20:25 |
Zara | 'night! | 20:27 |
jtomasek | krotscheck: my point was that different OSes have different nodejs versions, so it would be nice to specify which is used... but I am not confident it is necessary to do right now. | 20:28 |
krotscheck | jtomasek: Found the bug! https://github.com/npm/npm/issues/12196 | 20:29 |
krotscheck | (Courtesy of tsufiev) | 20:29 |
jtomasek | krotscheck: nice! | 20:30 |
krotscheck | jtomasek: "Having consulted with @npm/registry-team about the current CDN configuration for the primary npm registry, I'm going to call this issue resolved, barring some hiccups as cached metadata ages out. " | 20:30 |
jtomasek | krotscheck: yes so 'wait it out' is confirmed as a solution... | 20:31 |
*** mrmartin has joined #storyboard | 20:40 | |
*** mrmartin has quit IRC | 20:53 | |
*** mrmartin has joined #storyboard | 20:55 | |
*** mrmartin has quit IRC | 21:12 | |
*** mrmartin has joined #storyboard | 21:16 | |
*** mrmartin has quit IRC | 21:25 | |
*** tlbr has quit IRC | 21:48 | |
*** tlbr has joined #storyboard | 21:48 | |
*** zara___ has joined #storyboard | 22:07 | |
zara___ | I just saw this and what? https://github.com/openstack-infra/storyboard/commits/master | 22:08 |
zara___ | says the last commit was Oct 28th, 2015 | 22:08 |
zara___ | sticking it up here so I see it tomorrow | 22:08 |
*** zara___ has quit IRC | 22:08 | |
* pleia2 sees Commits on Mar 22, 2016 | 22:10 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!