Wednesday, 2017-07-19

openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Add job's project as implicit role project  https://review.openstack.org/48272600:01
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Remove ansible-role from implied role names  https://review.openstack.org/48496200:01
SpamapSpabelanger: you just need to get our ansible plugins loaded when you run the check-syntax00:24
pabelangerSpamapS: right, that's what I plan on doing in the morning.00:24
SpamapSI wonder if we could go further up the chain than zuul-bwrap and also have a zuul-ansible-playbook00:24
SpamapSthat would just setup an ansible dir and a nice empty job dir for testing (with a statically created inventory maybe)00:25
SpamapSwould make iterating on playbooks quite nice actually00:25
SpamapSI too am ready to EOD though :)00:25
pabelangermaybe zuul_console should just be a playbook / role, external to zuul git repo. I don't think we have any zuul bits in it00:26
pabelangerwould have to think about that played as trusted / untrusted repos00:26
mordredSpamapS: that's actually kind of on my todo list - the zuul-ansible-playbook command00:32
mordredalthough I won't get upset if someon ebeats me to it00:32
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Fix json output appending  https://review.openstack.org/48499200:45
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Emit phase banner separate from play banner  https://review.openstack.org/48499300:45
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Remove noise both vertical and horizontal  https://review.openstack.org/48499400:45
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Stop printing shell commands if we have a task name  https://review.openstack.org/48499500:45
mordredjeblair:, pabelanger, SpamapS: ^^00:48
mordredhttp://paste.openstack.org/show/615792/ is output from it00:51
*** harlowja has quit IRC01:13
tristanCmordred: re javascript bundling, there is also the python xstatic format that could be used instead of r.js/bower/..02:00
mordredtristanC: yah - I would like to avoid that if we can - packaging javascript in python packages to avoid javascript tools doesn't seem super-scalable long term to me02:06
mordredtristanC: however, you'll be happy to know that grunt andbower and no longer the right cools to use :)02:06
mordred(I did a bunchof learning over the weekend)02:06
mordredtristanC: 'yarn' and 'webpack' seem to be the happymakers now - and yarn even has distro packages available02:08
tristanCas long as it's not Makefile written in javascript... :-)02:11
mordredtristanC: this I whole-heartedly agree with :)02:22
*** harlowja has joined #zuul04:31
*** harlowja has quit IRC04:47
tobiashjeblair: I have a comment at https://review.openstack.org/#/c/48496205:12
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Add zuul.d configuration split documentation  https://review.openstack.org/48240505:30
tobiashmordred: commented at https://review.openstack.org/#/c/48499205:38
*** harlowja has joined #zuul05:46
*** bhavik1 has joined #zuul06:05
*** isaacb_ has joined #zuul06:23
*** harlowja has quit IRC06:42
*** amoralej|off is now known as amoralej06:44
*** isaacb_ has quit IRC07:04
*** isaacb_ has joined #zuul07:08
*** hashar has joined #zuul07:19
*** hashar has quit IRC07:19
*** hashar has joined #zuul07:19
*** bhavik1 has quit IRC07:41
*** isaacb_ has quit IRC07:48
*** isaacb_ has joined #zuul07:58
*** isaacb_ has quit IRC07:59
mordredtobiash: yes - thank you - my synthetic test locally it seems was not good enough :)08:17
mordredtobiash: ok. I have duplicated enough things that I now have the same failure08:26
*** xinliang has quit IRC08:28
*** xinliang has joined #zuul08:29
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Fix json output appending  https://review.openstack.org/48499208:36
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Emit phase banner separate from play banner  https://review.openstack.org/48499308:36
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Remove noise both vertical and horizontal  https://review.openstack.org/48499408:36
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Stop printing shell commands if we have a task name  https://review.openstack.org/48499508:36
mordredtobiash: that should fix the first two - and when I wake up from my next nap, I'm going to refactor the shared code into a library location too08:36
xinliangtobiash: ping08:47
*** openstackgerrit has quit IRC08:49
*** isaacb has joined #zuul08:49
*** isaacb has quit IRC08:58
*** isaacb has joined #zuul09:04
*** isaacb has quit IRC10:17
*** isaacb_ has joined #zuul10:17
*** hashar is now known as hasharLunch10:27
*** jkilpatr has quit IRC10:36
tobiashmordred: +210:45
tobiashmordred: jetlag? ;)10:46
tobiashxinliang: what's up?10:46
tobiashmordred: just tried your patches now and they seem to work now :)10:50
tobiashmordred: http://paste.openstack.org/show/615826/10:50
*** isaacb_ has quit IRC11:05
tobiashmordred: just a nit I see in the logs is that there is no empty line between the playbooks11:08
*** jkilpatr has joined #zuul11:11
pabelangermorning11:21
tobiashhi11:21
*** hashar has joined #zuul11:39
*** isaacb_ has joined #zuul12:06
*** openstackgerrit has joined #zuul12:42
openstackgerritTobias Henkel proposed openstack-infra/zuul feature/zuulv3: Add html based websocket client for console stream  https://review.openstack.org/48350312:42
tobiashmordred: ^^^ is my try to combine our two approaches for web streaming12:43
tobiashmordred: works fine in my deployment12:43
tobiashmordred: not sure yet if it works with relative websocket urls (I guess not due to missing wss://)12:43
*** dkranz has joined #zuul12:44
*** isaacb_ has quit IRC12:44
tobiashmordred: ok, tested... relative urls are invalid...12:45
openstackgerritTobias Henkel proposed openstack-infra/zuul feature/zuulv3: Add html based websocket client for console stream  https://review.openstack.org/48350313:01
openstackgerritTobias Henkel proposed openstack-infra/zuul feature/zuulv3: Add html based websocket client for console stream  https://review.openstack.org/48350313:02
tobiashmordred: ^^^ this should also solve the (default) relative websocket url case13:03
*** isaacb has joined #zuul13:09
*** amoralej is now known as amoralej|lunch13:11
openstackgerritTobias Henkel proposed openstack-infra/zuul feature/zuulv3: Add html based websocket client for console stream  https://review.openstack.org/48350313:12
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Fix zuul.(yaml|d) loading order and add tests  https://review.openstack.org/48241113:35
openstackgerritTobias Henkel proposed openstack-infra/zuul feature/zuulv3: Add html based websocket client for console stream  https://review.openstack.org/48350313:40
tobiashmordred: now with (hopefully) green tests13:40
*** isaacb has quit IRC13:44
tobiashpep8 gods don't like me...13:53
openstackgerritTobias Henkel proposed openstack-infra/zuul feature/zuulv3: Add html based websocket client for console stream  https://review.openstack.org/48350313:53
pabelangertobiash: almost as fun as the tetris god13:56
tobiashlol13:56
*** isaacb has joined #zuul14:02
*** amoralej|lunch is now known as amoralej14:17
*** isaacb has quit IRC14:48
*** isaacb has joined #zuul14:49
jeblairShrews: 484414 looks good with a minor nit15:43
Shrewsjeblair: oh, oops. that shouldn't be in there. you prefer a follow up, or a new PS?15:44
jeblairShrews: i'm the only reviewer with a vote right now, may as well revise it?15:44
jeblairi'm happy to re+215:44
Shrewsack15:44
openstackgerritDavid Shrewsbury proposed openstack-infra/nodepool feature/zuulv3: Support UUID as builder identifier  https://review.openstack.org/48441415:46
*** isaacb has quit IRC15:54
mordredtobiash: zomg - that looks great15:54
mordredjeblair: so - the apache config on zuulv3.o.o dind't update15:54
jeblairbummer15:55
mordredjeblair: well - I'm confused, because the puppet patch that added zuul-web also added the apache config update15:59
jeblairmordred: yeah, i'm looking and i'm not seeing the problem yet15:59
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Add html based websocket client for console stream  https://review.openstack.org/48350316:05
jeblairmordred: that is super weird16:06
jeblairJul 18 16:59:13 zuulv3 puppet-user[20412]: (/Stage[main]/Zuul/Httpd::Mod[proxy_wstunnel]/Httpd_mod[proxy_wstunnel]/ensure) created16:06
pabelangermordred: tobiash: is there a screenshot of UI some place?16:06
jeblairi think that's the puppet run that should have done it, but no mention of the config16:06
jeblairmordred: i kind of want to rm the file and kick puppet16:07
jeblairmaybe we should switch this to -infra16:07
tobiash:)16:07
tobiashpabelanger: you mean from the live streaming log?16:08
pabelangertobiash: ya, the html based client16:08
Shrewspabelanger: if we restart zuul we should be able to see for ourselves, yeah?16:09
Shrewsi'm very excited about seeing it too16:09
tobiashpabelanger: not yet, but it just looks like a black terminal with a small autoscroll checkbox on the top right16:10
pabelangerShrews: actually, I think we did restart last night16:11
*** isaacb has joined #zuul16:11
Shrewspabelanger: but the html serving stuff *just* merged16:12
Shrews48350316:12
Shrewsshould be clickable links on the status page now16:13
jeblairmordred: please let me know when you have a few moments to chat about https://review.openstack.org/48499216:16
tobiashShrews: hopefully it works out of the box... took me a while to figure out the correct apache config16:18
pabelangerOh, Isee. we need to run zuul-web to server up static page16:18
tobiashShrews: but I currently also have a frankensteined apache config in this regard16:19
tobiashShrews: static ui on host, status.json in scheduler container, websocket client and service in zuul-web container16:20
* tobiash thinks serving all stuff (except or including status.json?) from zuul-web would simplify this drastically16:21
jeblairyeah, i think we'll get there before we release 3.016:22
* mordred has a write up on that to clean up and send out ...16:24
mordredjeblair: sup?16:24
jeblairmordred: i'm concerned about the fragility of the playbook path stripping.  it's broken once already before the change even landed.  :)16:25
jeblairmordred: let's agree on what we want to see there, and then find the best way to achieve it16:26
mordredjeblair: kk. (and yes, me too)16:26
jeblairmordred: what do you want it to look like?  can you splat an example?16:26
mordredjeblair: so - I know I _definitely_ don't want to see /tmp/{long-string} - cause that's not generally interesting16:26
jeblairmordred: agreed16:27
mordredjeblair: I think 2017-07-19 17:35:32.069389 | PRE-RUN [git.openstack.org/openstack-infra/project-config/playbooks/base/test]16:27
mordredjeblair: would be nice - that shows info that should make sense to all the users and can be used to track down the source of the playbook16:28
jeblairmordred: okay.  that omits two pieces of information which may be useful: a) whether the playbook was trusted, and b) the branch16:28
jeblair(to be fair, the current thing only gives us a; we've never had b in the v3 job output.  but we do have b in a lot of v2 output)16:29
jeblairmordred: can i convince you that one or both of those things are worth adding, in some way, to the output?  (not nececarily with path components, but maybe in other ways)16:30
mordredjeblair: we could pass all three as variables and then have PRE-RUN [trusted : git.openstack.org/openstack-infra/project-config/playbooks/base/test : master]16:30
mordredjeblair: totally! I tihnk those are very useful pieces of info16:31
mordredor maybe: PRE-RUN [ git.openstack.org/openstack-infra/project-config/playbooks/base/test : trusted : master ] ("what are we running and what are its qualities")16:31
jeblairmordred: cool.  we might consider "PRE-RUN [trusted : git.openstack.org/openstack-infra/project-config/playbooks/base/test@master]" which matches the way zuul represents repo+branch combinations elsewhere (like in error messages)16:32
mordredjeblair: ++16:32
jeblairmordred: or if you like the other form better, we can change the other stuff to match.  either way16:32
mordrednah - I'm cool witih @master16:32
jeblairmordred: okay, so let's pass all of that with dedicated variables16:33
jeblairmordred: that implicitly solves the fragility concern16:33
jeblairmordred: and i think we should probably do this before landing your series, because i think some of the path manipulations there are going to break on some playbooks.16:34
mordredjeblair: mind if I do a followup? I need to make that change in two places and I think I'd rather just make the patch to extract that code into a library file real quick then make the change in once place16:34
mordred(we an wait til we'rehappy with the followup to land the first one)16:35
jeblairmordred: sure -- as long as land them together16:35
openstackgerritPaul Belanger proposed openstack-infra/zuul-jobs master: Default tox to python3  https://review.openstack.org/48527216:36
jeblairmordred: lemme add the branch info to the jobdirplaybook16:37
mordredjeblair: its in there16:37
mordredjeblair: self.trusted_project_index[(canonical_name, branch)] = root16:37
jeblairmordred: that's only for trusted though16:38
mordredah16:38
mordredyes16:38
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Add branch to JobDirPlaybook  https://review.openstack.org/48527316:42
jeblairmordred: ^ i thought there might be more to it than that.  :)16:43
mordredjeblair: while I've got yo ulooking at that ...16:44
mordredjeblair: canyou add canonical_name too?16:44
jeblairya16:44
mordredthanks! (and it's a JobDirPlaybook that gets passed as playbok to runAnsiblePlaybook right?16:45
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Add project info to JobDirPlaybook  https://review.openstack.org/48527316:46
jeblairmordred: yep, so you should be able to pull everything off of there16:46
mordredjeblair: I kinda want to write out a vars file with a zuul_execution dict - the list of -e vars is getting long :)16:50
jeblairmordred: wfm.  want to go ahead and switch it to zuul.execution  ?16:51
jeblairi don't feel strongly about that.  :)16:52
*** hashar has quit IRC16:53
openstackgerritPaul Belanger proposed openstack-infra/zuul-jobs master: Install zuul to access zuul_console  https://review.openstack.org/48527716:53
pabelangermordred: jeblair: so, thinking out loud here, but what do you think about adding zuul_console into zuul-jobs in the library directory?  Looking at the action plugin, I don't see any zuul specific code. It would be related to ^16:53
*** dkranz has quit IRC16:53
jeblairpabelanger: would that then get used by jobs running from zuul-jobs?16:55
mordredjeblair: well, we can't do zuu.execution, because we have zuul dict in inventory and we don't have dict merging turned on16:56
mordredjeblair: so it would have to be a different top-levle16:56
mordredjeblair: I think for now let's just pass them as we're doing and we can swing back and clean up later16:56
jeblairmordred: ok.16:56
pabelangerjeblair: I think it would be blocked today, since it is untrusted right?16:56
jeblairpabelanger: i don't think we block modules16:56
pabelangerah16:56
pabelangerso, maybe we want to run it? It would make iterations easier16:57
jeblairpabelanger: so basically, it would get used by any jobs in zuul-jobs which ran it.  which includes the default base job.  except we don't run the default base job, so we won't actually use it.16:57
jeblairpabelanger: i think the upshot is that it will be very confusing, because it will never be clear which zuul_console is being run.16:58
jeblairpabelanger: and we're always going to need it in zuul itself because zuul-jobs must not be required for zuul to function, and i don't consider zuul functioning without console logs.16:58
pabelangerright now all jobs in zuul-jobs reference zuul_console so we need it right now16:59
pabelangeralso right now16:59
pabelanger:)16:59
jeblairpabelanger: we *have* it right now.  zuul installs it.16:59
jeblairpabelanger: i don't think we should add it to other repos.  if we need it for linting, then i think the install solution you came up with is probably best.16:59
pabelangerjeblair: oh, Isee what you are saying. We don't want zuul to depend on zuul-jobs17:00
jeblairpabelanger: correct17:00
pabelangerhmm... thinking17:00
pabelangerokay, then sounds like 485277 is okay for now then17:01
pabelangerand we are already working upstream with ansible to improve console streamming17:02
mordredpabelanger, jeblair: ++ I agree with the above17:04
openstackgerritPaul Belanger proposed openstack-infra/zuul-jobs master: Install zuul to access zuul_console  https://review.openstack.org/48527717:06
*** dkranz has joined #zuul17:06
*** isaacb has quit IRC17:07
pabelangerokay, squashed into single commit ^17:07
mordredjeblair: uhm - https://review.openstack.org/#/c/485273/ doesn't seem to be enqueing into the gate17:12
jeblairmordred: https://review.openstack.org/484995  are we sure we don't want to keep logging shell commands?  that seems useful?17:12
jeblairmordred: 273 is on your stack17:13
jeblairmordred: so you can make that followup patch17:13
mordredjeblair: oh. duh. I suck17:13
jeblairmordred: i mean, i like nice task names, but considering how much we currently use "bash -x" i think we must feel very comfortable seeing the actual commands executed in the job log.17:14
jeblairmordred: (and i'd kind of hate for folks to avoid task names because they obscure the shell command)17:15
mordredjeblair: indeed. let's skip thatpatch for now then, it's easy enough to add back17:15
mordredjeblair: I'll rebase it out in just a sec17:15
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Add project info to JobDirPlaybook  https://review.openstack.org/48527317:16
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Make playbook run meta info less fragile  https://review.openstack.org/48528417:16
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Add spacer after playbook stats rather than before playbook  https://review.openstack.org/48528517:16
mordredjeblair: hrm. one sec - that's printing a string version of trusted into the json17:18
jeblairmordred: also, oops, we're omitting the actual playbook path17:20
mordredjeblair: k. I've got an update to the second to the last patch - but I'll wait so we don't step on eachother17:21
jeblairokay, i'll revise 273 now17:22
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Add project info to JobDirPlaybook  https://review.openstack.org/48527317:23
jeblairmordred: ^ i changed the var name, sorry17:23
*** harlowja has joined #zuul17:25
*** harlowja has quit IRC17:25
*** harlowja has joined #zuul17:26
pabelangermordred: https://review.openstack.org/#/c/485277/ is ready for re-review too17:29
mordredpabelanger: I think that's absolutely the right call - good thought (I was thinking about the problem yesterday and didn't have an answer I liked :) )17:31
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Make playbook run meta info less fragile  https://review.openstack.org/48528417:33
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Add spacer after playbook stats rather than before playbook  https://review.openstack.org/48528517:33
mordredjeblair, pabelanger, tobiash: ok. I think THAT should finally get it :)17:33
openstackgerritMerged openstack-infra/zuul-jobs master: Install zuul to access zuul_console  https://review.openstack.org/48527717:36
jeblairmordred: lgtm.  when the tests come back green, i'll switch my -2 to a +3 on the first patch17:41
mordredjeblair: wot17:41
jeblairaknot!17:42
pabelangermordred: jeblair: https://review.openstack.org/#/q/topic:zuul-jobs-remove-openstack is green again and ready for a lively review process :D17:51
openstackgerritMerged openstack-infra/nodepool master: Add support for nodepool testing of openSUSE 42.3  https://review.openstack.org/48447617:52
*** amoralej is now known as amoralej|off18:01
*** jkilpatr has quit IRC18:06
*** jkilpatr has joined #zuul18:21
*** jkilpatr has quit IRC18:56
tobiashmordred: tox-py35 timed out at https://review.openstack.org/#/c/48528418:59
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: WIP: Check out implicit branch in timer jobs  https://review.openstack.org/48532919:00
jeblairmordred, pabelanger, fungi: ^ that's something i'd like to start preparing for before we start work on periodic or post jobs.19:01
jeblairfungi: (your conversation this morning in infra reminded me of that)19:02
jeblairthere's going to be more to it than that.  for one, that still needs a bunch of test updates.  and another thing we should expect to get out of this is a nice documentation of what the zuul variables should be for different types of jobs.19:03
* jeblair lunches19:03
fungijeblair: nice!19:04
*** jkilpatr has joined #zuul19:05
fungithat would indeed simplify a fairly common pattern across our periodic job defs19:05
pabelangerjeblair: left comment, possible typo19:06
mordredjeblair, Shrews: I believe if we restart zuul-web and zuul-executor we'll start getting websocket console streaming19:14
Shrewssounds about right19:15
tobiashmordred: fingers crossed19:22
tobiashmordred: you'd need to restart the scheduler for websocket console streaming as it prepares the urls to be displayed19:34
mordredtobiash: oh - right. good point19:44
* mordred is going to restart scheduler and zuul-web now19:45
* Shrews wonders why we have both a zuulv3 and zuulv3-dev.o.o19:48
tobiashwasn't zuulv3-dev.o.o superseeded by zuulv3.o.o?19:48
* Shrews is 503'd19:50
* tobiash too19:50
Shrewswell those are interesting exceptions19:51
tobiashis zuul-web already restarted/down?19:51
mordredzuul-web isn't starting19:52
mordredBUT19:52
Shrewswhat is a websocket upgrade header?19:52
mordredif I run it by hand it does19:52
mordredso - one sec, let's try again19:52
tobiashmordred: how does the apache forward look like?19:53
tobiashmordred: you need to handle websocket separately in apache19:53
Shrewshttp://paste.openstack.org/show/615896/ for the curious19:53
mordredhttp://git.openstack.org/cgit/openstack-infra/puppet-zuul/tree/templates/zuul.vhost.erb#n3919:54
mordredtobiash: we installed mod_proxy_wstunnel19:54
mordredas well19:54
tobiashmordred: yes, but you need to forward this to a ws:// or wss:// url19:55
tobiashhttp://paste.openstack.org/show/615897/19:55
tobiashlike this19:55
mordredok. zuul-web is at least properly running now19:55
mordredah19:55
tobiash(that's part of my ansible template to configure the apache)19:55
*** tinyurl_comSLASH has joined #zuul19:56
tobiashas I said, it took me a bit to persuade apache letting websockets go through19:56
mordredok - I did that by hand real quick and graceful'd apache - will receck a patch19:57
tobiashyay19:57
mordredBuild ID 1bbdd00c5f2b426a9e4662ec8a3d1acb not found19:57
tobiashLOGS19:57
mordredwoot19:57
tobiash:)19:57
Shrewssuch streaming19:57
jeblairhttp://zuulv3.openstack.org/static/stream.html?uuid=ef1c4ec1532b4b3fadda9630db5ef6fe&logfile=console.log19:57
mordredWOOT!19:57
mordredok. I'll make the puppet to make that thing work right19:58
mordredtobiash: thanks! that would have taken a while to sort out I'm sure19:58
jeblairtobiash, Shrews, mordred: that's pretty nifty.  :)19:58
Shrewsi might watch this all day19:58
*** tinyurl_comSLASH has left #zuul19:59
tobiashso if anyone thinks this is ugly/too slow, feel free to improve the html :)19:59
mordredI think it's wondrous19:59
tobiashwith long logs we experienced client side performance problems20:00
Shrewstobiash: i want the ability to change my font and colors!!!11!!!!1120:00
jeblair--- END OF STREAM ---20:00
jeblairi just heard the master control program say that20:01
Shrewszuul-web log looks as I'd expect20:01
tobiashShrews: feel free to change/css/whatever ;)20:01
Shrewstobiash: was only kidding, but i predict that will be the first thing folks ask for20:02
Shrews:)20:02
Shrewsi actually like the white text on black20:02
Shrewsvery console-ish20:02
tobiashjeblair: I added this '--- END OF STREAM ---' so one sees that the job (stream) has ended20:03
jeblairtobiash: i love it20:04
tobiash:)20:04
Shrews"Connecting to finger server ze01.openstack.org:79"20:05
Shrewssurprised we didn't choose a different port, but i guess we wanted finger to work, too20:05
*** dkranz has quit IRC20:05
jeblairShrews: i think the plan is still to have a finger multiplexer like zuul-web.  run it on the finger port, and then drop the executors back to unprivileged ports.  so no one ever sees a ze01 hostname.20:06
tobiashShrews: the finger urls are retained in the status.json, so this could be also added to the status ui20:07
jeblairShrews: and yeah, supporting finger (or at least "echo foo|nc ...") as a first class citizen is definitely a goal.  being able to "tail -f | grep" a streaming console log is awesome.20:07
fungi"END OF LINE" would have been a neat tron reference, but i guess not entirely accurate20:08
tobiashand what's still missing is multitenancy20:08
tobiashfungi: just wanted something easy to indicate the end of stream, we could also add some zuulish ascii art as end of stream marker ;)20:10
pabelangernice, where did the URL for stream get populated?20:10
fungihah20:10
fungitobiash: it works quite well as is, but amusing suggestion nonetheless20:10
mordredjeblair: https://review.openstack.org/#/c/484992 is ready for you now too20:10
tobiashpabelanger: in the scheduler during status.json generation20:11
jeblairmordred: what's up with 485284?20:11
mordredjeblair: no clue - I was thinking we should land the stack up to it then I can rebase it so I don't have to rebase the whole stack?20:11
jeblairmordred: it doesn't seem to need a rebase20:11
mordredhrm.20:12
tobiashpabelanger: here https://review.openstack.org/#/c/483503/14/zuul/model.py20:12
pabelangertobiash: I see it now on zuulv3.o.o status page20:12
pabelangercool20:12
mordredI'm getting immediate end-of-stream on jobs now20:12
mordredlike http://zuulv3.openstack.org/static/stream.html?uuid=1a3ca67388c84109979994d1722e4d72&logfile=console.log20:13
tobiashmordred: that happens for non-existing or ended jobs20:13
Shrewsapache config reverted20:13
Shrewsi think20:13
mordredoh. apahe config20:13
mordredyah20:13
mordredthanks puppet20:13
Shrewsconfirmed20:13
tobiashah, ok20:13
mordredPHEW20:13
jeblairmordred: it's the self.change.project == None issue20:13
jeblairthis is a situation which should not be able to happen, but we've now seen it two or three times.20:14
tobiashwe could/should also send some error/information through the websocket if the job uuid is not found in zuul-web20:14
jeblairit's catastrophic20:14
jeblairso please, no one restart any processes in zuulv3.o.o while i look into it20:15
jeblair(or ze01)20:15
jeblairmordred: can you tell me which processes you restarted earlier?20:15
mordredjeblair: all of them20:16
mordredjeblair: I stopped the scheduler, then zuul-web, then started both of them20:16
mordredjeblair: then I stopped and started the executor20:16
*** jkilpatr has quit IRC20:18
* tobiash is hitting eod now20:18
mordredtobiash: have a good eod20:19
* mordred hands tobiash and Shrews both pies20:20
jeblairmordred: sorry, in the interest of science, i'm going to recheck a bunch of your changes in that stack.  please don't do that yourself or upload new patchsets.20:24
Shrewspffft, science. what has that ever given us?20:26
mordredjeblair: go for it - I'm holding until further word20:27
pabelangerShrews: the science guy!20:36
*** jkilpatr has joined #zuul20:36
fungifor science!20:43
jeblairmordred, fungi: i'm going to make some manual logging changes on zv3, then restart and see if this is repeatable.21:22
mordredjeblair: kk21:23
jeblairoh wow!21:28
jeblairi just reproduced it with the world's longest unit test21:28
jeblairhttp://paste.openstack.org/show/615912/  does fail with the error21:29
jeblairi have no idea how much of that is necessary.  it's a faithful recreation of how that stack was built.21:30
mordredjeblair: well done!21:30
mordredjeblair: well - I at least understand the steps in the unit test21:31
fungiinteresting21:31
fungiat least if it's reproducible it can probably be bisected down to a reasonable length21:32
mordredjeblair: (also, I remember doing those steps, so I can confirm that that's a recreation of how the stack was built)21:32
jeblairmordred, fungi: indeed, that reduces considerably:  http://paste.openstack.org/show/615913/21:42
jeblairthat's 30 minutes of my life i'm not getting back21:42
jeblairoh wait, no i'm wrong.  i went too far.21:43
jeblairthere's the minimal case: http://paste.openstack.org/show/615914/21:50
jeblairmordred, fungi: i've restarted zuul with the normal debugging level and i retract my request to preserve server state.  i'm going to go fix this locally now.21:52
fungiindeed, still nice and concise22:17
mordredjeblair: cool22:24
pabelangerjeblair: mordred: I know you are both busy with zuulv3 things yourself, but do you mind looking at topic:zuul-jobs-remove-openstack when you have a few moments. Want to see if everybody is generally okay with that code before more playbook / role refactoring22:34
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Fix change history cycle detection  https://review.openstack.org/48536822:36
jeblairpabelanger: sure thing22:36
jeblairmordred: ^22:36
jeblairpabelanger: i think we need mordred to weigh in on 48393622:37
fungithe fix is far more concise even than the test case22:37
pabelangerjeblair: ya, we need to bikeshed on that still22:39
mordredpabelanger, jeblair I'm fine with that approach - I think we might still bikeshed about it later - but I don't think the color of that shed is a blocking concern22:42
mordredI've +2'd or +A'd that stack22:43
pabelangermordred: Ya, I have some ideas on how we could do it, but still need to try them out.22:43
jeblairpabelanger: i'm not sure i understand https://review.openstack.org/48491722:44
SpamapSadam_g: I'm going to go ahead and unassign you from https://storyboard.openstack.org/#!/story/2000879 (Disk monitor thread thing)22:44
mordredjeblair: tox already does that by default now22:44
jeblairpabelanger: is tox actually outputting that in our jobs now?22:44
SpamapShow do we feel about the urgency of that story?22:44
pabelangerjeblair: yup: http://logs.openstack.org/17/484917/15/check/tox-linters/d6848c0/tox/linters-1.log.txt22:44
mordredjeblair: yah. it does a pip freeze at the end of runs into the tox logs which we grab22:44
pabelanger2017-07-18 22:31:57.632453 | ubuntu-xenial | /home/zuul/src/git.openstack.org/openstack-infra/zuul-jobs$ /home/zuul/src/git.openstack.org/openstack-infra/zuul-jobs/.tox/linters/bin/pip freeze >/home/zuul/src/git.openstack.org/openstack-infra/zuul-jobs/.tox/linters/log/linters-1.log22:45
jeblairmordred, pabelanger: ah i see22:45
pabelangerapparently tox learned how to do it22:45
jeblairprobably worth a note to folks during rollout22:45
mordredjeblair, pabelanger: incidentally, reading about that caused me to learn that you can have tox write out a json report too22:45
SpamapSCurrently, with zuul2.5, somebody could write a patch that makes a job produce super big logs, yes?22:45
mordredjeblair: ++22:45
jeblairSpamapS: i don't think it would stop us from ptg switchover, but i think we should try to get it in before or soon after.22:45
mordred++22:45
pabelangerjeblair: Ya, I think we should start an upgrade docs for sure. Where would you like it to live?22:45
SpamapSjeblair: would it make sense to do it as some checks in trusted post jobs?22:46
jeblairSpamapS: currently, the "only" thing they can do is fill up the logserver, which, frankly, happens on a fairly regular bases and stops all development.  in v3, they will *also* be able to kill executors in the process.  :|22:46
SpamapSLike, could we stat all log files before transfer, sum that up, and refuse to pull back more than X bytes?22:46
jeblairSpamapS: yes, i think we're going to want that too (so we can separately say "this is how much you can log" and "this is how much scrap space you can have")22:47
jeblairSpamapS: but i think they are two things and we need both22:47
mordredyah. because an untrusted job is allowe dto write things to the job dir - so without the zuul-level check we don't have a way of 'blocking' it22:47
jeblairSpamapS: (we will almost certainly want to permit jobs more scratch space than log storage space.  too much scratch space can kill the executor.  and too much log space can kill the logserver)22:48
mordredotoh - if a job fills up the job dir on the executor, it is a tempdir and will be deleted - so it'll onlyu kill the exectutor for $time22:48
mordredjeblair: ++22:48
jeblairyeah.  failing 150 jobs at once is... awkward, so i'd rather avoid it if possible.  :)22:49
pabelangerjeblair: SpamapS: somebody could also propose a job that requests 2k nodes still right?22:49
jeblairpabelanger: yep.  that's another limit which we should encode.22:49
jeblairpabelanger: fortunately, if they ask for 2k nodes, nothing will happen.  if they ask for 1400 nodes -- *that's* a problem.  :)22:50
mordredthat limit is a bit easier22:50
mordredjeblair: ++22:50
jeblairmordred: ya22:50
fungithough it will also be queued indefinitely unless there is a provider capable of booting that many nodes, right?22:50
mordredfungi: yes.22:50
fungior did we decide that jobs spanning providers was a thing?22:50
jeblairfungi: you're right... i guess the problem point is... what, 900 nodes?22:50
fungiwhatever our largest provider is, right22:50
mordredyah - and even that will only grab those 900 nodes for an hour or two - so while not ideal - and certainly a thing that would get corrected socially very quickly ... it's not deadly22:51
mordredit would kind of be amusing to wath22:51
mordredwatch22:51
fungi256 actually... each of the two osic entries (s3500 and s3700) are limited to max-servers: 25622:52
jeblairthe provider would be monopolized for the time it takes to get 256 free nodes (probably 1-2 hours), and the time the job ran22:53
jeblairpabelanger: your stack is +3d22:54
pabelangerty!22:54
openstackgerritMerged openstack-infra/zuul-jobs master: Remove export commands from tox based roles  https://review.openstack.org/48393622:54
openstackgerritMerged openstack-infra/zuul-jobs master: Remove subunit file size check for tox role  https://review.openstack.org/48451922:54
openstackgerritMerged openstack-infra/zuul-jobs master: Compress testrepository.subunit in fetch-testr-output  https://review.openstack.org/48489622:54
openstackgerritMerged openstack-infra/zuul-jobs master: Remove check_sudo_usage logic from tox  https://review.openstack.org/48491622:54
openstackgerritMerged openstack-infra/zuul-jobs master: Create tox-pep8 jobs  https://review.openstack.org/48494822:54
openstackgerritMerged openstack-infra/zuul-jobs master: Remove pip freeze logic  https://review.openstack.org/48491722:54
openstackgerritMerged openstack-infra/zuul-jobs master: Require tox_envlist for tox role  https://review.openstack.org/48497522:54
SpamapSjeblair: I just wonder if we can control all the places that write to scratch space and avoid the overseer.22:54
jeblairmordred: i +3d your stack23:11
mordredjeblair: woot!23:12
jeblairSpamapS: i don't think so -- we let folks download arbitrary stuff from the internet into the executor workspace23:12
openstackgerritPaul Belanger proposed openstack-infra/zuul-jobs master: Remove OOM check from tox role  https://review.openstack.org/48537723:28
pabelangerjeblair: mordred: do we want to consider something like reno to manage release notes in zuul-jobs?  It goes back to the question about upgrade doc23:32
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Fix zuul command default function  https://review.openstack.org/48427923:32
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Add job's project as implicit role project  https://review.openstack.org/48272623:32
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Remove ansible-role from implied role names  https://review.openstack.org/48496223:32
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Fix json output appending  https://review.openstack.org/48499223:33
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Emit phase banner separate from play banner  https://review.openstack.org/48499323:33
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Remove noise both vertical and horizontal  https://review.openstack.org/48499423:33
*** hasharLunch has quit IRC23:43
mordredpabelanger: I started a patch a while back to add reno support to zuul and nodepool but never got around to finishing it23:59

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