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
Conversation
bucket.create_bucket( | ||
oss2.BUCKET_ACL_PUBLIC_READ, | ||
oss2.models.BucketCreateConfig( | ||
oss2.BUCKET_STORAGE_CLASS_STANDARD | ||
), |
There was a problem hiding this comment.
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 π
There was a problem hiding this comment.
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. π
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hi~ Click for Microsoft Azure Blob Storage in https://dvc.org/doc/command-reference/remote/modify may need a super quick update after this 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? |
@jorgeorpinel Good catch, I didn't realize that we've documented that behavior already. Created iterative/dvc.org#2546 Thank you! π |
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
β I have followed the Contributing to DVC checklist.
π If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here.
Thank you for the contribution - we'll try to review it as soon as possible. π