Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-4944 Multi-Tenant Support in Ozone
  3. HDDS-7347

[Multi-Tenant] Add proper error message to TenantAssignAdmin and TenantRevokeAdmin

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None

    Description

      TenantAssignAdmin

      Step1:

      Assigning admin with the following user:

       ozone tenant --verbose user assignadmin 'null$om' --tenant=null --om-service-id=ozone1

      {   "accessId": "null$om",   "tenantId": "null",   "isAdmin": true,   "isDelegatedAdmin": false }

      Step2:

      Assigning admin again with the same user:

       ozone tenant --verbose user assignadmin 'null$om' --tenant=null --om-service-id=ozone1

      {   "accessId": "null$om",   "tenantId": "null",   "isAdmin": true,   "isDelegatedAdmin": false }

       

      We should get an error message that admin is already assigned.

      TenantRevokeAdmin

      Step 1:

      Assigned a user om to a tenant vol2

      ozone tenant user assign om --tenant=vol2 --om-service-id=ozone1

       

      Step 2:

      Tried to revoke the admin using the following command:

      ozone tenant user revokeadmin 'vol2$om' --om-service-id=ozone1

      We should get an error message as the access id : vol2$om is already not an admin.

      Attachments

        Issue Links

          Activity

            People

              aswinshakil Aswin Shakil
              aswinshakil Aswin Shakil
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: