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 mount permissions on input volumes #492

Merged
merged 57 commits into from
Dec 1, 2023

Conversation

aristizabal95
Copy link
Contributor

@aristizabal95 aristizabal95 commented Oct 6, 2023

This PR fixes and simplifies ensuring read-only access to input volumes on MLCube execution. This is done so by leveraging on the recent --mount=ro flag, instead of specifying per-volume permissions
Closes #488

@aristizabal95 aristizabal95 added type: bug Something isn't working component: client issues regarding the CLI labels Oct 6, 2023
@aristizabal95 aristizabal95 self-assigned this Oct 6, 2023
@aristizabal95 aristizabal95 requested a review from a team as a code owner October 6, 2023 20:27
@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2023

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

Copy link

@msheller msheller left a comment

Choose a reason for hiding this comment

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

Two questions:

  1. I think I am missing something. It looks to me like "*_str_params" isn't used in the run function in the old code. If so, wouldn't the fix have been to use them? Or was that variable intending to use a feature in MLCube that is broken/missing?

  2. Am I correct that MLCube won't set 'ro' for the output directories, even though you've specified --mount=ro? If so, I wonder if we should request a name change on that parameter, as it's confusing to me to see "--mount" and it not apply to all mount points.

Copy link
Contributor

@hasan7n hasan7n left a comment

Choose a reason for hiding this comment

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

Looks good!

@hasan7n
Copy link
Contributor

hasan7n commented Nov 27, 2023

@msheller

  1. It was used. The first line of the cube.run was updating the kwargs with the string parameters. The cause of the bug is described here: [BUG] Data folders are not mounted as read-only as expected #488
  2. Yes, the --mount will only act on the inputs. I will open an issue for name change in the mlcube repo.

@hasan7n hasan7n merged commit de0ec67 into mlcommons:main Dec 1, 2023
6 of 7 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
component: client issues regarding the CLI type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Data folders are not mounted as read-only as expected
3 participants