Tuesday, 2024-04-30

-@gerrit:opendev.org- Andrei Dmitriev proposed: [zuul/nodepool] 916728: Introduce use-internal-ip parameter to OpenStack https://review.opendev.org/c/zuul/nodepool/+/91672806:40
-@gerrit:opendev.org- Bernhard Berg proposed: [zuul/zuul-jobs] 917539: prepare-workspace-git: Add allow deleting current branch https://review.opendev.org/c/zuul/zuul-jobs/+/91753907:27
-@gerrit:opendev.org- Andrei Dmitriev proposed: [zuul/nodepool] 916729: Cmd: add metastatic backing nodes removal https://review.opendev.org/c/zuul/nodepool/+/91672908:45
-@gerrit:opendev.org- Andrei Dmitriev proposed: [zuul/nodepool] 916729: Cmd: add metastatic backing nodes removal https://review.opendev.org/c/zuul/nodepool/+/91672909:25
-@gerrit:opendev.org- Andrei Dmitriev proposed: [zuul/nodepool] 916729: Cmd: add metastatic backing nodes removal https://review.opendev.org/c/zuul/nodepool/+/91672909:31
-@gerrit:opendev.org- Andrei Dmitriev proposed: [zuul/nodepool] 916729: Cmd: add metastatic backing nodes removal https://review.opendev.org/c/zuul/nodepool/+/91672909:33
-@gerrit:opendev.org- Bernhard Berg proposed: [zuul/zuul-jobs] 917539: prepare-workspace-git: Add allow deleting current branch https://review.opendev.org/c/zuul/zuul-jobs/+/91753911:27
@bridgefan:matrix.orgDoe anyone know what user ansible playbooks run as inside, of quay.io/zuul-ci/zuul-executor:10.0.0 ?17:16
@bridgefan:matrix.orgI recently attempted to do an upgrade from zuul 8.3.2dev to 9.0.0 then 10.0.017:17
@bridgefan:matrix.organd after I do that I seem to be getting issues where the executor can't access the zuul-output log server17:17
@bridgefan:matrix.org2024-04-30 15:36:04.390093 | TASK [upload-logs : Create log directories]17:17
2024-04-30 15:36:04.803953 | localhost | ERROR
2024-04-30 15:36:04.804130 | localhost | {
2024-04-30 15:36:04.804163 | localhost | "msg": "There was an issue creating /srv/static/logs/81 as requested: [Errno 13] Permission denied: b'/srv/static/logs/81'",
2024-04-30 15:36:04.804191 | localhost | "path": "/srv/static/logs/81/681/1/check/appimage-build-emacs-nox/aef2896"
2024-04-30 15:36:04.804216 | localhost | }
@bridgefan:matrix.orgthe /srv/static/logs folder is mounted into the executor (using docker-compose) and uses the UID 1000 user17:18
@bridgefan:matrix.orgIf I exec into the executor I see:17:19
@bridgefan:matrix.orgdrwxrwxr-x  4 1000 1000 4096 Jun 26  2023 0117:19
@bridgefan:matrix.organd I can mkdir there just fine (seems I exec as root)17:20
@bridgefan:matrix.orgAny idea why I might still be getting permissions issues?17:20
@clarkb:matrix.orgthe container image wasn't changed between those versions as far as I know17:21
@clarkb:matrix.orgperhaps the bind mount side is what chnaged affecting the perms in the container?17:22
@bridgefan:matrix.orgthe strange thing is i can manually create directories, it's just ansible doesn't like it for some reason17:23
@bridgefan:matrix.orgI'll see if the docker-compose for the example change the mounting17:23
@bridgefan:matrix.orgI don't think I see the volume mount changing.  Though I convert from a docker volume to a folder myself.17:31
@bridgefan:matrix.orgThank you for the idea at least17:31
@clarkb:matrix.orgdid you check the permissions at the deeper path?17:32
@clarkb:matrix.orgthe top level perms look good but maybe thei ssue is deeper in the tree17:32
@bridgefan:matrix.orgIn the above example, /srv/static/logs all exist already but 81 (and everything after) needs to be created17:34
@bridgefan:matrix.orgI have checked /srv/static/logs has 775 and just quickly looking through a few other example directories (not 81) I seem to see they also have 775 with same user (UID 1000, not root)17:35
@bridgefan:matrix.orgactually you know what I misread /srv/static/logs was only 755 but all subdirectories were 77517:40
@bridgefan:matrix.orglet me see if making /src/static/logs 775 as well, helps17:40
@bridgefan:matrix.orgStill no luck18:06
@clarkb:matrix.orgya if it was already owned by 1000:1000 then changing the group perms shouldn't matter18:13
@bridgefan:matrix.orgI was poking around the container and noticed that there is a user "zuul".  When I try to make the directory with it, I see the original permissions denied error18:17
@bridgefan:matrix.orgat least I may be able to repro the issue now without ansible18:18
@clarkb:matrix.orglooking at the container images the useradd sets uid to 10001. I wonder where 1000 is coming from18:21
@clarkb:matrix.orgperhaps from the hosting side and you just need to explicitly chown to 1000118:21
@bridgefan:matrix.org1000 should be coming from the host side user (default user of 1000)18:22
@bridgefan:matrix.orgsince the logging container also needs the same folder, I wonder if chowning to 10001 would be safe.  It is an interesting idea to try though18:22
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 917782: Speed up merger git resets https://review.opendev.org/c/zuul/zuul/+/91778218:31
@bridgefan:matrix.orgFinally solved the issue.  I needed to chown to root:root.  Interestingly enough 10001:10001 didn't work for me.  I suppose it makes sense given that I found the zuul.conf for the example zuul docker-compose which has a default_username=root line.19:13
@bridgefan:matrix.orgThanks for your help Clark19:13
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 916142: Ignore /COMMIT_MSG in files matchers even more https://review.opendev.org/c/zuul/zuul/+/91614220:29
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 916142: Ignore /COMMIT_MSG in files matchers even more https://review.opendev.org/c/zuul/zuul/+/91614220:29
@clarkb:matrix.orgcorvus: why is the function in https://review.opendev.org/c/zuul/zuul/+/917782/1/zuul/merger/merger.py called `getPackedRefs` when it doesn't seem to list only packed refs?22:19
@clarkb:matrix.orgor maybe for_each_ref is packed ref specific?22:19
@clarkb:matrix.orgThe reason I ask is that I'm worried we're skipping some refs potentially. The old code that used that method fell back to looking up refs directly if they didn't end up in that list which should be safe but we don't seem to do that anymore22:21
@clarkb:matrix.organd if we don't do that anymore because it is unnecessary because we're actually looking at all refs then maybe the function should be renamed?22:21
@clarkb:matrix.org2e785ac7b69b8730525a4fc3c7463799e19baf60 is the commit that simplified thigns and stopped doing the fallback22:22
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed:22:36
- [zuul/zuul] 915514: Refactor branch cache to support more queries https://review.opendev.org/c/zuul/zuul/+/915514
- [zuul/zuul] 915515: Add a github graphql query for branch protection https://review.opendev.org/c/zuul/zuul/+/915515
- [zuul/zuul] 915516: Add support for excluding locked branches https://review.opendev.org/c/zuul/zuul/+/915516
@jim:acmegating.comClark: i see nothing in the docs for "git for-each-ref" that would suggest that it's only packed-refs22:42
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 917782: Speed up merger git resets https://review.opendev.org/c/zuul/zuul/+/91778222:47
@jim:acmegating.comClark: additionally, my local testing had a mixture of packed and loose refs with no observed problems.22:51
@clarkb:matrix.orgya I would also expect the test suite to actually be almost 100% loose refs since those repos are created on the fly23:00
@clarkb:matrix.organd won't have time to repack during a test run23:00
@clarkb:matrix.orgcorvus: I think I identified why the tests on the commit message change are failing23:02
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 916142: Ignore /COMMIT_MSG in files matchers even more https://review.opendev.org/c/zuul/zuul/+/91614223:09
@jim:acmegating.com> <@clarkb:matrix.org> and won't have time to repack during a test run23:10
yes -- though we do have at least one test that explicitly repacks

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