Thursday, 2019-12-19

*** mattw4 has quit IRC00:16
mnaserok i pretty much have these helm charts done (mostly) and currently being cleaned up00:47
mnaserdoes anyone know of a nice small tool that can do things like "watch for file and send signal"00:47
mnaseri have a way of restarting all containers if the config files change, but that is obviously terrible because a tenant config change isnt worth restarting all containers, i can write something that wathces the file and sends a signal but i feel like a small tool like that .. must exist somewhere00:48
clarkbmnaser inotify is the syscall00:51
fungiinotify?00:51
fungid'oh, jinx!00:51
clarkbinotify-wait is a tool that uses it00:51
fungiyep00:52
mnaserright, but i was hoping to avoid writing something that uses inotify but if inotify-wait is a thing ill look into that00:52
mnaserhttps://linux.die.net/man/1/inotifywatch00:52
mnaseroh cool00:52
mnaserok so i can watch for that and send signals to zuul00:52
clarkber watch maybe thats it00:52
fungithough in theory zuul might could be told how to watch files for changes in a similar manner00:53
fungirather than relying on an external process to watch them and signal its process00:53
mnaserfungi: i thought about that but i figured folks might want to do a controlled reload generally00:53
fungisure00:53
fungiseems like if it were a feature it would need to be able to be disabled00:54
mnaserah yep00:54
*** jamesmcarthur has joined #zuul01:06
*** jamesmcarthur has quit IRC01:10
*** bhavikdbavishi has joined #zuul02:42
*** irclogbot_0 has quit IRC02:56
*** irclogbot_2 has joined #zuul03:16
*** rlandy|bbl is now known as rlandy03:20
*** rlandy has quit IRC03:25
*** reiterative has quit IRC05:34
*** pcaruana has joined #zuul05:43
*** bhavikdbavishi1 has joined #zuul05:56
*** bhavikdbavishi has quit IRC05:57
*** bhavikdbavishi1 is now known as bhavikdbavishi05:57
*** raukadah is now known as chandankumar06:06
*** saneax has joined #zuul06:31
*** aluria has joined #zuul07:21
*** avass has joined #zuul07:36
*** saneax has quit IRC07:43
*** irclogbot_2 has quit IRC07:44
*** irclogbot_2 has joined #zuul07:46
*** jcapitao|afk has joined #zuul07:57
*** jcapitao|afk is now known as jcapitao08:11
*** tosky has joined #zuul08:14
*** saneax has joined #zuul08:20
*** themroc has joined #zuul08:27
*** jpena|off is now known as jpena08:38
*** hashar has joined #zuul08:59
*** reiterative has joined #zuul09:11
*** bhavikdbavishi has quit IRC09:23
*** tosky_ has joined #zuul10:07
*** tosky is now known as Guest9772710:07
*** tosky_ is now known as tosky10:07
*** Guest97727 has quit IRC10:08
*** bhavikdbavishi has joined #zuul10:47
*** bhavikdbavishi1 has joined #zuul10:49
*** bhavikdbavishi has quit IRC10:51
*** bhavikdbavishi1 is now known as bhavikdbavishi10:51
*** armstrongs has joined #zuul11:05
*** armstrongs has quit IRC11:14
*** jcapitao is now known as jcapitao|afk11:16
*** sshnaidm|afk is now known as sshnaidm11:21
*** jpena is now known as jpena|lunch11:58
*** avass has quit IRC12:09
*** jcapitao|afk is now known as jcapitao12:54
*** rlandy has joined #zuul12:57
*** Goneri has quit IRC13:00
*** BanHammor has joined #zuul13:07
*** jpena|lunch is now known as jpena13:11
BanHammorHi folks! My zuul job starts a Docker container, does some work with the container, and then its job.cleanup-run shuts down the container.13:11
BanHammorI want to move away from a fixed container name to a randomly-generated one, and i'm doing that by writing down the container name in a set_fact13:12
BanHammorThe question is - can I pass the fact from the run playbook to the cleanup-run playbook?13:12
*** jamesmcarthur has joined #zuul13:29
*** avass has joined #zuul13:34
*** jamesmcarthur has quit IRC13:34
*** Goneri has joined #zuul13:46
*** jamesmcarthur has joined #zuul13:53
*** tosky_ has joined #zuul14:23
*** tosky is now known as Guest2789014:23
*** tosky_ is now known as tosky14:23
*** Guest27890 has quit IRC14:26
*** sugaar has quit IRC14:30
*** sugaar has joined #zuul14:39
*** rfolco has joined #zuul14:43
*** jamesmcarthur has quit IRC14:51
*** jamesmcarthur has joined #zuul14:56
*** jpena is now known as jpena|off15:04
clarkbBanHammor: I think you have to write that data to disk on the executor then load it again in cleanup? a better option may be to use the build uuid valur to name your container15:10
clarkbthat should be random but fixed to the job currently running15:10
BanHammorooh that's a nice idea!15:11
BanHammor(unfortunately, because of constraints i'm working with, kind of impossible, but really neat)15:11
*** jpena|off is now known as jpena15:13
tobiashBanHammor: you could try zuul_return, I think zuul should forward that variable to the next playbook15:21
Shrewsi think we really need a set/get example of using zuul_return. I was looking for one and could not find it15:23
*** electrofelix has joined #zuul15:24
Shrews(in our docs, that is)15:27
BanHammortobiash, it seems like more of a job-to-zuul thing than a playbook-to-playbook thing?15:31
fungiyeah, i was looking for more detail on zuul_return as well, to see if it said that would allow you to pass variables to subsequent playbooks but it only talks about passing them to child jobs15:36
fungi(also, yes, an example would be an awesome addition to the docs)15:37
*** bhavikdbavishi has quit IRC15:54
*** jamesmcarthur has quit IRC15:56
*** jamesmcarthur has joined #zuul15:57
*** jamesmcarthur has quit IRC16:02
openstackgerritDavid Shrewsbury proposed zuul/zuul master: Docs: Fix zuul variable references  https://review.opendev.org/70001416:09
tobiashBanHammor, fungi: I thought there was a change that forwards this to playbools as well, but I might be wrong16:11
tobiashbut maybe my memory mixed it up with https://review.opendev.org/64285716:12
*** themroc has quit IRC16:16
openstackgerritDavid Shrewsbury proposed zuul/zuul master: Docs: Cleanup jobs doc  https://review.opendev.org/70001416:26
*** jamesmcarthur has joined #zuul16:27
*** jamesmcarthur has quit IRC16:27
*** jamesmcarthur has joined #zuul16:28
*** armstrongs has joined #zuul16:34
*** armstrongs has quit IRC16:43
*** mattw4 has joined #zuul16:43
*** jamesmcarthur has quit IRC16:51
*** hashar has quit IRC17:16
Shrewstfw your paste of a filename ends up being an accidental paste of a URL and 'vi' starts downloading it17:20
clarkbShrews: new xterm/xfce-terminal pops up a warning when I try pasting anything remotely dangerous and makes me review it before adding it to my shell17:21
Shrewsi mean, i know vi can do that with urls, but i seem to always forget and get very surprised for a moment when i accidentally do that17:23
clarkbShrews: it is really useful for reading large zuul logs that cause your browser to bog down and be sad17:23
openstackgerritMerged zuul/zuul master: Add note to supercedent with regards to file filters  https://review.opendev.org/69873317:25
clarkbcorvus: I haven't seen any complaining post opendev zuul restart17:26
clarkbI guess today is the pi release day?17:26
corvuscool, i'll get started on that soon17:26
clarkbthen I'll go update the annual report draft to get the number of releases correct :)17:27
*** chandankumar has quit IRC17:31
corvuscommit 84f6ea667c3453a75a7a0210ee08228c9eec167a (HEAD -> master, tag: 3.14.0, origin/master, origin/HEAD)17:33
corvusthat look right?17:33
clarkbcommit and tag number both look correct to me17:33
corvuspushed17:34
clarkbcorvus: https://review.opendev.org/#/c/699857/ is semi related (pushes ansible things forward a bit more)17:36
corvusdone17:38
clarkbusing codesearch to grep around for more instances of the issues I had to fix in zuul-jobs I seem to only find them in playbooks/roles that are in ansible things not run by zuul17:40
clarkbah here is at least one that might trip on the zuul side17:40
clarkboverall though not as bad as I feared17:40
*** jpena is now known as jpena|off17:44
clarkbzuulians: I've added some edits around user stats to the annual report draft. If you have reviewd it already another quick look would be great. If you haven't reviewed it yet any help is much appreciated18:05
clarkbhttps://etherpad.openstack.org/p/zuul-2019-annual-report-data you can find it there as well as fungi's stats collection18:05
clarkbone neat thing in ^ is Zuul has contributions from all continents but antarctica over 201918:05
clarkbmordred: ^ want to become a south pole resident to fix that for us?18:06
Shrewscorvus: it seems our zuul_return plugin supports a 'path' and 'file' argument, though I don't see either one being used anywhere in our system. path will always be to the 'results.json' file, and i have NO idea what 'file' is supposed to have been used for. Is there a backstory on the usage of those?18:06
*** panda has quit IRC18:08
corvusShrews: path is there in case someone wants to abuse zuul_return to operate on other files (maybe some weird nested thing?).  file is so you can return a bunch of data without loading it into ansible18:11
corvus(ie, have a script that outputs the return data, then just "zuul_return: file: /path/to/output" or something18:11
Shrewsohhhhh... enlightenment18:12
*** panda has joined #zuul18:13
corvusiow, path has no intended use, it's just there "in case" and to avoid hardcoding something.  file does have a use, but afaik, it's never been used in anger.  possibly because it's not documented? :)18:13
corvusand probably because we've never gotten around to finishing up the inline pep8 job18:14
Shrewsdefinitely not documented  :)  I was working on trying to understand it better to hopefully add some of that18:14
corvus++18:14
*** rfolco is now known as rfolco|bbl18:18
*** jcapitao has quit IRC18:31
openstackgerritDavid Shrewsbury proposed zuul/zuul master: Add some docs to the zuul_return action plugin  https://review.opendev.org/70004918:45
ShrewsJust a few things that would have helped me out ^^^18:47
clarkbShrews: that has pep8 failures and they don't appear related to the ansible version update (job still ran under 2.8)18:57
Shrewsi didn't think we ran pep8 on the ansible stuff. meh19:18
openstackgerritDavid Shrewsbury proposed zuul/zuul master: Add some docs to the zuul_return action plugin  https://review.opendev.org/70004919:20
*** electrofelix has quit IRC19:28
*** dmsimard has quit IRC19:41
*** dmsimard has joined #zuul19:41
tobiashmordred: I've responded on https://review.opendev.org/69500119:58
*** sshnaidm is now known as sshnaidm|afk20:00
*** saneax has quit IRC20:00
*** pabelanger has quit IRC20:05
*** maxamillion has quit IRC20:05
*** maxamillion has joined #zuul20:05
*** irclogbot_2 has quit IRC20:06
*** irclogbot_0 has joined #zuul20:11
*** pabelanger has joined #zuul20:29
openstackgerritMerged zuul/nodepool master: 'keys' must be defined for host-key-checking: false  https://review.opendev.org/69802920:36
openstackgerritMerged zuul/zuul master: Docs: Cleanup jobs doc  https://review.opendev.org/70001420:49
*** jamesmcarthur has joined #zuul20:59
*** jamesmcarthur has quit IRC21:16
*** pcaruana has quit IRC21:23
*** Goneri has quit IRC21:35
*** jamesmcarthur has joined #zuul21:36
*** shanemcd- has quit IRC21:36
*** shanemcd has joined #zuul21:38
*** rfolco|bbl has quit IRC22:06
mnaserProject <..> not in pipeline <Pipeline check> for change <Change 0x7fbf91b85d50 ... 1,726373902bb8218dd0bf0bb99e2e91d72c0505e1>22:09
mnaseris this possibly because there is no 'noop' jobs defined so it doesnt exist at all?22:09
mnaserthis is a PR from an unprotected branch into a protected branch on github.22:09
mnaser(where this specific PR adds zuul.d/project.yaml)22:10
corvusmnaser: you don't actually need a noop job, you can have an empty job list, but unless/until there's a project-pipeline stanza for a project, zuul will ignore changes22:10
corvus(otherwise, it might be acting on changes to a project that has no intention of actually using zuul)22:11
corvusmnaser: one way to avoid this is to put into a config-project a project stanza with an empty job list that matches all projects22:11
clarkbzuul's jobs are running under ansible 2.9 and seem happy from what I've seen so far22:11
mnasercorvus: yeah i was thinking of just doing that but i guess i'll avoid it till i figure out the possible implications22:11
corvus(but that would explicitly say "every project uses the check pipeline")22:12
corvusmnaser: the main downside is that if zuul is configured to report merge conflicts (which it usually is for check), then it would do so if someone submits a pr with a conflict22:13
corvusmnaser: otherwise, even if it's in the pipeline with no jobs, it'll still keep quiet.22:13
mnasercorvus: ok gotcha22:14
corvusmnaser: if you don't want to do that, the other general approach would be to merge a change which adds a project stanza with no jobs or the noop job; then subsequent changes will be self-testing22:15
jlkquick question from a group that might likely know. I'm trying to update a tox file so that on win32, for the py34 environment, one of the deps versions gets overridden. What I'm seeing is that it does an _additive_ dependency rather than a replacement.  https://github.com/sigmavirus24/github3.py/pull/978 is my attempt thus far.22:15
jlk(yes I know this isn't zuul, but y'all are pretty intimately familiar w/ Tox)22:15
mnasercorvus: yeah i think that's the best "opt-in" approach22:15
clarkbjlk: I think if you change line 11 to add ; sys_platform != 'win32' then you'll get what you want22:16
jlkoooh22:16
clarkbor I guess you have to accomodate the py34 as well22:16
clarkbbut thats the general idea make a line that matches when the other doesnt22:17
clarkband vice versa22:17
corvusis that the same as requirements files, or is the tox "deps" thing different?22:17
clarkbcorvus: at least on older tox that list was given verbatim to pip22:17
clarkbcorvus: which is why our lines will look like -r requirements.txt22:18
corvusgotcha22:18
jlkwait, hrm.22:18
jlkthe problem is the base 'pytest' line and the new line that starts with py3422:19
jlkI don't know how to exclude the base pytest line only on py3422:19
clarkbjlk: https://www.python.org/dev/peps/pep-0496/#id7 that may help22:19
clarkbI would do pytest>=2.3.5, <5.0.0 ; sys_platform != 'win32' or ( sys_platform == 'win32' and python_version != '3.4')22:21
jlkahhh22:21
clarkband pytest>=2.3.5, <4.6.7 ; sys_platform == 'win32' and python_version == '3.4'22:22
jlkthe python_version one was what I wanted22:22
*** coldtom has quit IRC22:32
*** jamesmcarthur has quit IRC22:34
*** aluria has quit IRC22:49
*** tosky has quit IRC23:22
jlkclarkb: that definitely worked; the version I wanted got installed. Sadly that wasn't the package that seems to be breaking my tests :(23:27
*** Goneri has joined #zuul23:52

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