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

Cannot create bucket with object lock enabled #9962

Closed
tspoeri opened this issue Jul 2, 2020 · 3 comments
Closed

Cannot create bucket with object lock enabled #9962

tspoeri opened this issue Jul 2, 2020 · 3 comments

Comments

@tspoeri
Copy link

tspoeri commented Jul 2, 2020

I try to create a bucket using mc with object lock enabled but it fails.

Expected Behavior

Executing

mc mb --with-lock dev/bucket-with-lock

should create the bucket bucket-with-lock.

Current Behavior

Creation of the bucket fails:

mc mb --with-lock dev/bucket-with-lock
mc: <ERROR> Unable to make bucket `dev/bucket-with-lock`. A header you provided implies functionality that is not implemented

Context

Creating a bucket with object lock enabled is a prerquisite for locking objects as described here: https://github.com/minio/minio/tree/master/docs/retention

Your Environment

MinIO running as Docker container on Ubuntu 20.04 LTS

uname -a
Linux ubuntu-dev 5.4.0-39-generic #43-Ubuntu SMP Fri Jun 19 10:28:31 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

docker --version
Docker version 19.03.8, build afacb8b7f0

mc --version
mc version RELEASE.2020-06-26T19-56-55Z

mc admin info dev
●  localhost:9000
   Uptime: 2 hours 
   Version: 2020-07-02T00:15:09Z
   Network: 1/1 OK 

@kannappanr
Copy link
Contributor

@tspoeri object locking is not supported in fs mode. You need to use erasure-coded mode to use the locking feature.

@kannappanr kannappanr added this to the Next Release milestone Jul 2, 2020
@tspoeri
Copy link
Author

tspoeri commented Jul 2, 2020

@kannappanr I'm new to MinIO, is there a documentation which lists limitations depending on modes, etc?
At first sight it's not clear to me why locks depend on erasure-coded mode.

@harshavardhana
Copy link
Member

@kannappanr I'm new to MinIO, is there a documentation which lists limitations depending on modes, etc?
At first sight it's not clear to me why locks depend on erasure-coded mode.

FS mode think of it as minimal implementation, erasure coded is full fledged

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants