Skip to content

fix shared scratch scenario#1435

Merged
anmaxvl merged 1 commit intomicrosoft:masterfrom
anmaxvl:shared-scratch-fixes
Jun 17, 2022
Merged

fix shared scratch scenario#1435
anmaxvl merged 1 commit intomicrosoft:masterfrom
anmaxvl:shared-scratch-fixes

Conversation

@anmaxvl
Copy link
Copy Markdown
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 [email protected]

@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 <[email protected]>
@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 <[email protected]>
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 <[email protected]>
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.

3 participants