You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Soumitra Sulav (Jira)" <ji...@apache.org> on 2024/04/15 18:45:00 UTC
[jira] [Commented] (HDDS-10693) No option for tenant in ozone tenant linkbucket API
[ https://issues.apache.org/jira/browse/HDDS-10693?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17837399#comment-17837399 ]
Soumitra Sulav commented on HDDS-10693:
---------------------------------------
[~smeng] - any thoughts?
> No option for tenant in ozone tenant linkbucket API
> ----------------------------------------------------
>
> Key: HDDS-10693
> URL: https://issues.apache.org/jira/browse/HDDS-10693
> Project: Apache Ozone
> Issue Type: Bug
> Components: s3gateway
> Affects Versions: 1.5.0
> Reporter: Soumitra Sulav
> Priority: Major
> Labels: ozone-upstream
>
> Ozone tenant linkbucket API has no option for tenant.
> It is the same as the command {{ozone sh bucket link}}
> {code:java}
> bash-4.2$ ozone tenant linkbucket
> Missing required parameters: '<source>', '<target>'
> Usage: ozone tenant linkbucket [-hV] [--om-service-id=<omServiceID>] <source>
> <target>
> Create a symlink to another bucket
> <source> The bucket which the link should point to.
> <target> Address of the link bucket
> -h, --help Show this help message and exit.
> --om-service-id=<omServiceID>
> Service ID is required when OM is running in HA cluster
> -V, --version Print version information and exit. {code}
> It should be within a tenant as all the APIs are specifically for tenants.
> Currently, it works for any bucket inside any volume even if it's not a tenant :
> {code:java}
> bash-4.2$ ozone tenant linkbucket /s3v/testbuck /s3v/testbuck1
> bash-4.2$ ozone sh bucket list /s3v
> [ {
> "metadata" : { },
> "volumeName" : "s3v",
> "name" : "testbuck",
> "storageType" : "DISK",
> "versioning" : false,
> "listCacheSize" : 1000,
> "usedBytes" : 0,
> "usedNamespace" : 0,
> "creationTime" : "2024-04-15T12:09:10.713Z",
> "modificationTime" : "2024-04-15T12:09:10.713Z",
> "sourcePathExist" : true,
> "quotaInBytes" : -1,
> "quotaInNamespace" : -1,
> "bucketLayout" : "FILE_SYSTEM_OPTIMIZED",
> "owner" : "om",
> "link" : false
> }, {
> "volumeName" : "s3v",
> "bucketName" : "testbuck1",
> "sourceVolume" : "s3v",
> "sourceBucket" : "testbuck",
> "creationTime" : "2024-04-15T12:09:59.970Z",
> "modificationTime" : "2024-04-15T12:09:59.970Z",
> "owner" : "om",
> "link" : true
> } ] {code}
> Otherwise, it's a redundant API.
--
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