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: Local path should include bucket name for mountpoint s3 #1012

Merged
merged 4 commits into from
Mar 5, 2025

Conversation

dleviminzi
Copy link
Collaborator

If two buckets are mounted, they currently have the same local path. This causes the last bucket to override the prior.

@@ -42,8 +42,9 @@ func (c *ContainerMountManager) SetupContainerMounts(request *types.ContainerReq
}

if m.MountType == storage.StorageModeMountPoint && m.MountPointConfig != nil {
log.Info().Interface("mount", m).Interface("config", m.MountPointConfig).Msg("setting up container mounts")
Copy link
Contributor

Choose a reason for hiding this comment

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

while we're at this, can we add a warning if the mount fails? i noticed previously that if the creds didnt work it wouldnt show a warning in container logs

@dleviminzi dleviminzi requested a review from luke-lombardi March 5, 2025 18:39
request.Mounts[i].LocalPath = m.LocalPath

err := c.setupMountPointS3(request.ContainerId, m)
if err != nil {
outputLogger.Info(fmt.Sprintf("failed to setup mount point s3 error: %v\n", err))
Copy link
Contributor

Choose a reason for hiding this comment

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

wondering if we should say cloud bucket or something else here? user doesn't know what a mountpoint is since we abstract it behind the sdk thing

@dleviminzi dleviminzi merged commit de5897c into main Mar 5, 2025
3 checks passed
@dleviminzi dleviminzi deleted the dlm/mountpoints3-bug branch March 5, 2025 20:53
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.

2 participants