Skip to content

harvester docker plugin: attach workers to compose network, mount rucio cfg + RSE rw, log container output on exit - #62

Open
veprbl wants to merge 2 commits into
mainfrom
feature/harvester-docker-worker-rucio
Open

veprbl wants to merge 2 commits into
mainfrom
feature/harvester-docker-worker-rucio

Conversation

@veprbl

@veprbl veprbl commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Extends the harvester's DockerSubmitter/DockerMonitor plugins so worker containers can run snakemake jobs that talk to Rucio, and makes the mounts and network portable:

  • workers join the compose network (workerNetwork queue-config key, default panda-compose_default) so compose-internal hostnames — e.g. rucio in the rucio client config — resolve inside the worker; works with a custom compose project name too
  • rucio client config bind: the worker's RUCIO_CONFIG is bind-mounted by resolving the host-side source of the harvester's own bind from /proc/self/mountinfo (the docker daemon resolves sources in the host namespace); falls back to the compose-provided /config/rucio directory bind resolved the same way — no checkout-location assumptions; fails the worker loudly if neither is found
  • RSE tree mounted rw so the posix protocol can write uploads (the pre-rebase code mounted it ro)
  • container logs captured on exit (last 200 lines) before removal, so failed jobs are diagnosable from the harvester log
  • RUCIO_HOME/RUCIO_CONFIG exported into the worker for the rucio storage plugin
  • rucio published on host port 25081 for host-side clients (snakemake rucio plugin)

The queue-template containerImage hunk from the original branch was dropped in favor of PANDA_WORKER_IMAGE (merged in #63) — consumers point the queue at their own worker image via .env instead of panda-compose hardcoding it.

Validation

  • Local E2E against this branch: job without a per-job container used the queue default, container ran, exited 0, monitor captured its logs, and the output was staged out and registered in Rucio (user.alice.rebase-test2.out.txt, content verified); submitter log shows the mountinfo-resolved rucio_cfg= with no hardcoded paths
  • Snakemake plugin CI: eic/snakemake-executor-plugin-panda's PanDA Compose Integration workflow clones this branch (PANDA_COMPOSE_REF) and runs a full snakemake → PanDA → docker worker → Rucio pipeline against it, setting PANDA_WORKER_IMAGE to its locally-built snakemake worker image
  • panda-compose smoke test: green on this branch pre-rebase; post-rebase it exercises the same DockerSubmitter paths via the two integration jobs (per-job image + queue default)

Comment thread tests/test_render_panda_queues.py Fixed
Hermes Agent and others added 2 commits November 22, 2026 20:03
…io cfg + RSE rw, log container output on exit

- workers join panda-compose_default so rucio:// resolves to the rucio service
- bind the real host path of the rucio client config (resolved via /proc/self/mountinfo) and export RUCIO_HOME/RUCIO_CONFIG
- mount rseBaseDir rw so the posix protocol can write uploads
- dump container logs before removing terminal containers for diagnosability
- expose rucio on host port 25081; queue worker image = snakemake worker

# Conflicts:
#	.gitignore
Review-driven cleanups on top of the rebase:

- drop the queue-template containerImage hunk: PANDA_WORKER_IMAGE
  (merged in #63) is the supported way to point the queue at a custom
  worker image, so the template stays generic (alpine:latest)
- rucio client config fallback: resolve the host path from the
  compose-provided /config/rucio directory bind via mountinfo instead of
  hardcoding a dev checkout path (/home/agent/...); fail the worker
  loudly if neither bind is found, rather than mounting a nonexistent
  file
- remove the /agent/ -> /home/agent/ prefix translation: mountinfo's
  bind root is the actual host path (verified: /agent/... is a real
  directory here; CI runners have no /agent), and the docker daemon
  resolves sources in the host namespace either way
- worker network: queue-config workerNetwork key (default
  panda-compose_default) instead of a hardcoded name, so a custom
  compose project name (-p) still gets hostname resolution

Co-authored-by: Hermes Agent <hermes@localhost>
@veprbl
veprbl force-pushed the feature/harvester-docker-worker-rucio branch from 1001cbc to 41ca277 Compare November 23, 2026 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants