Issue with "Method Not Allowed" error when creating bucket using Ozone S3 Gateway #6662
-
#--->> replace with actual credentials I hope this message finds you well. I'm currently facing an issue while working with the Ozone S3 Gateway. When attempting to create a bucket using the create_bucket operation, I encounter a "Method Not Allowed" error. Here's a snippet of the code I'm using: import boto3 Create an S3 client with the Ozone S3 gateway endpoints3 = boto3.client('s3', endpoint_url='http://52.4.108.136:9888', Create a bucket within the existing volumevolume_name = 'vol1' ozone is running on AWS instance and i used Hadoop vms of my company Could you please assist me in troubleshooting this issue? Any insights or guidance would be greatly appreciated. Thank you for your time and assistance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @FaheemKhan0817, Do not include volume name and/or
It should be something like:
|
Beta Was this translation helpful? Give feedback.
Hi @FaheemKhan0817,
Do not include volume name and/or
s3v
in bucket to be created. Volume name is internal to Ozone, S3 clients are not aware of it.It should be something like:
response = s3.create_bucket(Bucket=bucket_name)