noobaa-core
noobaa-core copied to clipboard
NSFS | NC | Let the User Explicitly Set `allow_bucket_creation`
Environment info
- NooBaa Version: master
- Platform: NC
Actual behavior
- Currently, the
allow_bucket_creation
value is inferred from thenew_buckets_path
: if the user passes a value tonew_buckets_path
then it is true, otherwise false.
Expected behavior
- Allow the user to pass the value of
allow_bucket_creation
explicitly and update it (fromtrue
tofalse
and vice versa).
Steps to reproduce
- none
More information - Screenshots / Logs / Other output
Please take into account that it will be a flag is manage nsfs CLI and a property inside the file when using the from-file
option.
Please add a unit test for updating a bucket (see this comment with manual description):
- Create an account with
new_buckets_path
(allow_bucket_creation
is true). - Created a bucket.
- Update the account (in a way you choose) so
allow_bucket_creation
will be false. - Update the bucket already created (step 2) - for example
--fs_backend GPFS
instead of the default value => should pass.
The verification will be tracked by the BZ 2262992.
It was validated in mentioned BZ above.