Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Cannot Reproduce
-
None
-
None
-
None
-
None
Description
Expected behavior : Listing keys in OBS bucket shouldn't have the intermediate directories.
But the below commands shows interm directories.
"name" : "a/", "name" : "a/b/", "name" : "a/b/c/", "name" : "a/b/c/d/", Need to remove these items from the output.
[root@sample-1 ~]# ozone sh bucket info vol1/obsbuck1 { "metadata" : { }, "volumeName" : "vol1", "name" : "obsbuck1", "storageType" : "DISK", "versioning" : false, "usedBytes" : 69, "usedNamespace" : 1, "creationTime" : "2022-01-28T11:28:17.849Z", "modificationTime" : "2022-01-28T11:28:17.849Z", "quotaInBytes" : -1, "quotaInNamespace" : -1, "bucketLayout" : "OBJECT_STORE", "link" : false } [root@sample-1 ~]# ozone sh key list vol1/obsbuck1 | grep "name" "name" : "testroot/", [root@sample-1 ~]# ozone sh key put vol1/obsbuck1/a/b/c/d/test.txt /tmp/datafile [root@sample-1 ~]# ozone sh key list vol1/obsbuck1 | grep "name" "name" : "a/", "name" : "a/b/", "name" : "a/b/c/", "name" : "a/b/c/d/", "name" : "a/b/c/d/test.txt", "name" : "testroot/",