[
https://issues.apache.org/jira/browse/HDDS-7030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17762930#comment-17762930
]
zingtc commented on HDDS-7030:
------------------------------
I see, LEGACY and FSO operate files different from OBS.
LEGACY and FSO can use ozone fs cli operating files like unix fs,but can not
delete dictory recursively use s3 clinet.
OBS can not use ozone fs cli operating files, only through s3 client. And s3
client can delete dictory recursively with OBS.
This is the expected behavior.
Thanks a lot.
> can not use boto3(python) to create or delete directory through s3gateway
> -------------------------------------------------------------------------
>
> Key: HDDS-7030
> URL: https://issues.apache.org/jira/browse/HDDS-7030
> Project: Apache Ozone
> Issue Type: Bug
> Components: S3
> Affects Versions: 1.3.0
> Environment: ozone related config
> ozone.om.enable.filesystem.paths:true
> ozone.om.metadata.layout:PREFIX
> Reporter: zingtc
> Assignee: Aryan Gupta
> Priority: Major
>
> I use boto3 to create/delete/rename a directory,but get some results not
> expected.
> demo code:
> import boto3
> client = boto3.client(service_name='s3', aws_access_key_id='xxx',
> aws_secret_access_key='xxx',
> region_name='s3v', use_ssl=False,
> endpoint_url='[http://xxx:32078')|http://xxx:32078')/]
> # want to create directory but get a file
> client.put_object(Bucket='test', Key='dict3/')
> # want to delete directory but not deleted, response HTTPStatusCode: 204
> # the directory was created by ozone command: ozone fs -mkdir /s3v/test/777
> client.delete_object(Bucket='test', Key='777/')
> # but not deleted response: HTTPStatusCode: 204
> client.delete_object(Bucket='test', Key='777')
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]