Details
-
Sub-task
-
Status: In Progress
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
Reproduce steps
1. Create a volume with a non-admin user
hdfs oz -createVolume http://ozone1.fyre.ibm.com:9864/volume-wwei-0 -user wwei -root -quota 2TB
2. Run infoVolume command to get this volume info
hdfs oz -infoVolume http://ozone1.fyre.ibm.com:9864/volume-wwei-0 -user wwei Command Failed : {"httpCode":400,"shortMessage":"badAuthorization","resource":null,"message":"Missing authorization or authorization has to be unique.","requestID":"221efb47-72b9-498d-ac19-907257428573","hostName":"ozone1.fyre.ibm.com"}
add -root to run as admin user could bypass this issue
hdfs oz -infoVolume http://ozone1.fyre.ibm.com:9864/volume-wwei-0 -user wwei -root { "owner" : { "name" : "wwei" }, "quota" : { "unit" : "TB", "size" : 2 }, "volumeName" : "volume-wwei-0", "createdOn" : null, "createdBy" : "hdfs" }
expecting: both volume owner and admin should be able to run infoVolume command.