Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

fix shared scratch scenario #1435

Merged
merged 1 commit into from
Jun 17, 2022
Merged

Conversation

anmaxvl
Copy link
Contributor

@anmaxvl anmaxvl commented Jun 17, 2022

When mounting container layers we override containerScratchPathInUVM
with scsiMount.UVMPath after calling into vm.AddSCSI(...), which is
fine in scenarios when scratch disk isn't shared. In case when scratch
sharing is enabled, the scsiMount returned has sandbox container's
scratch path and we end up mounting all of the workload containers'
overlay at /run/gcs/c/<podid>/container_<podid> instead of
/run/gcs/c/<podid>/container_<cid1> and /run/gcs/c/<podid>/container_<cid2>.

Fix by removing the unnecessary assignment.

Signed-off-by: Maksim An maksiman@microsoft.com

@anmaxvl anmaxvl requested a review from a team as a code owner June 17, 2022 21:23
When mounting container layers we override containerScratchPathInUVM
with scsiMount.UVMPath after calling into vm.AddSCSI(...), which is
fine in scenarios when scratch disk isn't shared. In case when scratch
sharing is enabled, the scsiMount returned has sandbox container's
scratch path and we end up mounting all of the workload containers'
overlay at `/run/gcs/c/<podid>/container_<podid>` instead of
`/run/gcs/c/<podid>/container_<cid1>` and `/run/gcs/c/<podid>/container_<cid2>`.

Fix by removing the unnecessary assignment.

Signed-off-by: Maksim An <maksiman@microsoft.com>
@anmaxvl anmaxvl force-pushed the shared-scratch-fixes branch from 0d0249d to b703c6e Compare June 17, 2022 21:24
@anmaxvl anmaxvl merged commit 06ce0c3 into microsoft:master Jun 17, 2022
@anmaxvl anmaxvl deleted the shared-scratch-fixes branch June 17, 2022 22:22
kiashok pushed a commit to kiashok/hcsshim that referenced this pull request Jul 11, 2022
When mounting container layers we override containerScratchPathInUVM
with scsiMount.UVMPath after calling into vm.AddSCSI(...), which is
fine in scenarios when scratch disk isn't shared. In case when scratch
sharing is enabled, the scsiMount returned has sandbox container's
scratch path and we end up mounting all of the workload containers'
overlay at `/run/gcs/c/<podid>/container_<podid>` instead of
`/run/gcs/c/<podid>/container_<cid1>` and `/run/gcs/c/<podid>/container_<cid2>`.

Fix by removing the unnecessary assignment.

Signed-off-by: Maksim An <maksiman@microsoft.com>
anmaxvl added a commit that referenced this pull request Feb 7, 2023
princepereira pushed a commit to princepereira/hcsshim that referenced this pull request Aug 29, 2024
When mounting container layers we override containerScratchPathInUVM
with scsiMount.UVMPath after calling into vm.AddSCSI(...), which is
fine in scenarios when scratch disk isn't shared. In case when scratch
sharing is enabled, the scsiMount returned has sandbox container's
scratch path and we end up mounting all of the workload containers'
overlay at `/run/gcs/c/<podid>/container_<podid>` instead of
`/run/gcs/c/<podid>/container_<cid1>` and `/run/gcs/c/<podid>/container_<cid2>`.

Fix by removing the unnecessary assignment.

Signed-off-by: Maksim An <maksiman@microsoft.com>
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.

None yet

3 participants