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

[OCI]: Storage: support buckets from different region #4554

Merged
merged 6 commits into from
Jan 15, 2025

Conversation

HysunHe
Copy link
Contributor

@HysunHe HysunHe commented Jan 12, 2025

This is an enhancement of OCI cloud storage support.

Before this change, the region the bucket belongs to is restricted to be same as the region in the OCI config file. This becomes the default setting if no region specified with this enhancement.

With this change, we can specify the region with the bucket name in the source or name attribute.
oci://<bucket_name> --> oci://<bucket_name>@

sky launch -c teststore ./examples/oci/dataset-upload-and-mount.yaml
sky launch -c teststore ./examples/oci/dataset-mount.yaml

Tested (run the relevant ones):

  • Code formatting: bash format.sh
  • Any manual or new tests for this PR (please specify below)
  • All smoke tests: pytest tests/test_smoke.py
  • Relevant individual smoke tests: pytest tests/test_smoke.py::test_fill_in_the_name
  • Backward compatibility tests: conda deactivate; bash -i tests/backward_compatibility_tests.sh

@HysunHe
Copy link
Contributor Author

HysunHe commented Jan 12, 2025

Hi @cblmemo Added this enhancement for the OCI storage support. Could you please help review it? Thanks~

Copy link
Collaborator

@cblmemo cblmemo left a comment

Choose a reason for hiding this comment

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

Thanks for adding this @HysunHe ! Left some discussions :))

sky/data/storage.py Outdated Show resolved Hide resolved
sky/data/storage.py Show resolved Hide resolved
@HysunHe HysunHe requested a review from cblmemo January 13, 2025 04:35
Copy link
Collaborator

@cblmemo cblmemo left a comment

Choose a reason for hiding this comment

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

Thanks @HysunHe ! Mostly LGTM. Left 2 nits

sky/data/storage.py Outdated Show resolved Hide resolved
sky/data/storage.py Outdated Show resolved Hide resolved
@HysunHe HysunHe requested a review from cblmemo January 14, 2025 01:42
sky/data/storage.py Outdated Show resolved Hide resolved
@HysunHe HysunHe requested a review from cblmemo January 15, 2025 03:36
@HysunHe HysunHe requested a review from cblmemo January 15, 2025 05:26
@cblmemo
Copy link
Collaborator

cblmemo commented Jan 15, 2025

Thanks @HysunHe ! LGTM.

@cblmemo cblmemo merged commit f59b058 into skypilot-org:master Jan 15, 2025
18 checks passed
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