You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by "Aled Sage (JIRA)" <ji...@apache.org> on 2017/04/25 12:28:04 UTC

[jira] [Created] (BROOKLYN-486) Persistence to S3 ignores requested region

Aled Sage created BROOKLYN-486:
----------------------------------

             Summary: Persistence to S3 ignores requested region
                 Key: BROOKLYN-486
                 URL: https://issues.apache.org/jira/browse/BROOKLYN-486
             Project: Brooklyn
          Issue Type: Bug
            Reporter: Aled Sage


With Brooklyn 0.11.0-rc2, persisting state to S3 ignores the specified region - it always uses {{us-east-1}}, automatically creating the bucket there.

{{brooklyn.cfg}} contains:

{noformat}
brooklyn.location.named.my-s3=aws-s3:eu-west-1
brooklyn.location.named.my-s3.identity=********************
brooklyn.location.named.my-s3.credential=****************************************
{noformat}

And {{org.apache.brooklyn.osgilauncher.cfg}} contains:

{noformat}
persistenceLocation=my-s3
persistenceDir=my-bucket
{noformat}

When I start Brooklyn, it creates the bucket "my-s3" in {{us-east-1}} instead of the requested region {{eu-west-1}}.

The log shows:

{noformat}
2017-04-25 13:18:06,169 DEBUG 106 o.j.h.i.JavaUrlHttpCommandExecutorService [FelixStartLevel] Sending request 444872271: GET https://s3.amazonaws.com/my-bucket?location HTTP/1.1
2017-04-25 13:18:06,671 DEBUG 106 o.j.h.i.JavaUrlHttpCommandExecutorService [FelixStartLevel] Receiving response 444872271: HTTP/1.1 404 Not Found
2017-04-25 13:18:06,793 DEBUG 106 o.j.h.i.JavaUrlHttpCommandExecutorService [FelixStartLevel] Sending request -998308988: HEAD https://my-bucket.s3.amazonaws.com/ HTTP/1.1
2017-04-25 13:18:07,360 DEBUG 106 o.j.h.i.JavaUrlHttpCommandExecutorService [FelixStartLevel] Receiving response -998308988: HTTP/1.1 404 Not Found
2017-04-25 13:18:07,376 DEBUG 106 o.j.h.i.JavaUrlHttpCommandExecutorService [FelixStartLevel] Sending request 205233977: PUT https://my-bucket.s3.amazonaws.com/ HTTP/1.1
2017-04-25 13:18:08,013 DEBUG 106 o.j.h.i.JavaUrlHttpCommandExecutorService [FelixStartLevel] Receiving response 205233977: HTTP/1.1 200 OK
{noformat}




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)