Skip to content

Fix input/output duplication in file_mapper#1408

Merged
lbeckman314 merged 5 commits into
developfrom
chore/fix_file_mapper
May 11, 2026
Merged

Fix input/output duplication in file_mapper#1408
lbeckman314 merged 5 commits into
developfrom
chore/fix_file_mapper

Conversation

@lbeckman314
Copy link
Copy Markdown
Contributor

@lbeckman314 lbeckman314 commented May 8, 2026

Important

This PR is built off of PR #1407 and can be merged to develop (after #1407 is merged)

Overview 🌀

This PR resolves the following file_mapper error introduced when merging Commit 5b95fa0:

Current Behavior ❌

Error: kubernetes system error (JobCreationFailed):
Failed to create Kubernetes job: Job.batch "<TASK ID>-0" is invalid:
spec.template.spec.containers[0].volumeMounts[2].mountPath: Invalid value: "/data": must be unique
volumeMounts:
  - name: funnel-storage-<TASK ID>
    mountPath: /tmp
    subPath: <TASK ID>/tmp

  - name: funnel-storage-<TASK ID>
    mountPath: /work          <----- Duplicate mountPath ⚠️
    subPath: <TASK ID>/work

  - name: funnel-storage-<TASK ID>
    mountPath: /work          <----- Duplicate mountPath ⚠️
    subPath: <TASK ID>/work

  - name: funnel-storage-<TASK ID>
    mountPath: /local/work/tmp/.../bin
    subPath: <TASK ID>/local/work/tmp/.../bin

volumes:
- name: funnel-storage-<TASK ID>
persistentVolumeClaim:
  claimName: funnel-worker-pvc-<TASK ID>

This duplication is only happening if we have both inputs and outputs (regardless of the number).

Steps to Reproduce

To test it, create any TES task with at least one input and output.

New Behavior ✔️

Tip

No duplicated volumes!

volumeMounts:
  - name: funnel-storage-<TASK ID>
    mountPath: /tmp
    subPath: <TASK ID>/tmp

  - name: funnel-storage-<TASK ID>
    mountPath: /work
    subPath: <TASK ID>/work

  - name: funnel-storage-<TASK ID>
    mountPath: /local/work/tmp/.../bin
    subPath: <TASK ID>/local/work/.../bin

volumes:
- name: funnel-storage-<TASK ID>
  persistentVolumeClaim:
    claimName: funnel-worker-pvc-<TASK ID>

Credits 🤝

This issue was first identified and documented by @nss10 and the CTDS team, thank you!

@lbeckman314 lbeckman314 marked this pull request as ready for review May 11, 2026 18:15
@lbeckman314
Copy link
Copy Markdown
Contributor Author

  • Temp. enabling bypass for merging this PR in order to unblock integration tests (then disabling after merge)

  • Moving forward this ruleset should remain as-is (no bypass allowed)!

@lbeckman314 lbeckman314 merged commit f3a2f15 into develop May 11, 2026
17 checks passed
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.

1 participant