I'm trying to configure mcqueen for storing elasticsearch snapshots.
I have created a bucket ./s3curl.pl --id=test --createBucket -- http://store-test.blobstore.xxx.com/snapshots
But when I'm trying to create a repository, it's failing with below error-
curl -XPUT 'localhost:9200/_snapshot/s3' -H "Content-Type: application/json" -d ' { "type": "s3", "settings": { "bucket": "snapshots" } }'
{"error":{"root_cause":[{"type":"sdk_client_exception","reason":"sdk_client_exception: Unable to execute HTTP request: snapshots.store-test.blobstore.xxx.com"}],"type":"repository_exception","reason":"[s3] failed to create repository","caused_by":{"type":"sdk_client_exception","reason":"sdk_client_exception: Unable to execute HTTP request: snapshots.store-test.blobstore.xxx.com","caused_by":{"type":"i_o_exception","reason":"snapshots.store-test.blobstore.xxx.com"}}},"status":500}
If you see in error, the url it is trying to access is "snapshots.store-test.blobstore.xxx.com" but instead it should access at "store-test.blobstore.xxx.com/snapshots"
My configuration for elasticsearch.yml on all nodes is-
s3.client.default.endpoint: store-test.blobstore.xxx.com
s3.client.default.protocol: http
and have stored access_key and secret_key in keystore of all nodes. Also restarted Elasticsearch after storing keystore