Wednesday, 2022-04-20

@westphahl:matrix.orgcorvus: question on https://review.opendev.org/c/zuul/zuul/+/83804712:17
@jpew:matrix.orgI'm seeing a case with Zuul 5.0.0 where we've updated a `job.vars` to add a new element to an array variable, but it's not using the new value in a periodic pipeline14:02
@jpew:matrix.orge.g. when I check `inventory.yaml` in the periodic job, it's still using the old value of the variable14:02
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 838047: Conditionally avoid refreshing jobs and builds from ZK https://review.opendev.org/c/zuul/zuul/+/83804715:27
@jim:acmegating.comswest: thanks, updated!15:59
@jim:acmegating.comtristanC: Clark swest thanks for the ansible reviews -- it looks like there's one important change that could use reviews -- adding ansible 5: https://review.opendev.org/83762916:00
@clarkb:matrix.orgcorvus: yup I intend on working my way up the stack a bit more today. Hopefully to get through the whole thing16:02
@jim:acmegating.comi think we're probably at a good place to maybe restart opendev and make a (probably) final 5.x before we land the ansible stuff for 6.0... that sound good?17:59
@clarkb:matrix.orgworks for me18:02
@clarkb:matrix.orgcorvus: for testing this switch to build in the assemble script the comments note that zuul's js build is the main thing to watch out for. When I locally ran build against zuul it appears to have included all that js/html stuff. Do any of the zuul CI jobs run a dashboard and test/screenshot it using the docker iamges? maybe quickstart? Just thinking I could depends on and try to extra confirm it is happy that way18:06
@jim:acmegating.comClark: i'm not sure about depends-on because of the tenant barrier... and i don't think the quick-start job verifies js (probably only api).  so you might need to just build both things manually to test (or publish 'build' under a new tag)18:15
@clarkb:matrix.orgcorvus: ok what I can do is grab the archive copy of the test built image then tell zuul to build its image on that18:16
@clarkb:matrix.organd then confirm that there is js stuff in the installation18:16
@clarkb:matrix.orgor something along those lines18:16
@clarkb:matrix.orglocally I mean18:16
@jim:acmegating.comClark: yeah -- though that made me realize you could change the FROM line in zuul's dockerfile to point to insecure-ci-registry.  but local would be faster if that's an option.  :)18:17
@clarkb:matrix.orgya I'm juggling a few things right now so wanted to see if there was an easy way. I'll try to swing back around and do the local thing when I have a chance18:19
@fungicide:matrix.org> <@jpew:matrix.org> I'm seeing a case with Zuul 5.0.0 where we've updated a `job.vars` to add a new element to an array variable, but it's not using the new value in a periodic pipeline18:53
Did you "update" it by merging a change/PR/MR to adjust the configuration, or some other way? I think you're saying your periodic buidls are using an outdated version of the job configuration, but just trying to confirm that's what you meant.
@fungicide:matrix.org> <@jpew:matrix.org> I'm seeing a case with Zuul 5.0.0 where we've updated a `job.vars` to add a new element to an array variable, but it's not using the new value in a periodic pipeline18:54
* Did you "update" it by merging a change/PR/MR to adjust the configuration, or some other way? I think you're saying your periodic builds are using an outdated version of the job configuration, but just trying to confirm that's what you meant.
@jpew:matrix.orgWe made a change to the variable and gated it, but the periodic (cron based) pipeline didn't see it18:55
@mnaser:matrix.org> <@jpew:matrix.org> We made a change to the variable and gated it, but the periodic (cron based) pipeline didn't see it18:56
would be curious to see what the job info in the dashboard reports the variable.. or the dashboard doesnt report that.. i dont remember :)
@jpew:matrix.orgmnaser: I've only ever seen it in inventory.yaml, but i can poke around more18:57
@mnaser:matrix.orgjpew: yeah the UI shows the vars -- https://zuul.opendev.org/t/vexxhost/job/ansible-role-openmanage-integration 18:58
@jpew:matrix.orgAh let me check18:58
@jpew:matrix.orgIt's correct now, but I did a `full-reconfigure` to try and get us back working19:02
@jpew:matrix.orgso that may have kicked it back out19:02
@fungicide:matrix.org> <@jpew:matrix.org> We made a change to the variable and gated it, but the periodic (cron based) pipeline didn't see it19:07
and the periodic pipeline trigger is using the same branch of the repo as the branch where you updated the configuration? just want to make sure there's no branched configuraton (implicit branch matching) at work
@jpew:matrix.orgYes, both on master19:07
@fungicide:matrix.organdthe periodic build was triggered after the configuration change merged, not before or around the same time and maybe queued waiting for a node assignment?19:09
@fungicide:matrix.org * and the periodic build was triggered after the configuration change merged, not before or around the same time and maybe queued waiting for a node assignment?19:09
@jpew:matrix.orgfungi: The periodioc change was triggered several hours later19:09
@fungicide:matrix.orgsounds likely to be a bug in that case. just asking since i know in opendev most of our tenants put periodic pipeline priority dead last and i've seen periodic jobs queued awaiting node assignments for over a day when resources are otherwise occupied by higher-priority pipelines19:14
@fungicide:matrix.orgso that could have been a simple explanation for running with older configuration19:14
@fungicide:matrix.orgjpew: if you can isolate the bit of the scheduler debug log where the merge event was reacted to, which should have resulted in a soft configuration update, maybe you'll find an error buried in there19:16
@jpew:matrix.orgI'll see if I can reproduce it19:22
-@gerrit:opendev.org- Zuul merged on behalf of Vasyl Vavrychuk: [zuul/zuul] 838166: doc: Add command_socket attribute in web section https://review.opendev.org/c/zuul/zuul/+/83816619:50
@clarkb:matrix.orgif zuul/web/build exists you cannot build the docker image. Should the docker image rm web/build after copying it if present?20:32
@clarkb:matrix.orgI ended up just doing a git clean -xfd in the repo to get moving again. I can see an argument for failing if not clean to remind you that producing a build from unclean sources might produce unexpected results20:33
@jim:acmegating.comi think either of those things would be a good improvement20:39
@clarkb:matrix.orgok once I've finished checking this assemble update locally I'll work on a patch for that20:46
@clarkb:matrix.orghrm this isn't as straightforward as I thought it might be. We don't want to install git until after bindep runs so that we can record git being installed as a bindep dep21:04
@clarkb:matrix.orgbut we need git to run `git clean -xfd21:05
@clarkb:matrix.organd we don't want assemble to run git clean because there may be out of tree content we actually do want like web/build21:05
@iwienand:matrix.orgwe're debugging some missing console logs in #openstack-infra that's looking more like a zuul issue collecting output22:50
@iwienand:matrix.orge.g. https://zuul.opendev.org/t/openstack/build/f90ff1b3cb484237873dbc8277543305/console22:50
@clarkb:matrix.orgI want to say this came up before fwiw and is a known issue22:50
@iwienand:matrix.orgdoes not show "Add centos-release-openstack for CentOS 9" from https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/838763/1/playbooks/wheel-cache/pre.yaml#3922:51
@iwienand:matrix.orglooking at the json output we can see hosts: is blank -> https://imgur.com/a/8Y4Wpxs22:52
@iwienand:matrix.orgthat's a "yum" call.  but the same thing happens with "packages", e.g.22:53
@iwienand:matrix.orghttps://opendev.org/zuul/zuul-jobs/src/branch/master/roles/bindep/tasks/packages.yaml#L11 -> this step22:53
@iwienand:matrix.orgalso does not have content in the json, as above22:54
@jim:acmegating.comianw: iirc, the yum module is unusual and doesn't include output in the usual way.22:55
@iwienand:matrix.orghrm, it's intereting that "package:" also falls into this then22:56
@iwienand:matrix.orgi would have thought that would wrap things differently22:56
@clarkb:matrix.orgI think package may call into yum on yum platforms? something like that22:56
@clarkb:matrix.orgits possible that package works on apt platforms for this reason22:56
@iwienand:matrix.orgyeah, i'm sure it does, just i would have thought it would wrap the output more generically22:57
@iwienand:matrix.orgI also seem to remember having a discussion about displaying this output, but i don't think it was this issue specifically....22:58
@iwienand:matrix.orghttps://review.opendev.org/c/zuul/zuul/+/734833 is what i'm thinking of23:01
@iwienand:matrix.orgthat is more about picking up failures.  this is a different case of no output being recorded at all23:03
@jim:acmegating.comyeah, no output in json could suggest this is a different issue23:06
@iwienand:matrix.orggiven the impending merge of many ansible changes, is chasing this further at this point likely not worth it?23:08
@iwienand:matrix.orgi'm guessing it must be somewhere in the zuul_json plugin23:08
@jim:acmegating.comianw: hard to say, but i feel it's likely independent.  no major changes to zuul_json were needed for ansible 5, so this could still be present when we upgrade (because it's a bug in zuul_json), or it could be fixed in ansible-core >= 2.12 because yum/package changed.23:10
@iwienand:matrix.orgi should be able to run a local ansible test, with a recent-ish ansible and a simple playbook that just does a "yum:" and just put zuul_json in as a standalone plugin, right?23:13
@iwienand:matrix.orgistr trying to debug these plugins before it was impossible to get debugging output, i think i ended up writing things out to a file in /tmp.  but modulo that should be tractable23:14

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!