hanisirfan commented on issue #10044:
URL: https://github.com/apache/cloudstack/issues/10044#issuecomment-2827733565

   > [@hanisirfan](https://github.com/hanisirfan) 
[@StepBee](https://github.com/StepBee) 
[@tuanhoangth1603](https://github.com/tuanhoangth1603) I have raised a PR for 
this in 4.20. `requestRegion = 
AwsHostNameUtils.parseRegion(requestEndpoint.getHost(), "s3");` as 
[@StepBee](https://github.com/StepBee) mentioned using "auto" while getting the 
EndpointConfiguration for the S3 client is causing LocationConstraint to be set 
which is not required for ceph. S3 client api infers the region from the url if 
the url starts with "s3." The problem will not be seen if a url like 
ceph.store.com or an IP is given. So a workaround if using not use such kind of 
name (s3...) for the endpoint url. Probably use some proxy address or dns.
   > 
   > Please let me know if the workaround works for you.
   
   I've tested your workaround by creating another proxy endpoint. It works and 
I can now create a bucket through CS. Your PR will solve the issue that we 
don't need the workaround anymore after this right? Btw thanks @abh1sar for 
creating the PR.
   
   However, I'm now having a problem when trying to create a bucket with both 
Public and Private policy. I'm getting this error here:
   ```
   Failed to create bucket.
   Failed to create bucket with name: threetwoone. Bad request (Service: Amazon 
S3; Status Code: 400; Error Code: 400 Bad request; Request ID: null; S3 
Extended Request ID: null; Proxy: null)
   ```
   
   Tried multiple times for both options and with different bucket names.


-- 
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: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to