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: avoid duplicated driver volumes for GPUs #1864

Merged
merged 1 commit into from
Mar 15, 2019

Conversation

nikonov1101
Copy link
Member

Now we're storing whole information required to mount single GPU into a container inside the sonm.GPUDevice structure. and now we can turn up into a situation, when we're trying to mount more than one GPU with the same type. The Tuner will try to attach more than one (absolutely same) volume to the container. In that case, it will lead to the container' start failure.

This PR fixes that behavior by collecting proposed mount points into the set, and then applying only non-repeated ones.

Now we're storing whole information required to mount single GPU into a container inside the `sonm.GPUDevice` structure. and now we can turn up into a situation, when we're trying to mount more than one GPU with the same type. The Tuner will try to attach more than one (absolutely same) volume to the container. In that case, it will lead to the container' start failure.

This PR fixes that behavior by collecting proposed mount points into the set, and then applying only non-repeated ones.
@nikonov1101 nikonov1101 added 💩 T: bug This PR/Issue fixes a bug S: Worker This PR/Issue changes Worker P: HIGH This PR/Issue has the high priority V: patch This PR/Issue requires patch version to be bumped labels Mar 14, 2019
@3Hren 3Hren merged commit e319b95 into master Mar 15, 2019
@3Hren 3Hren deleted the fix/worker/proper-volume-mapping branch March 15, 2019 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P: HIGH This PR/Issue has the high priority S: Worker This PR/Issue changes Worker 💩 T: bug This PR/Issue fixes a bug V: patch This PR/Issue requires patch version to be bumped
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants