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

fs: don't automatically create buckets #6086

Merged
merged 2 commits into from May 31, 2021
Merged

Conversation

efiop
Copy link
Member

@efiop efiop commented May 31, 2021

Currently, we have a bit of a mess, where s3 and gs don't create buckets automatically, but azure and oss do. The safe approach here is to simply not create buckets in any of the filesystems. Local/ssh and others are a bit different, as there is no such thing as bucket there, and nonexistend directories are logically part of the path/prefix and not a standalone resource like buckets are.

Pre-requisite for getting rid of fs.path_info.

Fixes #2101

Thank you for the contribution - we'll try to review it as soon as possible. πŸ™

Comment on lines -78 to -82
bucket.create_bucket(
oss2.BUCKET_ACL_PUBLIC_READ,
oss2.models.BucketCreateConfig(
oss2.BUCKET_STORAGE_CLASS_STANDARD
),
Copy link
Member Author

Choose a reason for hiding this comment

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

These permissions are clearly bad 🀦 Just shows how neglected oss has been πŸ™

Copy link
Member Author

@efiop efiop May 31, 2021

Choose a reason for hiding this comment

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

For the record, new and improved implementation is coming soon in https://github.com/iterative/ossfs thanks to @karajan1001 's work. πŸ™

Copy link
Contributor

@isidentical isidentical left a comment

Choose a reason for hiding this comment

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

LGTM

@efiop efiop merged commit 488a6f8 into iterative:master May 31, 2021
@efiop efiop deleted the fix-2101 branch May 31, 2021 22:29
@efiop efiop added the enhancement Enhances DVC label Jun 2, 2021
@jorgeorpinel
Copy link
Contributor

Hi~ Click for Microsoft Azure Blob Storage in https://dvc.org/doc/command-reference/remote/modify may need a super quick update after this

image

If possible I'd double check in other places but I think that's the only mention.

The Q is, should we state somewhere (or in all the appropriate remotes) that DVC does not create buckets/containers?

@efiop
Copy link
Member Author

efiop commented Jun 9, 2021

@jorgeorpinel Good catch, I didn't realize that we've documented that behavior already. Created iterative/dvc.org#2546 Thank you! πŸ™

jorgeorpinel pushed a commit to iterative/dvc.org that referenced this pull request Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhances DVC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fs: don't automatically create buckets
3 participants