Project

General

Profile

Actions

Bug #3824

closed

[Crunch] crunch-job should create task execution environment inside docker container, not on worker host.

Added by Ward Vandewege over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Crunch
Target version:
Story points:
2.0

Description

Cf. a5819ec1e48fba90658fcf676ffc50c1f216d484 and 0eb5711ade0f74e556b0a1c10909dbf0bdecb63f

Some refactoring of that section of crunch-job may be in order here.

Requirements:
  • JOB_WORK and TASK_WORK must not be the same directory.
  • JOB_WORK and TASK_WORK must exist when a crunch script starts.
  • JOB_WORK and TASK_WORK (and other crunch-specific directories) are not required to exist in the docker image being used. (A design goal is that non-Arvados-aware docker images can be used to run jobs. Expecting special tmp directories won't fly. But we might have to make some reasonable assumptions like "docker image has a world-writable /tmp".)
Probable approach:
  • Run as much stuff as possible inside the docker container. E.g., the "build script" should run inside the container. It should have no trouble creating the required directories.
  • Something like a5819ec1e48fba90658fcf676ffc50c1f216d484 but fix whatever failed to propagate log messages, and make sure to create CRUNCH_SRC in the container
    • docker run -a stdin -i seems to be necessary to get stdin through to the container. See #4044 notes.
    • We probably want to use docker run --sig-proxy too.

Subtasks 7 (0 open7 closed)

Task #4549: Review 3824-task-workResolvedPeter Amstutz10/10/2014Actions
Task #4283: Make test caseResolvedTom Clegg10/10/2014Actions
Task #4282: Create/setup task temp dirs at runtimeResolvedTom Clegg10/10/2014Actions
Task #4548: Make sure JOB_TMP and TASK_TMP are writable by crunch userResolvedTom Clegg10/10/2014Actions
Task #4325: Review 3824-crunch-container-setupResolvedTom Clegg10/10/2014Actions
Task #4153: Talk to WardResolvedTom Clegg10/10/2014Actions
Task #4550: Review 3824-docker-fixes (lower priority than 3824-task-work)ResolvedWard Vandewege10/10/2014Actions

Related issues

Blocks Arvados - Idea #3826: [Crunch] Display network activity in crunchstatResolvedTom Clegg10/10/2014Actions
Blocks Arvados - Bug #4470: [Crunch] tmpdir not writable running jobs in DockerResolvedTom Clegg11/07/2014Actions
Actions

Also available in: Atom PDF