Wednesday, 2016-04-20

Zarahm, webclient hasn't built since 14th, wonder if it's the worker problem again.00:04
Zaranight night00:04
anteayanight00:07
*** anteaya has quit IRC03:39
*** mrmartin has joined #storyboard04:59
*** mrmartin has quit IRC04:59
*** jmccrory has quit IRC07:22
*** jmccrory has joined #storyboard07:24
SotKeek, cacti suggests that may be the case07:32
SotKI guess I'll be spending today trying to reproduce that again :)07:32
*** bethwhite has joined #storyboard08:06
Zara:D09:22
SotKI had a better idea that involved thinking about what actually happens instead of bashing my head against it until it breaks09:22
Zarahah, I always guess the wrong thing, so prefer head-bashing09:26
pedroalvarezSotK: have you figured  out why?09:26
Zara(welp, prefer asking around first)09:26
pedroalvarezSotK: my guess was that the sysvinit daemons were sh**e09:27
SotKthat was my old guess, but I can't see anything in https://git.openstack.org/cgit/openstack-infra/puppet-storyboard/tree/templates/storyboard-workers.sh.erb which would leave things alive09:29
SotKnow I suspect that storyboard-worker-daemon sometimes doesn't kill its child processes (I'm pretty sure I've seen it happen when running manually too)09:30
* SotK is investigating that thought09:30
ZaraI got an error about not killing something right last time I ctrl+c'd it. wonder if that was related or normal09:31
pedroalvarezSotK: here I can see that the script ensures that they are running: https://git.openstack.org/cgit/openstack-infra/puppet-storyboard/tree/manifests/workers.pp09:31
pedroalvarezwarning: if they are running it doesn't restart them09:32
pedroalvarezSotK: so... does your ubuntu setup report that the services are running?09:32
pedroalvarezmaybe puppet fails to see that they are running, and then, it spawns more and more09:32
SotKhmm, I thought I saw it trying to restart them last time I looked at this09:35
* SotK goes to look at that too09:35
pedroalvarezIIRC I'm using upstart on my setup, it was more reliable09:37
Zarathis is what happens when I ctrl+c, if interesting to anyone: http://paste.openstack.org/show/494755/09:37
pedroalvarezbut looking forward to move to ubuntu 16.04 with systemd :P09:37
* SotK too09:38
ZaraI'm wary of merging more api things until the webclient catches up10:34
Zarawell, I can test them with the current built version + master, but that'll take longer10:34
Zaraguess it depends on how long before we can kill processes10:35
Zarain the meantime...10:38
Zaradoes anyone who commits code have an opinion on https://review.openstack.org/#/c/304539/ ? (qualifying that as, in this case, I think this one only affects people in the process of writing code on the webclient)10:39
Zarait's up to the crowd10:40
Zarapedroalvarez, betherly, anyone-I've-missed ^10:40
pedroalvarezI don't really understand any of that.. ::/10:41
pedroalvarezouch, these new eyes hurt10:41
Zara:010:41
pedroalvarezI mean, I only modify something, and then send the patch..10:41
Zaraah, okay, so atm storyboard tests your webclient code everytime you save a file10:42
pedroalvarez"everytime you save a file" ?10:42
Zaraand lets you know if you have pep8 problems, undefined variables etc10:42
Zarathis is annoying if you know your code isn't ready yet10:42
pedroalvarezahm..10:43
Zarabut it's nice if you don't want to do it manually all the time10:43
ZaraI like to be poked to fix things as I go along, others find it more annoying than me10:43
pedroalvarezso, the patch removes this from running automatically?10:43
Zarayeah10:43
pedroalvarezah10:43
pedroalvarezI have no opinions, never used it, and I don't think I ever will10:44
Zaraahahaha10:44
Zaraokay10:44
pedroalvarezI think I have good pep8 skillzzzzzzz10:44
pedroalvarezbut sounds useful to have, tbh10:45
Zara:) I like it, personally, but I figure affected people should vote on it, since I can still run the tests manually if most people are bothered by it10:45
ZaraI have been informed it's not pep8, since that's python-specific, so just style10:46
Zarathanks, secret-python-info-daemon10:47
ZaraI have 4 hairs on my chin! I knew, if I waited long enough, I'd grow a UNIX beard. :D10:58
openstackgerritZara proposed openstack-infra/storyboard-webclient: Make it clear when user reaches end of events timeline  https://review.openstack.org/30548311:45
* Zara now looks into why she made some table columns weird lengths11:58
Zara(well, I imagine it was 'it looks better that way' but I'm wondering why sensible lengths didn't work.)11:58
Zarahm, so the other table rows are somehow 7 atm12:06
Zaramaybe the 'delete' button is stuck on the end somewhere12:07
Zaraohh, it's proooobably that the task notes button added an extra column12:08
Zarawhich gets applied in the inline tasks bit12:08
Zarathough I get that bit as still totalling 12, so huh12:09
Zaraunless it was 11 before on purpose12:09
* SotK gets confused12:10
Zaraahh, sorry, i was talking about https://review.openstack.org/#/c/294221/212:10
ZaraI had a spare moment to look back at my own patches12:10
Zarathey've been pretty neglected12:11
Zaraso yeah, bootstrap grid, 12 columns, my columns seemed to be odd values12:11
Zarabut it looks weird when they seem more sensible, so now I'm trying to find out what's going on12:11
Zaraand thinking out loud because I do that \o/12:11
SotKbootstrap columns != colspan columns12:12
Zaraoh, welp.12:13
* Zara = html pro12:13
SotKcolspan references the number of actual columns in the table, which is the highest number of <td> elements in a row12:13
Zara(makes sense since that table was part of a bigger page... think I thought of it as grids within grids... fun working out what odd leaps my brain's done without telling me.)12:14
SotK(<td> implies <td colspan="1">)12:15
SotKeach row's sum of colspans should be the same, or mess ensues, as I suspect you have discovered12:15
* SotK finishes his understanding of colspan12:15
Zarathanks12:16
Zaraguess I want it the same width as task_list_item, then12:18
SotKyeahm which appears to be 712:19
*** alexismonville has joined #storyboard12:48
* SotK reproduces the workers bug12:49
alexismonvillehi :) I didn't found on the schedule if there was storyboard meetings planned for the next summit? could someone help me to find the information?12:49
openstackgerritMerged openstack-infra/storyboard-webclient: Make it clear when user reaches end of events timeline  https://review.openstack.org/30548312:51
Zaraalexismonville: hi! at the moment, storyboard's going to be discussed at the community task tracking session (I'll find the link, hang on)12:54
Zaraother than that, we don't have a room booked, because we're a smallish team, but there are plans to find a corner with wifi and hack on things. and if more people are interested in dicusssing things then I think we can organise an informal gathering of some kind...12:56
* SotK agrees12:56
SotK(with that thought)12:56
Zaramy personal preference is to go to Barton Springs pool, but I'm flexible on that (;_;)12:57
* SotK wonders if the water has wifi xD12:57
Zaraah, link is here: https://www.openstack.org/summit/austin-2016/summit-schedule/events/9171?goback=113:00
*** alexismonville has quit IRC13:17
*** alexismonville has joined #storyboard13:17
pedroalvarezSotK: any luck with the workers?13:19
SotKnot really13:19
SotKI can reproduce by doing `sudo service storyboard-workers restart`13:19
SotKrepeatedly, since it doesn't fail everytime13:19
pedroalvarezdoes `service stroyboard-wrorkers status` report they are running?13:20
Zaraat least it's reproducible, I guess :/13:20
Zaraworst-case, we kill all the workers manually again.13:21
SotKpedroalvarez: it reports "not supported"13:21
SotKI tried adding `--retry 1` to the start-stop-daemon stop line, that made it successfully kill the parent process, but still left the 5 children hanging around13:22
pedroalvarezheh13:22
pedroalvarezok, so at least we can reproduce it13:22
pedroalvarezI'm not sure about upstart being better, but it might handle all this better13:23
* SotK is pining for systemd, which he actually has some understanding of :)13:24
persiaThere's the infra session on Xenial: maybe storyboard should be an early candidate for migration?13:27
Zarait could be interesting, especially as I think our production is on precise13:28
Zarabut our tests are on trusty13:29
persiaSpinning up a dev instance might me a reasonable was to at least move to trusty.13:32
* pedroalvarez uses trusty, but not with those puppet scripts13:33
Zaraagree that spinning up a dev instance sounds like a good way13:34
Zara(oh yeah, while researching texas wildlife (just checking I wouldn't get eaten, and no, this wasn't on company time), I ended up learning about varieties of armadillos more generally, which led to discovering that this exists and is not sushi: https://www.google.co.uk/search?q=pink+fairy+armadillo&source=lnms&tbm=isch&sa=X&ved=0ahUKEwjq4eGMqp3MAhXJWxoKHaT2CN0Q_AUIBygB&biw=1366&bih=604 . and it doesn't eve13:35
Zaran live in texas, but thought people here might be interested anyway.)13:35
SotKZara: are we likely to be eaten?13:35
ZaraSotK: no. though apparently there's the odd mountain lion in a nearbyish park13:35
Zaraand a fair amount of snakes. but we probably won't be there, unless we get very lost13:36
Zarahttp://www.fws.gov/uploadedFiles/BCNWR_Mammals_200809_A.pdf is the mammals list for that park13:37
Zaraand http://www.fws.gov/uploadedFiles/BCNWR_Herps_200809_A.pdf for reptiles. the snakes at the end are the dangerous ones13:37
Zaraaccording to the googles13:37
Zaraassuming the wildlife isn't intersted in openstack, it'll probably stay in the park, but be on your guard.13:39
SotKok, so it seems that on unsuccessful restart attempts, the stop process gets stuck here: https://git.openstack.org/cgit/openstack-infra/storyboard/tree/storyboard/plugin/event_worker.py#n15613:56
SotKso neither the parent process or any of the children die13:56
SotK(after receiving SIGTERM)13:57
SotKthen new workers are started (since the SIGTERM was sent successfully I guess?)13:57
* SotK goes to refresh his brain on threading in python13:59
Zaranice work :)14:00
Zarahm, seems task notes don't show newlines properly for logged out users14:09
Zaraprrrrrobably because they're not rendering markdown yet14:09
Zara(that's for story view, idk about board view)14:09
Zaraoh hey, storyboard meeting in 45 mins14:14
Zaraugh, anyway, back from distraction, I think the lengths should be 12 to be equal, but I'm not sure they need to use the total columns? the 'this story has no tasks' row only seems to use 6.14:27
ZaraI am too warm for this14:28
Zarait's only april ;_; I think I can only work in march and september, outside of that it's either too dark or too hot.14:29
Zaraargh colspan vs col-xs-foo14:30
Zarathat was my confusion14:30
Zaradsfdjslkfdjs, anyway.14:38
persiaAh, yes, totally different.  As far as I can tell, the table in 294221 is entirely innocent of bootstrap layout14:38
* Zara changes everything to 714:38
persiaWhy seven?14:39
Zarabecause that's the number of <td>s in the biggest row14:39
persiaMaster has a head of 3+3, followed by body entries of 6.14:39
persiaWhich row has 7 in master?14:39
* persia only saw 7 in the candidate14:39
Zara(task_list_item)14:39
Zarait has 7 <td>s, where colspan=1 is implied14:40
Zaraand it's called inline as a row14:40
Zara(idk if you should use the word 'call' for that, but I don't know what's better)14:40
Zaraso the bit starting at line 30214:41
persiaI usually use "include" for that, but yeah, I see now.14:42
persiaSo the current header is broken anyway :)14:42
Zarayup, probably (definitely) my fault when I added task notes14:42
Zarasince it only clicked today14:43
Zaradidn't realise that col-foo and colspan were totally different14:43
Zarayayyyyy~14:43
persiagit blame blames someone else, but yes, around task notes.14:43
* SotK apologises if it was him14:44
persiaRight.  Initially broken with change Ib81fc44e84424a5d3a281b7230217d8a8c017c1f, and then modified (and left broken) in I56b2fa4489424b81385a45a9c069bdd33a2c920314:44
* persia needs to figure out how to translate Change-Id: entries into gerrit URLs trivially14:45
Zaraugh, let me know if you find out14:45
ZaraI feel like I've done it before but maybe it was a manual thing14:45
Zaraah, searching it does work14:46
ZaraI come up as the owner :P14:46
persiahttps://review.openstack.org/#q,Ib81fc44e84424a5d3a281b7230217d8a8c017c1f,n,z14:46
persiahttps://review.openstack.org/#q,I56b2fa4489424b81385a45a9c069bdd33a2c9203,n,z14:46
openstackgerritZara proposed openstack-infra/storyboard-webclient: Make it easier to find 'add task' button  https://review.openstack.org/29422114:46
persiaAnyway, despite my review being entirely wrong, I'm glad we found out why :)14:47
Zarahehe14:47
Zarayeah, I've learnt some more html stuff that'll be useful14:47
Zara6 minutes14:54
Zara2 minutes14:58
Zarahm, task templates should probably put old data before new, when reporting a change14:58
Zaratbf those templates are generally terrible14:58
Zara(for email notifications for task changes)14:59
Zara(so I can say that because I made the things)14:59
Zarameeting time!15:00
persiaIt is currently 10am in Austin15:03
Zarapersia is the talking clock :016:00
persiaOf course, it's 11:00 now :)16:01
Zaraplease update us at 12:0016:01
*** bethwhite has quit IRC16:03
persiaIn terms of update process: I expect the webclient will be redeployed to production as part of the post-merge job currently queued.  Will the API server automatically update somehow, or does that need a change pushed as well?16:14
SotKI think post-merge jobs just cause `puppet apply` to run on storyboard.o.o16:15
SotKso I'd expect it to update also16:15
* SotK may be mistaken16:15
*** fay_ has quit IRC16:17
persiaThe post-merge for storyboard-webclient will update storyboard as a side effect?16:20
SotKmaybe, I can't remember or find where I got that impression now16:29
persiahttps://review.openstack.org/gitweb?p=openstack-infra/storyboard-webclient.git;a=commitdiff;h=fae86518e14a6f86f6e73985d52b1234c1666ba6 is in post now, so I presume that we'll know for sure when that lands16:32
persia(but some jobs have been in post for >50 hours, so it might be a bit)16:32
openstackgerritAdam Coldrick proposed openstack-infra/storyboard: Don't try to cancel the timer thread if it isn't alive  https://review.openstack.org/30847116:47
SotKthat seems to stop `sudo service storyboard-workers restart` leaving things alive16:49
persiaWhy does that work?  I would expect that cancel() didn't work because the task was not yet start()ed (because schedule).  The docs say cancel() only works when the timer is in "waiting" (so not yet start()ed, which I would think would mean not is_alive()).  Am I missing something?16:54
SotKmy understanding is that "waiting" is the time between start() and the provided time elapsing16:56
SotKis_alive() is True from when start() is called to when the action has completed16:57
SotKs/action/provided function/16:58
SotKas for why it works, I'm not fully sure, because I couldn't determine why cancel() was hanging16:58
SotKI suspect the PerpetualTimer class is broken in more ways than this, since the Timer object always appears to be in the "stopped" state in my experimentations16:59
persiaPerhaps, if it is not is_alive(), can exception is raised, which is caught elsewhere, and so it does it anyway.16:59
persias/can/an/16:59
persiaWell, nothing seems wrong with the code, except that the documentation doesn't express the concepts very well, so I'm not confident why it needs the extra conditional.17:00
persiaI suppose once this lands, it needs another cycle of "kill all the workers, restart the service"?17:00
SotKprobably, unless the update after landing this doesn't trigger the error17:01
*** yarkot has joined #storyboard17:32
openstackgerritAdam Coldrick proposed openstack-infra/storyboard: Stop overriding the signal module in terminate()  https://review.openstack.org/30849217:34
persiaOh, heh, that looks more sensible :)17:57
persiaErr, except now there seems to be an unused variable.17:59
* persia will wait for an explanation before having a more detailed opinion.17:59
*** anteaya has joined #storyboard18:57
SotKneither of the parameters are used18:57
SotKI don't think this was actually contributing to the bug (fixing it didn't fix the bug) but it makes the traceback Zara pasted this morning less horrible18:57
anteayaZara: I added some suggestions: https://review.openstack.org/#/c/294221/318:58
anteayaZara: I love a thesaurus18:58
persiaSotK: Ah, and we need to define sig and frame to meet some API convention18:58
persia?18:58
anteayaZara: can they create a tag with that button? would Create Tag be a reasonable button title?18:59
anteayaor would that confuse people who want to use an existing tag19:00
persiaTo me, "create tag" implies a new, different, tag being added to the system, and may become confusing if there is ever support for "official tags", as is found in some other tooling (e.g. LP)19:00
SotKpersia: it needs to take two arguments, yes (see https://docs.python.org/2/library/signal.html#signal.signal)19:01
* SotK gets the same implication from "create tag" as persia does19:01
persia"affix" and "attach" seem right, but hearken to traditional semantics, which some folk only familiar with the "tag cloud" or "hashtag" concepts may find alien.19:01
persiaAha!  Thanks for the docs pointer.19:03
anteayaam offline until Friday19:06
*** anteaya has quit IRC19:07
*** mrmartin has joined #storyboard19:52
*** mrmartin has quit IRC21:07
*** b3rnard0 is now known as b3rnard0_away22:06
*** krotscheck is now known as krotscheck_dcm22:57

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