Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7240 Scaling HDFS
  3. HDFS-12038

Ozone: Non-admin user is unable to run InfoVolume to the volume owned by itself

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsAdd voteVotersWatch issueWatchersConvert to IssueMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • None
    • None
    • ozone

    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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ljain Lokesh Jain Assign to me
            cheersyang Weiwei Yang

            Dates

              Created:
              Updated:

              Slack

                Issue deployment