deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "marios@redhat.com" <mandr...@redhat.com>
Subject Re: [PATCH] Adds blob streaming uploads using PUT (stream through thin+deltacloud)
Date Thu, 09 Jun 2011 09:23:32 GMT
On 08/06/11 20:01, marios@redhat.com wrote:

<snip>

>>> + #s3.amazonaws.com
>>> + provider =
>>> "https://#{Deltacloud::Drivers::driver_config[:ec2][:entrypoints]['s3']['us-east-1']}"
>>>
>>
>> This should use endpoint_for_service so that provider selection works as
>> expected.
>
> ===> problem is that we really MUST use 'https://s3.amazonaws.com' (i.e.
> the us-east endpoint) for putting blobs. Amazon redirects your put to
> the appropriate endpoint depending on your bucket location (e.g. to
> s3-eu-west-1.amazonaws.com for European buckets). I tried putting
> directly to the European endpoint but failed. The 'endpoint_for_service'
> method checks
> "(Thread.current[:provider] || ENV['API_PROVIDER'] || DEFAULT_REGION) "
> for the endpoint.
>
>

I was wrong about this - last time I tried to specify something like: 
bucketname.s3-eu-west-1.amazonaws.com  (i.e. put to a european endpoint) 
it failed - it may have been some network issue or more likely a silly 
error - sorry about that. I will change the code to use 
'enpoint_for_service'


marios

Mime
View raw message