You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by GitBox <gi...@apache.org> on 2021/01/05 09:01:09 UTC

[GitHub] [libcloud] DrissiReda opened a new issue #1539: Bad request, region is wrong for s3 minio

DrissiReda opened a new issue #1539:
URL: https://github.com/apache/libcloud/issues/1539


   I'm trying to use minio driver with medusa (cassandra backup) and I'm getting error bad request: Here is the response:
   
   ```
   {'connection': <libcloud.storage.drivers.minio.MinIOConnectionAWS4 object at 0x7f4d6f0e3be0>, 'headers': {'accept-ranges': 
   'bytes', 'content-length': '583', 'content-security-policy': 'block-all-mixed-content', 'content-type': 'application/xml', 'server': 
   'MinIO/RELEASE.2020-09-26T03-44-56Z', 'vary': 'Origin', 'x-amz-bucket-region': 'us-east-1', 'x-amz-request-id': 
   '16574A0C19BFA20A', 'x-xss-protection': '1; mode=block', 'date': 'Tue, 05 Jan 2021 08:53:27 GMT'}, 'error': 'Bad Request', 
   'status': 400, 'request': , 'iter_content': >, 'body': '\nAuthorizationHeaderMalformedThe authorization header is malformed; the
   region is wrong; expecting 'us-east-1'.k8ssandra-dc1-default-sts-0.k8ssandra-dc1-service.kast.svc.cluster.local/test-dc1/meta
   /schema.cqlcass/cass/k8ssandra-dc1-default-sts-0.k8ssandra-dc1-service.kast.svc.cluster.local/test-dc1/meta/schema.cqlus-
   east-116574A0C19BFA20A0876c2f6-f423-4570-aa08-86ca582835e0', 'object': }
   ```
   
   You can see that the region header is 'us-east-1' and it says it's expecting us-east-1, I don't understand what's wrong or what header is required.
   
   Does anyone have an idea what might be broken?


----------------------------------------------------------------
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.

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



[GitHub] [libcloud] DrissiReda commented on issue #1539: Bad request, region is wrong for s3 minio

Posted by GitBox <gi...@apache.org>.
DrissiReda commented on issue #1539:
URL: https://github.com/apache/libcloud/issues/1539#issuecomment-754661526


   Solved it by setting https://github.com/apache/libcloud/blob/4370a7021c11c1c61afe6470d2baafc093bfa0dd/libcloud/storage/drivers/minio.py#L49 to 
   `region_name = "us-east-1"`
   
   Not sure if it's worth a PR


----------------------------------------------------------------
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.

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



[GitHub] [libcloud] Kami commented on issue #1539: Bad request, region is wrong for s3 minio

Posted by GitBox <gi...@apache.org>.
Kami commented on issue #1539:
URL: https://github.com/apache/libcloud/issues/1539#issuecomment-754724306


   Thanks for reporting this.
   
   I will have a look and try to reproduce this issue (for me, minio driver works out of the box, but could be something related to your configuration - e.g. multiple regions or similar).


----------------------------------------------------------------
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.

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



[GitHub] [libcloud] DrissiReda closed issue #1539: Bad request, region is wrong for s3 minio

Posted by GitBox <gi...@apache.org>.
DrissiReda closed issue #1539:
URL: https://github.com/apache/libcloud/issues/1539


   


----------------------------------------------------------------
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.

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



[GitHub] [libcloud] DrissiReda commented on issue #1539: Bad request, region is wrong for s3 minio

Posted by GitBox <gi...@apache.org>.
DrissiReda commented on issue #1539:
URL: https://github.com/apache/libcloud/issues/1539#issuecomment-754725241


   Normally minio shouldn't rely on regions, which is why it's "us-east-1" by default, it's the s3 drivers that raises the issue since it requires it. 


----------------------------------------------------------------
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.

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