Friday, 2020-03-20

openstackgerritMerged zuul/zuul-jobs master: test-upload-logs-swift: add download script as an artifact  https://review.opendev.org/71399800:01
openstackgerritIan Wienand proposed zuul/zuul-jobs master: [dnm] test unittests with base-test  https://review.opendev.org/71400600:07
*** mattw4 has quit IRC00:11
*** jamesmcarthur has quit IRC00:17
*** jamesmcarthur has joined #zuul00:18
*** jamesmcarthur has quit IRC00:19
*** jamesmcarthur has joined #zuul00:19
openstackgerritMerged zuul/zuul-jobs master: Replace occurences of '/' in nodename to something more path friendly  https://review.opendev.org/71318200:21
openstackgerritIan Wienand proposed zuul/zuul-jobs master: upload-logs-swift: Create a download script  https://review.opendev.org/59234100:25
openstackgerritIan Wienand proposed zuul/zuul-jobs master: upload-logs-swift: Add a unicode file  https://review.opendev.org/59285300:25
openstackgerritIan Wienand proposed zuul/zuul-jobs master: Revert "upload-logs-swift: test bulk download script change"  https://review.opendev.org/71400000:25
openstackgerritIan Wienand proposed zuul/zuul-jobs master: test-upload-logs-swift: move script artifact after upload  https://review.opendev.org/71400700:25
openstackgerritIan Wienand proposed zuul/zuul-jobs master: [dnm] test unittests with base-test  https://review.opendev.org/71400600:31
*** jamesmcarthur has quit IRC00:31
*** jamesmcarthur has joined #zuul00:32
*** jamesmcarthur has quit IRC00:37
*** tosky has quit IRC00:54
*** jamesmcarthur has joined #zuul01:01
openstackgerritMerged zuul/zuul-jobs master: test-upload-logs-swift: move script artifact after upload  https://review.opendev.org/71400701:36
*** rlandy has quit IRC01:41
*** rlandy has joined #zuul02:03
*** swest has quit IRC02:05
*** rlandy has quit IRC02:08
openstackgerritIan Wienand proposed zuul/zuul-jobs master: upload-logs-swift: Create a download script  https://review.opendev.org/59234102:16
openstackgerritIan Wienand proposed zuul/zuul-jobs master: upload-logs-swift: Add a unicode file  https://review.opendev.org/59285302:16
openstackgerritIan Wienand proposed zuul/zuul-jobs master: Revert "upload-logs-swift: test bulk download script change"  https://review.opendev.org/71400002:16
openstackgerritIan Wienand proposed zuul/zuul-jobs master: test-upload-logs-swift: fix download link  https://review.opendev.org/71401602:16
*** swest has joined #zuul02:20
*** jamesmcarthur has quit IRC02:27
*** jamesmcarthur has joined #zuul02:28
*** jamesmcarthur has quit IRC02:33
openstackgerritMerged zuul/zuul-jobs master: test-upload-logs-swift: fix download link  https://review.opendev.org/71401602:40
*** jamesmcarthur has joined #zuul02:55
*** jamesmcarthur has quit IRC02:56
*** jamesmcarthur has joined #zuul02:56
*** swest has quit IRC03:01
*** jamesmcarthur has quit IRC03:19
*** jamesmcarthur has joined #zuul03:20
*** swest has joined #zuul03:21
*** jamesmcarthur has quit IRC03:25
*** SpamapS has quit IRC03:31
*** SpamapS has joined #zuul03:31
*** jamesmcarthur has joined #zuul03:43
*** jamesmcarthur has quit IRC03:43
*** jamesmcarthur has joined #zuul03:43
*** raukadah is now known as chandankumar04:24
*** bhavikdbavishi has joined #zuul04:44
*** klindgren_ has joined #zuul05:20
*** klindgren has quit IRC05:20
*** evrardjp has quit IRC05:36
*** evrardjp has joined #zuul05:36
AJaegerianw: I'm fine with the download script and gave a +2 on https://review.opendev.org/#/c/59234105:37
ianwAJaeger: thanks!  it's been through quite some iterations!!05:38
AJaegerianw: yeah, noticed that you've been busy while I was asleep ;)05:42
*** jamesmcarthur has quit IRC05:47
*** jamesmcarthur has joined #zuul06:15
*** jamesmcarthur has quit IRC06:44
*** jamesmcarthur has joined #zuul06:45
*** jamesmcarthur has quit IRC06:46
*** dpawlik has joined #zuul07:21
*** jamesmcarthur has joined #zuul07:26
*** jamesmcarthur has quit IRC07:44
*** jpena|off is now known as jpena08:12
*** jcapitao has joined #zuul08:40
*** tosky has joined #zuul08:51
*** harrymichal has joined #zuul09:17
*** harrymichal has quit IRC09:22
*** hashar has joined #zuul10:08
*** harrymichal has joined #zuul10:23
*** arxcruz|rover is now known as arxcruz|off10:56
*** hashar has quit IRC11:24
zbrhow can we define some tox jobs where sudo access is not removed? I have a use case for this.11:48
*** panda has joined #zuul11:48
*** dpawlik has quit IRC11:50
AJaegerwhat's the use case?11:59
zbrwe have some molecule jobs using delegated mode, which are supposed to use the current nodeset for testing, which obviously needs root access.12:02
mordredzbr: the run playbook for the tox job is "roles: ['tox','revoke-sudo'] - you can make a child job that doesn't revoke sudo by supplying a run playbook - just make sure to put the tox role in it :)12:02
zbrok, panda already proposed such a change two mins ago, hopefully it will work. (that is for rdo use)12:03
mordredcool12:03
zbri know is it a bit counter-intuitive, as tox was designed not to mess with the system12:03
mordredyeah - but we use tox for things that arent' always tox-like :)12:04
zbrbut we do have a fail-safe in place: the default settings are to skip delegated tests, so you need to mention extra params to run them.12:04
zbrmy concern for local dev envs is a prio, i do not like surprises from tox.12:04
zbrdid any of you had experience with nox? if so, of what nature?12:05
mordredzbr: haven't used it - although I tend to not like things that use a programming language as a config file format12:07
mordred(there's a reason we wrote pbr and don't use python in setup.py)12:08
zbrand python packaging tool decided that pbr sucks and they can do it better with TOML? ;)12:09
zbri like pbr, proved to be far more reliable than setuptools.12:09
mordred\o/12:09
mordredzbr: I'm not a fan of toml in general, I really don't like a thing that's named after its author and written "because I don't want to read the yaml docs"12:10
mordredso I tend to have a low esteem for choices to use it ;)12:10
zbrwell, you are not alone here, to me it was more of a NIH syndrome example.12:11
mordredyup12:11
pandalet's rename linux to openunix12:11
zbrinstead of working with others to fix the problems of yaml, he decided he can do better.12:11
mordredI mean - I'm still old enough that I think of ini format as "the windows config format" - so extending it just seems extra gross12:11
mordredyeah12:11
*** jcapitao is now known as jcapitao_lunch12:13
pandazbr: it worked.12:13
pandazbr: I have a change before merging12:13
pandazbr: PS2 ready.12:13
mordredwoot12:13
pandamordred: :)12:14
avasszbr: mordred: I have a change that makes it possible to toggle wether to revoke sudo https://review.opendev.org/#/c/706248/12:19
*** dpawlik has joined #zuul12:21
zbravass: nice start, but i would suggest reusing var name. lets see what others say about it.12:25
avasszbr: Yeah that makes sense12:26
zbrbut wait before changing, lets see what mordred things12:27
avasssure12:27
avassI think I wanted to make sure it was separate so you don't accidentally revoke sudo for something you don't want to12:28
zbrin fact the condition could be included inside the role to avoid repeating the when condition12:29
avassI mean keeping sudo for a job where you want to revoke it12:30
mordredyeah - I was about to make the same suggestion12:30
mordredavass: if you put the when inside of revoke sudo itself ...12:30
mordredthen name the variable revoke_sudo or something similar12:31
avassgot it :)12:31
mordredavass: you could even get clever then I think - and maybe add a variable to your static nodes and then set revoke-sudo based on that variable ... I think there's a way to set things on nodepool nodes that show up in zuul variables?12:33
mordred(because it seems like as an admin it would be desirable in this case to be able to say "when you're running on this node, please do not run revoke-sudo")12:33
avassI think setting variable i nodepool is something we wanted but doesn't exist12:34
avasssetting variable on the pipeline level would have been nice too12:35
mordredI could have sworn we added that12:36
mordredShrews: am I just losing my mind here?12:36
mordredavass: I agree - I don't see any mention of setting arbitrary inventory variables in nodepool's config. I must just be hallucinating12:37
openstackgerritAlbin Vass proposed zuul/zuul-jobs master: Adds variable to toggle whether to revoke sudo  https://review.opendev.org/70624812:39
avassho about that instead12:39
avassmordred: I think what we wanted it for was to know which drive to work on. 'C:' 'D:' etc but we've solved that in other ways instead12:40
avassand windows 7 machines has been a lot of pain12:41
mordredI'm sure they have been - we had a windows 7 build server for Drizzle back in the day - but it wasn't even connected to hudson because it was too much of a pita - the way it worked was it sad under my desk and I'd occasionally connect and run a build by hand12:43
avasswow12:44
mordredzbr: check out avass' patch: https://review.opendev.org/#/c/706262/ for making sudo more general. it seems like it's got a more complete version of one of the tasks in your https://review.opendev.org/#/c/70306512:46
mordredof course, the sudo toggle patch above conflicts with the general patch - so that'll need to be sorted12:49
avassshouldn't be too hard to fix12:50
mordrednah. should be easy :)12:53
mordredmight want to move main.yaml to be called revoke.yaml and then make a main.yaml that does include_tasks: revoke.yaml when: revoke_sudo - just cause there's more tasks in the expanded version and adding revoke_sudo to each of them might get boring12:54
Shrewsmordred: i vote for the losing your mind option12:54
mordredok12:54
mordred*phew*12:54
Shrewsbut also let me read sb a bit more (just returned from morning run)12:55
mordredShrews: wow. that's so athletic12:56
avassmordred: ah yeah, was looking for a meta: end_role to solve that but couldn't find it. i guess include_tasks should work12:56
mordredI walked downstairs this morning - does that count as exercise?12:56
Shrewswell... lack of activity due to virus things sucks and forces such things12:56
mordredavass: we use that pattern in a few places - it also has the nice effect of not listing each task in the included file and saying "skipped" -so it's a nice way to skip a block of tasks cleanly in the log12:57
mordred(logs much nicer than putting a set of tasks in a block and then putting a when on the block)12:57
avassI'll update it12:57
openstackgerritAlbin Vass proposed zuul/zuul-jobs master: Adds variable to toggle whether to revoke sudo  https://review.opendev.org/70624813:00
*** jcapitao_lunch is now known as jcapitao13:03
Shrewsmordred: oh, there is this: https://zuul-ci.org/docs/nodepool/configuration.html#attr-providers.[openstack].pools.node-attributes13:04
mordredShrews, avass: so that ^^ should allow setting a key-value pair and having that show up in the nodepool. dict on the node in the zuul inventory, yeah?13:05
Shrewsi'm not certain how zuul manages that data, tbh. i'd have to re-review13:05
mordrednod13:06
Shrewsshower then coffee taking precedence atm13:06
mordredwell - if it does get passed through - perhaps we could define a key, say "revoke-sudo" that someone could set on a node doing that - and then in the revoke_sudo role have the default value of revoke_sudo be {{ nodepool.attributes['revoke-sudo'] | default(true) }}13:07
avassmordred, shrews: I'm going to guess it should be possible to extend it for the other drivers as well13:07
mordredand then docuemnt that behavior13:07
avassyeah that sounds good13:07
mordredprobably want to get other people to weigh in on that as a possible approach before going _too_ far along ... it might be a bad idea for some reason I can't think of right now - I am still on my first coffee13:08
avassprobably going create a role to upload logs to s3, might push that zuul-jobs if I get it working good enough13:17
*** klindgren_ has quit IRC13:17
*** klindgren has joined #zuul13:17
*** jpena is now known as jpena|lunch13:23
openstackgerritAlbin Vass proposed zuul/zuul-jobs master: Adds variable to toggle whether to revoke sudo  https://review.opendev.org/70624813:31
mordredavass: yes please. hopefully between upload-logs-swift and upload-logs-gce there's enough to cargo-cult from to get you started13:32
avassmordred: was thinking of doing something like that :)13:36
mordred:)13:36
-openstackstatus- NOTICE: Gerrit (review.opendev.org) will be down for maintenance starting at 14:00 (in less than 20 mins), probably until 15:00 UTC13:44
*** bhavikdbavishi has quit IRC13:45
openstackgerritMerged zuul/zuul master: Fix minor spelling error  https://review.opendev.org/71192613:46
avasswhat's the difference beteween zuul-executor pause and stop?13:56
corvusavass: stop is immediate and aborts jobs; pause stops running new jobs but lets existing ones continue13:57
avassah13:57
avassso, feels like something similar should exist for mergers13:58
*** sugaar has quit IRC14:03
*** jpena|lunch is now known as jpena14:05
*** klindgren has quit IRC14:10
-openstackstatus- NOTICE: The Gerrit service on review.opendev.org is offline for maintenance until 15:00 UTC http://lists.opendev.org/pipermail/service-announce/2020-March/000001.html14:10
*** ChanServ changes topic to "The Gerrit service on review.opendev.org is offline for maintenance until 15:00 UTC http://lists.opendev.org/pipermail/service-announce/2020-March/000001.html"14:10
*** klindgren has joined #zuul14:10
*** harrymichal has quit IRC14:46
mordredavass: tobiash agrees and has a patch up for that14:47
*** harrymichal has joined #zuul14:50
*** sugaar has joined #zuul14:54
avassmordred: nice14:55
*** ChanServ changes topic to "Discussion of the project gating system Zuul | Website: https://zuul-ci.org/ | Docs: https://zuul-ci.org/docs/ | Source: https://git.zuul-ci.org/ | Channel logs: http://eavesdrop.openstack.org/irclogs/%23zuul/ | Weekly updates: https://etherpad.openstack.org/p/zuul-update-email"15:07
-openstackstatus- NOTICE: Gerrit maintenance is concluded at this time and requested renames have been performed15:07
*** hashar has joined #zuul15:09
mordredavass: https://review.opendev.org/#/c/707192/15:20
mordredavass: already merged even15:20
*** toabctl has quit IRC15:31
tobiashavass: might not be in the current release yet though15:36
*** zxiiro has joined #zuul15:38
*** mattw4 has joined #zuul15:43
*** Tahvok has joined #zuul15:44
*** jcapitao is now known as jcapitao_afk15:50
*** jamesmcarthur has joined #zuul15:54
*** mattw4 has quit IRC15:59
*** mattw4 has joined #zuul16:00
openstackgerritTristan Cacqueray proposed zuul/zuul-operator master: Add utility files and scripts  https://review.opendev.org/71416316:14
openstackgerritTristan Cacqueray proposed zuul/zuul-operator master: Fix executor private key permission issue  https://review.opendev.org/71416416:14
openstackgerritTristan Cacqueray proposed zuul/zuul-operator master: Add integration test playbook  https://review.opendev.org/71416516:14
*** jcapitao_afk is now known as jcapitao16:24
tobiashzuul-maint: I just found yet another race that leads to a node leak16:30
corvustobiash: you are good at that16:31
tobiashfrom what I see in the logs the sequence is 1. node request fulfilled 2. Canceling node request 3. Accepting node request16:32
*** hashar has quit IRC16:32
*** hashar has joined #zuul16:32
tobiashI didn't dig into the code yet, I'll do a further analysis next week probably16:33
*** hashar has quit IRC16:35
*** hashar has joined #zuul16:35
corvustobiash: that sounds like a sequence we anticipated at least16:37
*** andreykurilin has joined #zuul16:40
tobiashseems like it didn't ran into the request.canceled if clause16:40
*** openstack has joined #zuul16:58
*** ChanServ sets mode: +o openstack16:58
corvusandreykurilin: if you have access to the decrypted version of the secret, you can define the same data as a variable locally16:59
corvusbut yes, if you don't have access to that, that's not possible16:59
corvus(though, depending on what the service is, maybe you could create a test account or something)16:59
andreykurilinok... sounds like a task for 10 minutes email17:00
andreykurilin:)17:00
openstackgerritTristan Cacqueray proposed zuul/zuul-operator master: Add integration test playbook  https://review.opendev.org/71416517:04
AJaegerzbr, btw. we have openstack-tox-with-sudo - isn't that what you need?17:10
*** toabctl has joined #zuul17:19
zbrAJaeger: i am afraid that this may not be of much help for all cases, mostly because it prevents inheriting from other tox jobs.17:20
zbri kinda like the idea to control sudo via a variable, like avass proposed earlier.17:20
zbrnow I do not know if there are other problems with variable approach, like security concerns. clearly is a good idea to have revoke-sudo as default behavior.17:21
zbrin fact on ansible zuul instance i often need sudo for tools/test-setup.sh part, but later sudo is revoked, before tox is invoked.17:22
zbrthis allowed me to do a git of extra tunning needed, like starting a service.17:23
AJaegerI see...17:24
*** jcapitao has quit IRC17:24
fungii don't think we rely on revoke-sudo for security controls, just to provide a consistent way for jobs to provide feedback when a payload unexpectedly tries to do something as root17:29
fungito prevent calls to sudo from slipping past review and ending up merged in repositories17:30
*** avass has quit IRC17:34
*** evrardjp has quit IRC17:36
*** evrardjp has joined #zuul17:36
*** jamesmcarthur has quit IRC17:37
*** jpena is now known as jpena|off17:44
*** jamesmcarthur has joined #zuul17:49
*** harrymichal has quit IRC18:04
*** harrymichal has joined #zuul18:04
*** hashar has quit IRC18:08
*** hashar has joined #zuul18:09
*** hashar has quit IRC18:18
*** hashar has joined #zuul18:18
openstackgerritTristan Cacqueray proposed zuul/zuul-operator master: Add integration test playbook  https://review.opendev.org/71416518:20
openstackgerritJimmy McArthur proposed zuul/zuul-website master: Promoting Zuul User Survey  https://review.opendev.org/71418818:45
*** rlandy has joined #zuul18:46
*** jamesmcarthur has quit IRC18:47
*** hashar is now known as hasharAway18:49
*** bhavikdbavishi has quit IRC18:51
openstackgerritTristan Cacqueray proposed zuul/zuul-operator master: Add integration test playbook  https://review.opendev.org/71416518:52
*** jamesmcarthur has joined #zuul19:09
*** hasharAway has quit IRC19:10
*** bhavikdbavishi has joined #zuul19:21
*** nhicher has quit IRC19:29
openstackgerritTristan Cacqueray proposed zuul/zuul-operator master: Add integration test playbook  https://review.opendev.org/71416519:34
*** jamesmcarthur has quit IRC19:44
*** jamesmcarthur has joined #zuul19:45
*** jamesmcarthur has quit IRC19:45
*** jamesmcarthur has joined #zuul19:49
openstackgerritJimmy McArthur proposed zuul/zuul-website master: Promoting Zuul User Survey  https://review.opendev.org/71418819:55
*** nhicher has joined #zuul19:55
openstackgerritJimmy McArthur proposed zuul/zuul-website master: Promoting Zuul User Survey  https://review.opendev.org/71418820:00
tristanCcorvus: the zuul-operator functional test finally worked, here is the builds api output of a SUCCESS job: https://zuul.opendev.org/t/zuul/build/2ef909ed0949401bb7aef9dc76225c09/log/job-output.txt#1001-102120:08
*** harrymichal has quit IRC20:14
*** harrymichal has joined #zuul20:15
tristanCnext i'll look into adding a console stream check20:19
openstackgerritJames E. Blair proposed zuul/zuul-jobs master: use-buildset-registry: protect against /var/user/1000 not existing  https://review.opendev.org/71421620:28
corvustristanC: \o/  sorry, i'm deep in opendev ops today, i look forward to rejoining you on that next week :)20:29
*** jamesmcarthur has quit IRC21:16
*** jamesmcarthur has joined #zuul21:17
*** harrymichal has quit IRC21:19
*** harrymichal has joined #zuul21:20
*** jamesmcarthur has quit IRC21:22
*** harrymichal has quit IRC21:25
*** harrymichal has joined #zuul21:25
*** harrymichal has quit IRC21:35
*** harrymichal has joined #zuul21:35
mordredtristanC: if you have a spare sec, https://review.opendev.org/#/c/714216/ could do with a +A - we verified it in a depends-on with ps 8 of https://review.opendev.org/#/c/714171/821:40
*** harrymichal has quit IRC21:40
mordredfungi, Shrews: ^^21:40
*** harrymichal has joined #zuul21:40
*** jamesmcarthur has joined #zuul21:47
*** rlandy has quit IRC21:48
*** jamesmcarthur has quit IRC21:53
*** jamesmcarthur has joined #zuul22:07
*** y2kenny has joined #zuul22:15
y2kennyHi, I have a question about job variables.  if I defined one (say, job.var.foo="test message") how  do I reference it in the ansible playbook?  (let say if I have a debug task and want to print that var in a debug message)22:20
openstackgerritMerged zuul/zuul-jobs master: use-buildset-registry: protect against /var/user/1000 not existing  https://review.opendev.org/71421622:21
mordredy2kenny: just as foo - so debug: "{{ foo }}" should totally just work22:26
y2kennyok22:27
mordredy2kenny: the job variables are passed to the job as inventory variables22:27
mordreds/job/playbook22:27
y2kennythere's no additional namespacing of variables, etc?22:27
mordrednope. just as they're defined22:27
y2kennycool.22:27
y2kennyanother quick question.  Do you have any recommendation on the best way to play with these zuul features?22:27
y2kennythe jobs and config being checked into git is great for production22:28
mordredit's all dynamic - so you can just propose a change with something new and it'll run that way before you commit it22:28
y2kennybut it's kind of slow when I am still learning.22:28
mordreds/commit/merge/22:28
mordredthat's mostly how I hack on things. :)22:29
y2kennyI guess I should just deploy the docker tutorial locally with compose22:29
fungiyeah, propose changes to jobs (or propose entire jobs) which are not in a trusted config project and you'll get speculative execution of the proposed additions/changes22:29
y2kennyok. understood.22:29
fungibut sure, the quickstart environment is great for that too22:30
mordredyeah22:31
fungithe zuul quickstart is especially useful for testing things with trusted config repos and changes to pipelines which aren't triggered on proposed changes22:39
*** jamesmcarthur has quit IRC22:41
*** jamesmcarthur has joined #zuul22:42
y2kennyfungi: understood.  I have been decomposing the quickstart to turn it into a production setup (so far have migrated zk into my own zk install on a k8s cluster... still need to try doing nodepool and executor on the k8s cluster)  I probably should keep a separate plain quick start around just to play around with various job config22:44
fungiy2kenny: that vector of experimentation is very much appreciated! thanks for testing it out22:47
y2kennyanother question (unrelated): how are job "fan out" handled?  For example, I have a project that needs to be build for 3 different linux distro.  They are independent and can be done in parallel.  Does each of those distro  needs to have its own build job?22:59
mnasery2kenny: in that case, i would define a base job called my-project with all the necessary playbooks, then i would create 3 other jobs called my-project-ubuntu-bionic, my-project-centos-8, etc. and in those jobs, you would do "parent: my-project" and nothing else (hopefully)23:00
mnaserthen inside your project definition, you would add those "os speciifc" jobs, that way, you dont have to maintain 3 different iterations of the same job23:01
mnaser(ansible constructs in this case like "package" which install things agnostically come in handy)23:01
y2kennyok.  That sounds good for this case.  But what about test jobs that I may have hundreds that can be run in parallel and developer can add them very frequently.  Does each of those test need to be defined in zuul individually or is there a way to facilitate this?23:05
mordredwe've got a few thousand ourselves - yeah- just define them in some combination of central "job library" repos and then whenever/whereever the dev needs to add them. jobs definitions are cheap in zuul - we make and delete them all the time23:08
mordredy2kenny: as an example, if you look here: http://zuul.opendev.org/t/openstack/jobs you can scroll for a while and see the mass of jobs in the openstack tenant :)23:08
y2kennycool23:09
fungithough it's worth pointing out that if you *do* need a job with nodes from three different distro images, zuul can totally do that too23:13
fungijust define a nodeset with those and set it on the job23:13
fungiand then reference the nodes by name in your playbooks23:14
y2kennyI have yet to try that and I will definitely need to do that23:14
y2kennyso hosts:nodesname instead of hosts: all?23:15
mordredyup23:15
mordredI mean - unless you have tasks that you want to run on all of the hosts23:15
mordredbut yeh23:15
y2kennyum... so I am a bit confuse... doesn't the nodeset filter the nodes that a job will be executed on? (I haven't read up on the docs yet so I may have a wrong understanding)23:17
*** harrymichal has quit IRC23:18
y2kennylike... wouldn't the playbook's "all" just mean all the node in the nodeset?  or is it typical to have a single playbook share by all job?23:18
mordredthe nodeset defines what nodes you need for the job. it'll then either create them or check them out (depending on cloud vs static)23:18
mordredand then yes - it puts them into an inventory - so to the playbook "all" is all of the nodes defined in the nodeset for the job23:19
mordredwe frequently use "all" in playbooks for simple job definitions just so we don't have to worry about node names since it really doens't matter - many times "all" of the one node the job needs is easy enough23:20
*** armstrongs has joined #zuul23:20
mordredfor more complex multi-node jobs where the nodes actually have real differences that matter, definitely using names and refering to things purpusefully by name is the way to go23:20
* mordred may not be answering the actual question ...23:20
y2kennyI see.  Make sense23:21
fungiyeah, if you're familiar with ansible, basically the hosts in your inventory are "localhost" (the zuul executor) and also any nodes in the nodeset attached to the job23:21
mordredyes - although in our case "all" does not match localhost23:21
*** tjgresha_ has joined #zuul23:23
*** tjgresha has quit IRC23:23
*** jamesmcarthur has quit IRC23:24
y2kennyok.  Another unrelated question.  I remember you guys mentioning zuul can handle a restarting node.  Do you have an example for that (or the relevant terms that I should dig into?)  I assume the executor is the one in charge of pinging the restarting node and potentially issue a fail if there's a timeout?23:25
*** portdirect has quit IRC23:25
*** evrardjp has quit IRC23:25
fungithe only gotcha i know about is if you're relying on console logging you need to restart the console log daemon after a node reboot23:26
*** evrardjp has joined #zuul23:27
*** portdirect has joined #zuul23:27
fungiand i think we have an ansible role you can add after the reboot for exactly that... checking now23:27
*** irclogbot_0 has quit IRC23:27
*** armstrongs has quit IRC23:28
*** irclogbot_3 has joined #zuul23:29
*** Defolos has quit IRC23:31
y2kennyok thanks23:32
*** Defolos has joined #zuul23:33
*** gcerami_ has joined #zuul23:35
*** guilhermesp_ has joined #zuul23:36
*** panda has quit IRC23:37
*** guilhermesp has quit IRC23:37
*** gcerami_ is now known as panda23:37
*** guilhermesp_ is now known as guilhermesp23:37
*** evrardjp has quit IRC23:38
fungiy2kenny: i think you just add this role after the reboot(s) https://zuul-ci.org/docs/zuul-jobs/general-roles.html#role-start-zuul-console23:40
mordredyes. well - after the root and the wait_for23:40
mordreds/root/reboot23:41
y2kennyok23:41
*** evrardjp has joined #zuul23:43
* mordred is looking for a job example - but unfortunately "reboot" is a common word to find across the openstack code base :)23:43
fungiright, i struggled to locate a clear example unfortunately23:44
fungiianw is the last person i recall trying it in earnest23:44
*** jamesmcarthur has joined #zuul23:44
mordredyeah23:45
*** jamesmcarthur has quit IRC23:50
tristanCmordred: lgtm, though why not creating the dir (/var/user/1000) if it doesn't exists?23:51
openstackgerritTristan Cacqueray proposed zuul/zuul-operator master: Add integration test playbook  https://review.opendev.org/71416523:52
mordredtristanC: the commit message is a typo - it's /run/user/1000 - and I think it's cause /run isn't a thing on that old ubuntu23:54
mordredbut the only things that need that aren't going to run on xenial really well anyway :)23:54
*** jamesmcarthur has joined #zuul23:55
fungithe /run ramdisk likely exists on xenial, but you need logind (and so probably bionic) to create the /run/user/* dirs23:55
tristanCoh i see. well either way, that sounds ok :)23:57
*** tosky has quit IRC23:59

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