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

Extend accelerator plugin architecture to allow container user to join extra Linux groups #2850

Closed
kyujin-cho opened this issue Sep 20, 2024 · 1 comment · Fixed by #2944
Closed
Labels
comp:agent Related to Agent component platform:enterprise Backend.AI Enterprise support. urgency:4 As soon as feasible, implementation is essential.
Milestone

Comments

@kyujin-cho
Copy link
Member

Main idea

There are cases where accelerator driver requires Linux user to join on specific groups (e.g. ROCm). To support such cases we can think of extending current accelerator plugin architecture to expose extra set of gids which container user (work user) will be joined at.

Alternative ideas

No response

Anything else?

This issue can work as a keystone job of #2592, as the implementation of this feature will allow way to make container user join extra groups other than default GID and 44 (shadow).

@kyujin-cho kyujin-cho added the type:feature Add new features label Sep 20, 2024
@kyujin-cho kyujin-cho added this to the 24.03 milestone Sep 20, 2024
@kyujin-cho kyujin-cho added the urgency:4 As soon as feasible, implementation is essential. label Sep 20, 2024
@achimnol achimnol added platform:enterprise Backend.AI Enterprise support. comp:agent Related to Agent component type:enhance Enhance component, behavior, internals without user-facing features and removed type:enhance Enhance component, behavior, internals without user-facing features labels Sep 20, 2024
@achimnol
Copy link
Member

We could add a new environment variable containing the list of additional GIDs to be passed to su-exec via entrypoint.sh like LOCAL_USER_ID and LOCAL_GROUP_ID.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:agent Related to Agent component platform:enterprise Backend.AI Enterprise support. urgency:4 As soon as feasible, implementation is essential.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants