smengcl commented on PR #5045:
URL: https://github.com/apache/ozone/pull/5045#issuecomment-1634610930

   > what happens when I use --force to create multiple tenants on the same 
volume ?
   
   Good question.
   
   Because of this Precondition check on refCount in OMTenantCreateRequest, it 
is not possible to assign multiple tenants to the same volume at the moment:
   
   
https://github.com/apache/ozone/blob/d3a7adf964da4df6d9cc9ed6df2c9c28ab3a44f7/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/s3/tenant/OMTenantCreateRequest.java#L310-L311
   
   Also, specifying a volume name different from the tenant name is not 
currently supported by the CLI. Arguably that is possible if someone put 
together a custom Java client that specifies a different volume name (ofc that 
user still need cluster admin / volume write permission to be able to do that 
since the permission check is on the OM side). -- This is already the case even 
without this PR with the current Tenant Create CLI. So I'd say it is not 
supported in official capacity right now because it is not fully tested.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to