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

    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

        1. HDFS-12038-HDFS-7240.001.patch
          49 kB
          Lokesh Jain

        Activity

          People

            ljain Lokesh Jain
            cheersyang Weiwei Yang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: