Wednesday, 2022-04-13

-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 837629: Add suuport for Ansible 5 https://review.opendev.org/c/zuul/zuul/+/83762900:37
-@gerrit:opendev.org- Zuul merged on behalf of James E. Blair https://matrix.to/#/@jim:acmegating.com: [zuul/nodepool] 837567: Fix default python paths in aws, azure, ibmvpc drivers https://review.opendev.org/c/zuul/nodepool/+/83756706:59
@mhuin:matrix.orghey zuul-maint, I submit this for your consideration: https://review.opendev.org/c/zuul/zuul/+/837407 - This will make the admin client behave the same way that it did prior to the gearmanectomy, ie handle auth tokens silently if there is a config file to generate them09:20
@mhuin:matrix.orgThis may be less confusing for admins used to zuul prior to v509:21
-@gerrit:opendev.org- yatin proposed: [zuul/zuul-jobs] 837735: ensure-sphix: upgrade setuptools in venv https://review.opendev.org/c/zuul/zuul-jobs/+/83773515:08
-@gerrit:opendev.org- Zuul merged on behalf of yatin: [zuul/zuul-jobs] 837735: ensure-sphix: upgrade setuptools in venv https://review.opendev.org/c/zuul/zuul-jobs/+/83773515:58
-@gerrit:opendev.org- Zuul merged on behalf of Simon Westphahl: [zuul/zuul] 837117: Update change deps on refresh after cache miss https://review.opendev.org/c/zuul/zuul/+/83711716:10
-@gerrit:opendev.org- Zuul merged on behalf of Dong Zhang: [zuul/zuul] 834324: Create remote ref when it does not exist https://review.opendev.org/c/zuul/zuul/+/83432416:10
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 837629: Add suuport for Ansible 5 https://review.opendev.org/c/zuul/zuul/+/83762916:29
@jim:acmegating.comdmsimard: i'm adding ansible 5 support to zuul, and i have a q for you (and anyone else) -- let's take it as a given that we're going to use the ansible community distro (so "pip install ansible>5.0").  but recall that zuul supports multiple ansible versions.  in the zuul job definitions, where users can specify what version they want, should we ask them to say "ansible-version: 5"  or  should we say "ansible-version: 2.12" and just leave it as an implementation detail that we're installing the community distro?16:34
@jim:acmegating.commy inclination, and the way the patch is currently written, is to go with "ansible-version: 5" because that seems to me to be the thing that users are most likely to associate with "ansible".  but i have a small doubt after seeing that ansible itself reports "{{ansible.version_major}}" as 2.16:36
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed:17:37
- [zuul/zuul] 837629: Add suuport for Ansible 5 https://review.opendev.org/c/zuul/zuul/+/837629
- [zuul/zuul] 837752: Remove built-in ARA support https://review.opendev.org/c/zuul/zuul/+/837752
@jim:acmegating.comI think the time is right to remove the built-in ara support; if that's a hardship for anyone let me know.  (cc dmsimard)17:38
@clarkb:matrix.orgcorvus: fwiw I've found the ansible version to be extremely confusing due to all that and I never know what the correct version is17:38
@clarkb:matrix.orgwe might want to use a lookup table and map between both types of versions as a result17:39
@jim:acmegating.comClark: i feel another way of phrasing my question is "what do most people think 'ansible version' means?"17:39
@clarkb:matrix.orgor maybe we can find docuemtnation that explains it and link to that (I'm not aware of that existing but it must?)17:39
@jim:acmegating.comClark: yeah, a lookup table (so you can specify both) is a possibility -- but then it makes grepping for "ansible-version: X" difficult if you want to look for what's being used.17:40
@clarkb:matrix.orgit also allows the current confusion in the ansible world to continue on without abandon17:41
@clarkb:matrix.orgbut I've definitely seen ansible refered to in both ways17:41
@clarkb:matrix.orghttps://pypi.org/project/ansible/ is maybe what we should consider canonical?17:42
@clarkb:matrix.orgwhat do the ansible docs say17:42
@clarkb:matrix.orghttps://docs.ansible.com/ansible/latest/index.html they say '5' in the top left too17:42
@jim:acmegating.comClark: both of those weighed heavily in my thinking17:42
@clarkb:matrix.orgthsoe two things together have me leaning towards '5' instead of '2.x'17:42
@clarkb:matrix.orghttps://docs.ansible.com/ansible/devel/reference_appendices/release_and_maintenance.html#ansible-community-changelogs too17:44
@dmsimard:matrix.org> <@jim:acmegating.com> I think the time is right to remove the built-in ara support; if that's a hardship for anyone let me know.  (cc dmsimard)18:09
I have no strong opinion on it and don't have the bandwidth for tackling some form of upgrade of the current implementation, thank you for maintaining it all this time.
In the future I'd love to see an easy way for operators (or users?) to enable arbitrary callback plugins in Zuul which could be used to enable ara, amongst other things :)
@dmsimard:matrix.orgara has grown an API and a lot of useful features in the meantime, feel free to reach out if you have questions :p18:10
@dmsimard:matrix.org> <@jim:acmegating.com> dmsimard: i'm adding ansible 5 support to zuul, and i have a q for you (and anyone else) -- let's take it as a given that we're going to use the ansible community distro (so "pip install ansible>5.0").  but recall that zuul supports multiple ansible versions.  in the zuul job definitions, where users can specify what version they want, should we ask them to say "ansible-version: 5"  or  should we say "ansible-version: 2.12" and just leave it as an implementation detail that we're installing the community distro?18:12
2.12 would be `ansible-core`, 5 would be `ansible` so not exactly the same thing. ansible contains the "battery included" (kind of like ansible 2.9) whereas ansible-core has just a set of built-in plugins/modules.
@dmsimard:matrix.orgThere's a use case for both -- some install the ansible package and run with that, some install just ansible-core and then cherry-pick the collections they want18:14
@jim:acmegating.com> <@dmsimard:matrix.org> I have no strong opinion on it and don't have the bandwidth for tackling some form of upgrade of the current implementation, thank you for maintaining it all this time.18:16
> In the future I'd love to see an easy way for operators (or users?) to enable arbitrary callback plugins in Zuul which could be used to enable ara, amongst other things :)
Totally agree -- I event wrote basically the same thing in the commit msg. :)
@dmsimard:matrix.orgNote that there are security implications with callback plugins in that they can run arbitrary code on the controller and receive unfiltered output (i.e, the callback is the one responsible for "respecting" no_log, flashback to https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2017-7473)18:20
@dmsimard:matrix.orgSo if you do want to enable arbitrary callbacks, there's probably some gotchas18:21
@jim:acmegating.comgood point; probably would be better as operator-configured rather than user-configured because of that18:24
@dmsimard:matrix.orgyeah, allowing someone to send a change request/PR that adds a callback which gets loaded and can read/write anything is probably a box better left closed18:25
@tristanc_:matrix.orgcorvus: how about available libraries, for example ibm-cos-sdk, is this going to be hard-coded in the ansible-config.conf ?18:27
@tristanc_:matrix.orgdmsimard: i think the unrestricted ansible already enabels that, read/write anything where ansible-playbook is running18:29
@dmsimard:matrix.orgoh I forgot about that spec, my zuul is rusty but I was thinking in the current context with bubblewrap with the forked modules18:32
@jim:acmegating.com> <@tristanc_:matrix.org> dmsimard: i think the unrestricted ansible already enabels that, read/write anything where ansible-playbook is running18:32
yeah, though in the case of hypethetical user-configured callback plugins, we'd want to avoid a situation where an untrusted-job could configure a callback plugin that was included in a run of a trusted pre-playbook.
@jim:acmegating.comso i think even in the brave new world of unrestricted ansible, we have to be careful about that.  there may still be a way to do it user-level though, if we scope it to the playbook context of the job... anyway... details probably aren't important now; i think we all agree something like that would be cool.  :)18:34
@jim:acmegating.com> <@tristanc_:matrix.org> corvus: how about available libraries, for example ibm-cos-sdk, is this going to be hard-coded in the ansible-config.conf ?18:38
yeah, i think we have included the libraries required for log uploading by default, but i forgot that for ibm and azure
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 837757: Add IBM and Azure deps to the default ansible config https://review.opendev.org/c/zuul/zuul/+/83775718:40
@jim:acmegating.comtristanC: ^ i put that at the end of the stack to avoid conflicts; but we could move it to the beginning if that is preferred18:41
@clarkb:matrix.orgcorvus:  if they are missing from current installations may be better to land that separately sooner?18:42
@clarkb:matrix.orgsorry git exploded yseterday and I haven't had a chance to look at those changes yet18:43
@jim:acmegating.comnp, i'm still finalizing the ansible 5 change (slightly slower dev/test cycle on that because of the remote tests)18:43
@jim:acmegating.comyeah, i can do that.  will just take a few mins to rebase and patch bomb.18:44
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed:18:47
- [zuul/zuul] 837757: Add IBM and Azure deps to the default ansible config https://review.opendev.org/c/zuul/zuul/+/837757
- [zuul/zuul] 837418: Remove restricted Ansible documentation https://review.opendev.org/c/zuul/zuul/+/837418
- [zuul/zuul] 837419: Remove ansible plugin tests https://review.opendev.org/c/zuul/zuul/+/837419
- [zuul/zuul] 837436: Remove unused remote module tests https://review.opendev.org/c/zuul/zuul/+/837436
- [zuul/zuul] 837420: Remove unused ansible modules https://review.opendev.org/c/zuul/zuul/+/837420
- [zuul/zuul] 837421: Remove localhost restriction from command.py https://review.opendev.org/c/zuul/zuul/+/837421
- [zuul/zuul] 837422: Remove workspace path check from zuul_return https://review.opendev.org/c/zuul/zuul/+/837422
- [zuul/zuul] 837423: Remove unused functions from zuul.ansible.paths https://review.opendev.org/c/zuul/zuul/+/837423
- [zuul/zuul] 837424: Remove actiongeneral / actiontrusted dirs https://review.opendev.org/c/zuul/zuul/+/837424
- [zuul/zuul] 837425: Remove plugin tests https://review.opendev.org/c/zuul/zuul/+/837425
- [zuul/zuul] 837426: Remove executor plugin checks https://review.opendev.org/c/zuul/zuul/+/837426
- [zuul/zuul] 837427: Add docs about additional security considerations https://review.opendev.org/c/zuul/zuul/+/837427
- [zuul/zuul] 837428: Remove unrestricted Ansible spec https://review.opendev.org/c/zuul/zuul/+/837428
- [zuul/zuul] 837752: Remove built-in ARA support https://review.opendev.org/c/zuul/zuul/+/837752
- [zuul/zuul] 837629: Add suuport for Ansible 5 https://review.opendev.org/c/zuul/zuul/+/837629
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 837629: Add suuport for Ansible 5 https://review.opendev.org/c/zuul/zuul/+/83762918:54
@jim:acmegating.comClark: is this error the git thing you mentioned yesterday?20:38
@jim:acmegating.comhttps://zuul.opendev.org/t/zuul/build/641bc13973a74f22bd674446da11111e20:38
@clarkb:matrix.orgyes looks like it20:38
@clarkb:matrix.orgthe underlying cause is that when you run pip install the resulting pbr invocation does git commands to inspect the repo to find things like what is the version and what files should we include. When git runs in a repo now it by default only succeeds if the repo files are owned by the current user20:39
@clarkb:matrix.orgwhat this means is that you can run pip as a different user to match the files, you can chown the files, you can do an sdist/wheel build in the repo as the user then install as another user (helpful for global installs if needing to install as root), or you can tell git you trust the repo by doing `git config --system safe.directory=/path/to/repo` or `git config --global safe.directory=/path/to/repo`20:41
@jim:acmegating.comhttps://opendev.org/zuul/zuul/src/branch/master/playbooks/zuul-stream/pre.yaml#L15 is the line20:42
@jim:acmegating.comseems like doing the build would be an easy/correct fix?20:42
@clarkb:matrix.orgmaybe. fungi has been struggling to get devstack to do that reliably today (there are details that have to be worked through)20:43
@clarkb:matrix.organother option might be to install to a virtualenv and not set become: yes20:43
@clarkb:matrix.org(then optionally symlink the binary names into path or update path)20:43
@jim:acmegating.comvenv sounds like a can of worms i would not like to open20:43
@clarkb:matrix.orgfungi: can probably evaluate how difficult doing the package build first would be in this case though. Its a lot less generic than the devstack case20:43
@clarkb:matrix.orgsince you don't have extras to worry about and its a specific package (zuul)20:43
@jim:acmegating.comif the build is problematic, then the global option may be better20:43
@clarkb:matrix.orgso ya actually I think making a wheel/sdist and installing that may be straightforward here20:44
@jim:acmegating.comk20:44
@jim:acmegating.comi'll see if i can mock that up in a container real quick to verify it (since this is the stream job, it's not easy to replicate)20:44
@clarkb:matrix.orgas a side note git doesn't care about shared group ownership. Only user ownership matters for its check20:46
@clarkb:matrix.org(we tested this and ianw read the C and we reached the same conclusion on that)20:46
@jim:acmegating.comin our docker builds, i think we build a wheel and install it; and we have this comment: https://opendev.org/zuul/zuul/src/branch/master/Dockerfile#L37-L4020:53
@jim:acmegating.comwhich is referring to this: https://opendev.org/zuul/zuul/src/branch/master/zuul/_setup_hook.py20:53
@jim:acmegating.comso iiuc, if we do an sdist or wheel build and install -- that may not run?20:54
@clarkb:matrix.orgthat is possible but you are lready running it explicitly in that playbook https://opendev.org/zuul/zuul/src/branch/master/playbooks/zuul-stream/pre.yaml#L1920:54
@jim:acmegating.comhaving said that; i don't actually see anything about manage ansible in that setup hook20:54
@clarkb:matrix.organd ya I'm not sure it is automatic either way. maybe it was intended to be then we never did it or changed our minds?20:55
@jim:acmegating.comyeah, i think that comment may be wrong20:55
@jim:acmegating.comwrong in that it should really say that the javascript build isn't automatic20:55
@jim:acmegating.comthat's probably not important for this job, so i'll proceed as discussed earlier20:55
@clarkb:matrix.org++20:55
@clarkb:matrix.orgoh also worth noting you cannot do `git push -c safe.directory=/path/to/repo origin master` that config option is only respected if in the global or system config files20:56
@clarkb:matrix.orgglobal in this case is global per user20:56
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 837766: Fix git error in stream jobs https://review.opendev.org/c/zuul/zuul/+/83776621:05
@jim:acmegating.comClark: ^ how's that look?21:05
@clarkb:matrix.orgI think fungi found that doing the install wiht *.whl will install all of the wheels that were installed to make the wheel. In openstack this causes problems due to constraints but here we should be fine. I think that may just work21:06
@jim:acmegating.comyeah, should be a single file21:07
@clarkb:matrix.orgoh that may just be doing pip wheel though21:07
@clarkb:matrix.orgnot bdist_wheel21:07
@clarkb:matrix.orgI called out one other thing (bdist_wheel is expected to go away one day in favor of using the `build` tool)21:07
@clarkb:matrix.orgbut I think that may work21:07
@jim:acmegating.comi just used the incantation from the assemble script, assuming it was doing approximately what we wanted21:07
@jim:acmegating.comClark: it looks like the stream jobs passed on that change21:14
@jim:acmegating.comhttps://zuul.opendev.org/t/zuul/build/7b693b3a41124887aff893a73985d586/console21:15
@jim:acmegating.comi think that's good enough for me to rebase the stack and patchbomb again21:15
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed:21:17
- [zuul/zuul] 837766: Fix git error in stream jobs https://review.opendev.org/c/zuul/zuul/+/837766
- [zuul/zuul] 837757: Add IBM and Azure deps to the default ansible config https://review.opendev.org/c/zuul/zuul/+/837757
- [zuul/zuul] 837418: Remove restricted Ansible documentation https://review.opendev.org/c/zuul/zuul/+/837418
- [zuul/zuul] 837419: Remove ansible plugin tests https://review.opendev.org/c/zuul/zuul/+/837419
- [zuul/zuul] 837436: Remove unused remote module tests https://review.opendev.org/c/zuul/zuul/+/837436
- [zuul/zuul] 837420: Remove unused ansible modules https://review.opendev.org/c/zuul/zuul/+/837420
- [zuul/zuul] 837421: Remove localhost restriction from command.py https://review.opendev.org/c/zuul/zuul/+/837421
- [zuul/zuul] 837422: Remove workspace path check from zuul_return https://review.opendev.org/c/zuul/zuul/+/837422
- [zuul/zuul] 837423: Remove unused functions from zuul.ansible.paths https://review.opendev.org/c/zuul/zuul/+/837423
- [zuul/zuul] 837424: Remove actiongeneral / actiontrusted dirs https://review.opendev.org/c/zuul/zuul/+/837424
- [zuul/zuul] 837425: Remove plugin tests https://review.opendev.org/c/zuul/zuul/+/837425
- [zuul/zuul] 837426: Remove executor plugin checks https://review.opendev.org/c/zuul/zuul/+/837426
- [zuul/zuul] 837427: Add docs about additional security considerations https://review.opendev.org/c/zuul/zuul/+/837427
- [zuul/zuul] 837428: Remove unrestricted Ansible spec https://review.opendev.org/c/zuul/zuul/+/837428
- [zuul/zuul] 837752: Remove built-in ARA support https://review.opendev.org/c/zuul/zuul/+/837752
- [zuul/zuul] 837629: Add suuport for Ansible 5 https://review.opendev.org/c/zuul/zuul/+/837629
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed:21:21
- [zuul/zuul] 837752: Remove built-in ARA support https://review.opendev.org/c/zuul/zuul/+/837752
- [zuul/zuul] 837629: Add support for Ansible 5 https://review.opendev.org/c/zuul/zuul/+/837629
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 837770: Delete repo if unable to reset https://review.opendev.org/c/zuul/zuul/+/83777021:46
@gchauvel:matrix.orgcorvus: I used bisect to find that https://review.opendev.org/c/zuul/zuul/+/835100 is breaking quick-start tutorial for users.  check and gate pipelines are not displayed on the web interface, I had to restart the web container to see them.21:54
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul-jobs] 837416: Add per-build WinRM cert generation https://review.opendev.org/c/zuul/zuul-jobs/+/83741622:05
@jim:acmegating.comguillaumec: thanks; i'm surprised we don't check that in the test22:06
@jim:acmegating.comi guess by that point we assume that if the pipelines are working, they probably show up in the web ui22:06
@jim:acmegating.comguillaumec: i see the problem and will work on a test+fix22:51
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 837774: Fix background layout updates in zuul-web https://review.opendev.org/c/zuul/zuul/+/83777423:07
@jim:acmegating.comguillaumec: ^ thanks again for finding that.  zuul-maint: that's probably a relatively important bugfix -- i think it doesn't just affect startup but could cause zuul-web to show out-of date info during ongoing operation too.23:09
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 837774: Fix background layout updates in zuul-web https://review.opendev.org/c/zuul/zuul/+/83777423:09
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed:23:44
- [zuul/zuul] 837752: Remove built-in ARA support https://review.opendev.org/c/zuul/zuul/+/837752
- [zuul/zuul] 837629: Add support for Ansible 5 https://review.opendev.org/c/zuul/zuul/+/837629
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 837629: Add support for Ansible 5 https://review.opendev.org/c/zuul/zuul/+/83762923:52
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 837770: Delete repo if unable to reset https://review.opendev.org/c/zuul/zuul/+/83777023:53

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