Wednesday, 2025-04-16

-@gerrit:opendev.org- Dong Zhang proposed: [zuul/zuul] 940872: Implement keystore functions for OIDC RS256 https://review.opendev.org/c/zuul/zuul/+/94087206:48
-@gerrit:opendev.org- Dong Zhang proposed: [zuul/zuul] 941629: Use ZuulTreeCache for OIDC signing keys https://review.opendev.org/c/zuul/zuul/+/94162906:48
-@gerrit:opendev.org- Dong Zhang proposed: [zuul/zuul] 940971: Manage OIDC signing key rotation https://review.opendev.org/c/zuul/zuul/+/94097107:23
-@gerrit:opendev.org- Dong Zhang proposed: [zuul/zuul] 942432: Implement zuul-web OIDC endpoints https://review.opendev.org/c/zuul/zuul/+/94243207:25
-@gerrit:opendev.org- Dong Zhang proposed: [zuul/zuul] 942886: Prepare oidc token for playbook execution in executor. https://review.opendev.org/c/zuul/zuul/+/94288607:38
-@gerrit:opendev.org- Dong Zhang proposed: [zuul/zuul] 941235: Implement command for deleting OIDC signing keys https://review.opendev.org/c/zuul/zuul/+/94123507:39
-@gerrit:opendev.org- Dong Zhang proposed on behalf of James E. Blair https://matrix.to/#/@jim:acmegating.com: [zuul/zuul] 947293: Update documentation for Zuul as OIDC ID Provider https://review.opendev.org/c/zuul/zuul/+/94729307:42
-@gerrit:opendev.org- Dong Zhang proposed: [zuul/zuul] 942886: Prepare oidc token for playbook execution in executor. https://review.opendev.org/c/zuul/zuul/+/94288608:28
-@gerrit:opendev.org- Dong Zhang proposed: [zuul/zuul] 941235: Implement command for deleting OIDC signing keys https://review.opendev.org/c/zuul/zuul/+/94123508:29
-@gerrit:opendev.org- Dong Zhang proposed on behalf of James E. Blair https://matrix.to/#/@jim:acmegating.com: [zuul/zuul] 947293: Update documentation for Zuul as OIDC ID Provider https://review.opendev.org/c/zuul/zuul/+/94729308:30
-@gerrit:opendev.org- Zuul merged on behalf of Benjamin Schanzel: [zuul/zuul] 940500: web: Use a select filter for pipelines and queues on status page https://review.opendev.org/c/zuul/zuul/+/94050012:06
-@gerrit:opendev.org- Andrei Dmitriev proposed: [zuul/nodepool] 916729: Cmd: add metastatic backing nodes removal https://review.opendev.org/c/zuul/nodepool/+/91672916:37
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 947526: Gerrit: retry fetching refs and HEAD https://review.opendev.org/c/zuul/zuul/+/94752617:15
@jim:acmegating.comClark: that change is based on the discussion/debugging we just did in #opendev where we observed a connection problem to gerrit cause zuul not to reconfigure a tenant after a new branch was created17:17
@clarkb:matrix.orgcorvus: one small piece of feedback on that17:22
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 947526: Gerrit: retry fetching refs and HEAD https://review.opendev.org/c/zuul/zuul/+/94752617:29
@jim:acmegating.comClark: done17:29
@clarkb:matrix.orgthanks +2 from me17:33
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 947530: Fix exception handling in Gerrit event connector https://review.opendev.org/c/zuul/zuul/+/94753018:15
@jim:acmegating.comClark: ^ that should address the other oddity we saw18:16
@clarkb:matrix.orgcorvus: +2 on that one as well20:23
@winter:catgirl.cloudhey folks! i'm trying the containerized example, and i'm running into this issue with the executor:23:07
```
executor-1 | 2025-04-16 23:04:49,608 ERROR zuul.BubblewrapDriver: Non zero return code executing: setpriv --ambient-caps -all choom -n 200 -- bwrap --dir /tmp --tmpfs /tmp --dir /var --dir /var/tmp --dir /run/user/0 --ro-bind /usr /usr --ro-bind /lib /lib --ro-bind /bin /bin --ro-bind /sbin /sbin --ro-bind /etc/ld.so.cache /etc/ld.so.cache --ro-bind /etc/resolv.conf /etc/resolv.conf --ro-bind /etc/hosts /etc/hosts --ro-bind /etc/localtime /etc/localtime --ro-bind /dev/null /dev/null --bind /tmp /tmp --tmpfs /tmp/tmp --proc /proc --dev /dev --chdir /tmp --unshare-all --share-net --die-with-parent --uid 0 --gid 0 --file 3 /etc/passwd --file 4 /etc/group --unshare-user --disable-userns --ro-bind /lib64 /lib64 --ro-bind /etc/nsswitch.conf /etc/nsswitch.conf --ro-bind /etc/alternatives /etc/alternatives --ro-bind /etc/ssl/certs /etc/ssl/certs --ro-bind /etc/subuid /etc/subuid --ro-bind /etc/containers /etc/containers id
executor-1 | Traceback (most recent call last):
executor-1 | File "/usr/local/bin/zuul-executor", line 8, in <module>
executor-1 | sys.exit(main())
executor-1 | ^^^^^^
executor-1 | File "/usr/local/lib/python3.11/site-packages/zuul/cmd/executor.py", line 133, in main
executor-1 | Executor().main()
executor-1 | File "/usr/local/lib/python3.11/site-packages/zuul/cmd/__init__.py", line 267, in main
executor-1 | self.run()
executor-1 | File "/usr/local/lib/python3.11/site-packages/zuul/cmd/executor.py", line 88, in run
executor-1 | self.configure_connections(sources=True, check_bwrap=True)
executor-1 | File "/usr/local/lib/python3.11/site-packages/zuul/cmd/__init__.py", line 217, in configure_connections
executor-1 | self.connections = zuul.lib.connections.ConnectionRegistry(
executor-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
executor-1 | File "/usr/local/lib/python3.11/site-packages/zuul/lib/connections.py", line 66, in __init__
executor-1 | zuul.driver.bubblewrap.BubblewrapDriver(check_bwrap))
executor-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
executor-1 | File "/usr/local/lib/python3.11/site-packages/zuul/driver/bubblewrap/__init__.py", line 224, in __init__
executor-1 | raise Exception('bwrap execution validation failed. You can '
executor-1 | Exception: bwrap execution validation failed. You can use `zuul-bwrap /tmp id` to investigate manually.
```
it seems that `bwrap` needs more parameters than what's passed, as running the command within the container manually just shows bwrap's help
@winter:catgirl.cloudah, no, that was my fault23:09
@winter:catgirl.cloudreal issue is this:23:09
> bwrap: Creating new namespace failed, likely because the kernel does not support user namespaces. bwrap must be installed setuid on such systems.
@winter:catgirl.cloudwhich i guess is the fault of how i'm running the container23:09
@jim:acmegating.comyeah, that suggestion at the end is designed to try to show problems like that23:10
@winter:catgirl.cloud`zuul-bwrap /tmp id`'s output isn't any more helpful, maybe it'd be best to show the stdout/stderr from failed bwrap invocations?23:11
@winter:catgirl.cloudduring this check23:11
@clarkb:matrix.orgwas this from bwrap stderr/stdout?23:16
@winter:catgirl.cloudcorrect23:17
@clarkb:matrix.orgbut yes iirc the images we published are based on debian bookworm bwrap which expects user namespaces to be enabled23:17
@winter:catgirl.cloudhappy to send a CL to include it in that error output if y'all want23:17
@jim:acmegating.comdid you see it when you ran `zuul-bwrap /tmp id` ?23:17
@winter:catgirl.cloudyeah i'm trying a different linux-on-vm thing23:17
@winter:catgirl.cloud* yeah i'm trying a different linux-on-macos thing now23:17
@winter:catgirl.cloudnope23:17
@jim:acmegating.comthen that's probably a good idea.  :)  not sure why we didn't include that originally23:18
@winter:catgirl.cloud* yeah i'm trying a different linux-on-macos thing now, hopefully their kconfig enables user ns23:19
@winter:catgirl.cloud* yeah i'm trying a different linux-on-macos thing now, hopefully their kconfig enables user ns (was trying colima before, now trying docker desktop, lol)23:19
@winter:catgirl.cloud> `executor-1      | Exception: bwrap execution validation failed. You can use `zuul-bwrap /tmp id` to investigate manually.`23:20
really.
@winter:catgirl.clouddocker desktop's kernel too? :-/23:20
@winter:catgirl.cloudseems colima is using Ubuntu's cloud images as a base. surprised they don't have user namespaces enabled...?23:23
@clarkb:matrix.orgIs it possible they are then running the containers within a less privileged context (the zuul bwrap will actually do that too. It uses user namespaces to bootstrap then disables them for the runtime env they create)23:25
@winter:catgirl.cloudperhaps? they're just using `dockerd`23:25
@winter:catgirl.clouddo these images only work with podman? 😅23:25
@clarkb:matrix.orgno we run them with docker in production for opendev23:26
@jim:acmegating.comno they should work with either dockerd or podman23:26
@winter:catgirl.cloudyeah this isn't using any custom configuration, lemme poke around in the vm itsel23:26
@winter:catgirl.cloud* yeah this isn't using any custom configuration, lemme poke around in the vm itself23:26
@winter:catgirl.cloud```23:33
{
"exec-opts": [
"native.cgroupdriver=cgroupfs"
],
"features": {
"buildkit": true
}
}
```
dockerd config looks sane
@winter:catgirl.cloud> `kernel.unprivileged_userns_clone = 1`23:33
@winter:catgirl.cloudmaybe the `privileged` attribute isn't actually being... passed...?23:38
@winter:catgirl.cloudbut it's weird that that persists across multiple vm impls23:38
@winter:catgirl.cloudaaaaaaaah, i think i found the issue23:43

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