You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Siyao Meng (Jira)" <ji...@apache.org> on 2022/10/21 06:53:00 UTC

[jira] [Resolved] (HDDS-7347) [Multi-Tenant] Add proper error message to TenantAssignAdmin and TenantRevokeAdmin

     [ https://issues.apache.org/jira/browse/HDDS-7347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Siyao Meng resolved HDDS-7347.
------------------------------
    Resolution: Won't Fix

> [Multi-Tenant] Add proper error message to TenantAssignAdmin and TenantRevokeAdmin
> ----------------------------------------------------------------------------------
>
>                 Key: HDDS-7347
>                 URL: https://issues.apache.org/jira/browse/HDDS-7347
>             Project: Apache Ozone
>          Issue Type: Sub-task
>            Reporter: Aswin Shakil Balasubramanian
>            Assignee: Aswin Shakil Balasubramanian
>            Priority: Major
>              Labels: pull-request-available
>
> h3. *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.
> h3. *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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org