Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

scsi: relax mount re-use constraint #2280

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

anmaxvl
Copy link
Contributor

@anmaxvl anmaxvl commented Oct 1, 2024

This is to fix a case with shared scratch enabled where the pause container scratch and workload container scratch should be the same mountpoint. This effectively changes the SCSI mount logic to have the same semantics as before the SCSI refactor, which mainly affected:

  • where the runc config.json for a container is written
  • scratch encryption

The old semantics ensured that the scratch (in a shared scratch case) is encrypted only once and also ensured that runc config.json for a given container is written to a unique location: either container's scratch (when scratch isn't shared) or tmpfs (when scratch is shared).

As before, the eventual hope is to remove guestPath support, and always generate a path, but that requires more extensive work to pass this path to the GCS.

@anmaxvl anmaxvl requested a review from a team as a code owner October 1, 2024 20:12
@kevpar
Copy link
Member

kevpar commented Oct 1, 2024

Remove the cherry-pick bit from the commit message. That wasn't a merged commit so it isn't needed.

This is to fix a case with shared scratch enabled where the pause
container scratch and workload container scratch should be the same
mountpoint. This effectively changes the SCSI mount logic to have
the same semantics as before the SCSI refactor, which mainly affected:
 * where the `runc` config.json for a container is written
 * scratch encryption
The old semantics ensured that the scratch (in a shared scratch case)
is encrypted only once and also ensured that runc config.json for a
given container is written to a unique location: either container's
scratch (when scratch isn't shared) or tmpfs (when scratch is shared).

As before, the eventual hope is to remove guestPath support, and
always generate a path, but that requires more extensive work to pass
this path to the GCS.

Signed-off-by: Kevin Parsons <kevpar@microsoft.com>
Signed-off-by: Maksim An <maksiman@microsoft.com>
Copy link
Member

@kevpar kevpar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@anmaxvl anmaxvl merged commit 1d69a9c into microsoft:main Oct 1, 2024
19 checks passed
@anmaxvl anmaxvl deleted the scsi-mount-fix-2 branch October 1, 2024 21:04
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants