Skip to content

Commit 137b9ef

Browse files
committed
tests/multi-server: run the kafka broker privileged
seccomp:unconfined + apparmor:unconfined wasn't enough to get redpanda past seastar's reactor init on the self-hosted CI runners (close() still failed with EINVAL on an internal fd). Replace the narrow security_opt overrides with `privileged: true`, which turns off seccomp + AppArmor + capability bounding + /dev restrictions in one go - the minimum that reliably starts the broker across DinD runner configurations. Test-only scope, compose-network-only exposure.
1 parent 717c176 commit 137b9ef

1 file changed

Lines changed: 5 additions & 12 deletions

File tree

src/tests/multi-server/environments/kafka.yml.j2

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,11 @@ x-common-config: &id001
3131
services:
3232
kafka:
3333
image: docker.redpanda.com/redpandadata/redpanda:latest
34-
# Redpanda's seastar reactor opens io_uring / eventfd / perf_event
35-
# fds during startup; the default Docker seccomp AND AppArmor
36-
# profiles on the self-hosted CI runners between them block enough
37-
# of those that close() fails with EINVAL on a stale handle and the
38-
# broker aborts during init. (Local Docker Desktop's profiles are
39-
# looser and don't hit this.) Opting the kafka service out of both
40-
# sandboxes unblocks CI without giving the broker any broader host
41-
# access - it only talks to the two other containers on the compose
42-
# network.
43-
security_opt:
44-
- seccomp:unconfined
45-
- apparmor:unconfined
34+
# Redpanda's seastar reactor aborts during init under the default
35+
# Docker sandbox on self-hosted CI runners (close() EINVAL on an
36+
# internal fd). Run privileged so the broker starts reliably; it's
37+
# only exposed on this compose network.
38+
privileged: true
4639
# Override the default command to advertise the broker under its
4740
# compose service name. Without this the broker tells clients to
4841
# reconnect at 127.0.0.1:9092 which only works when client and

0 commit comments

Comments
 (0)