noobaa-core
noobaa-core copied to clipboard
NSFS | NC | Allow Users to Choose `fs_backend` With Case Insensitive
Environment info
- NooBaa Version: master
- Platform: NC
Actual behavior
- Currently users must type the fs_backend with sensitive strings, for example: GPFS.
Expected behavior
- Allow users to type with case insensitive, for example gpfs.
Steps to reproduce
- Create an account with --fs_backend with gpfs (not GPFS):
sudo node src/cmd/manage_nsfs account add --name <account-name> --new_buckets_path <path> --uid <uid> --gid <gid> --fs_backend gpfs
Output:
{
"error": {
"code": "InvalidFSBackend",
"message": "FS backend supported types are GPFS, CEPH_FS, NFSv4 default is POSIX"
}
}
More information - Screenshots / Logs / Other output
none
@shirady why is it needed? its like a well known name, in which case, case can be set to a specific one
@nimrod-becker Currently when a user types the fs_backend
case insensitive he will get an error, for example:
sudo node src/cmd/manage_nsfs account update --name <account-name> --fs_backend gpfs
(gpfs
instead of GPFS
).
{ "error": { "code": "InvalidFSBackend", "message": "FS backend supported types are GPFS, CEPH_FS, NFSv4 default is POSIX" } }
It's supposed to be a minor fix.
This issue had no activity for too long - it will now be labeled stale. Update it to prevent it from getting closed.
This issue is stale and had no activity for too long - it will now be closed.