Skip to content

Add ability to give users / groups write access to buckets + multi-zone GPUs - #2406

Merged
yuvipanda merged 11 commits into
2i2c-org:masterfrom
yuvipanda:leap-user
Jun 27, 2023
Merged

yuvipanda merged 11 commits into
2i2c-org:masterfrom
yuvipanda:leap-user

Conversation

@yuvipanda

@yuvipanda yuvipanda commented Mar 22, 2023 •

Copy link
Copy Markdown
Member

GCS allows individual Google Users as well as Google Groups to have permissions to read / write to GCS buckets (unlike AWS). We can use this to allow community leaders to manage who can read and write to GCS buckets from outside the cloud by managing membership in a Google Group!

In this commit, we set up the persistent buckets of the LEAP hubs to have this functionality. Access is managed via a Google Group - I have temporarily created this under the 2i2c org and invited Julius (the community champion) as an administrator. But perhaps it should be just created as a regular google group. Using groups here allows management of this access to not require any 2i2c engineering work.

Future work would probably fold the separate variable we have for determining if a bucket is accessible publicly as an attribute as well.

Ref 2i2c-org/features#22

TODO:

  • Test this actually works
  • Write documentation on when to use this and why, for 2i2c engineers
  • Write documentation on how end users can use this
  • Write documentation on how to create & manage google groups
  • Decide where this google group should live

Additionally, a request to make GPU nodes available in whatever zone possible in
the region we are in came in before this PR could be merged, and so was added on
here. This includes documentation on how to set up GPUs on GCP too!

@yuvipanda yuvipanda self-assigned this Mar 22, 2023
@yuvipanda
yuvipanda marked this pull request as draft March 22, 2023 14:06
@jbusecke

jbusecke commented Apr 3, 2023

Copy link
Copy Markdown

I just successfully tested this on one of the Lamont servers! Thanks a lot for making this work @yuvipanda.

@jbusecke

jbusecke commented Apr 3, 2023

Copy link
Copy Markdown

I will further test this with LEAP members this week. It would also be great if this could be set up for the m2lines hub, where I collaborate with folks on bringing large datasets to the cloud from HPC. Many thanks.

yuvipanda added 5 commits May 18, 2023 19:41
GCS allows individual Google Users as well as Google Groups
to have permissions to read / write to GCS buckets (unlike AWS).
We can use this to allow community leaders to manage who can read
and write to GCS buckets from outside the cloud by managing membership
in a Google Group!

In this commit, we set up the persistent buckets of the LEAP hubs
to have this functionality. Access is managed via a Google Group -
I have temporarily created this under the 2i2c org and invited
Julius (the community champion) as an administrator. But perhaps
it should be just created as a regular google group. Using groups
here allows management of this access to not require any 2i2c
engineering work.

Future work would probably fold the separate variable we have
for determining if a bucket is accessible publicly as an attribute
as well.

Ref https://github.com/2i2c-org/infrastructure/issues/2096
The previous 2i2c.org one could not be managed by users
outside the 2i2c.org org it looks like.
@yuvipanda

yuvipanda commented May 19, 2023 •

Copy link
Copy Markdown
Member Author

@pnasrat

pnasrat commented May 23, 2023

Copy link
Copy Markdown
Contributor

@yuvipanda what's needed to move this from draft to review - asking due to link with support tickets.

In https://2i2c.freshdesk.com/a/tickets/764, LEAP users are
running out of GPU on the one zone their notebook nodes are in.
This just expands that to all possible zones just for GPU nodes,
to maximize the amount of GPUs made available to them. This comes
at the cost of home directory access maybe being slightly slower,
but that's ok.
@yuvipanda yuvipanda changed the title Add ability to give users / groups write access to buckets Add ability to give users / groups write access to buckets + multi-zone GPUs Jun 13, 2023
@yuvipanda

Copy link
Copy Markdown
Member Author

@pnasrat documentation! I'll try get this done over the next week.

@GeorgianaElena GeorgianaElena left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

While trying to fix #2696, I realized that the terraform config has lagged behind and then I discovered this PR.

@yuvipanda, is there anything I can do to help push this forward? Maybe we can track the documentation bit in another issue + PR?

@yuvipanda

Copy link
Copy Markdown
Member Author

@GeorgianaElena ok, I've pushed docs and this is ready to go! Sorry for the delay :( This has been apply'd already.

@yuvipanda
yuvipanda marked this pull request as ready for review June 27, 2023 03:08
@yuvipanda
yuvipanda requested a review from a team as a code owner June 27, 2023 03:08

@GeorgianaElena GeorgianaElena left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Amazing! Thank you @yuvipanda! 🚀

@yuvipanda
yuvipanda merged commit d9d0291 into 2i2c-org:master Jun 27, 2023
@yuvipanda

Copy link
Copy Markdown
Member Author

Thanks @GeorgianaElena!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants