You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@whirr.apache.org by "Andrei Savu (JIRA)" <ji...@apache.org> on 2011/04/12 21:32:05 UTC

[jira] [Created] (WHIRR-279) Create ClusterSpec aware BlobStoreContext factory class

Create ClusterSpec aware BlobStoreContext factory class
-------------------------------------------------------

                 Key: WHIRR-279
                 URL: https://issues.apache.org/jira/browse/WHIRR-279
             Project: Whirr
          Issue Type: Sub-task
          Components: core
            Reporter: Andrei Savu
            Assignee: Andrei Savu
             Fix For: 0.5.0


Add a new factory class that could be used to create BlobStoreContext instances based on configuration options provided by ClusterSpec. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (WHIRR-279) Create ClusterSpec aware BlobStoreContext factory class

Posted by "Andrei Savu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrei Savu updated WHIRR-279:
------------------------------

    Status: Patch Available  (was: Open)

> Create ClusterSpec aware BlobStoreContext factory class
> -------------------------------------------------------
>
>                 Key: WHIRR-279
>                 URL: https://issues.apache.org/jira/browse/WHIRR-279
>             Project: Whirr
>          Issue Type: Sub-task
>          Components: core
>            Reporter: Andrei Savu
>            Assignee: Andrei Savu
>             Fix For: 0.5.0
>
>         Attachments: WHIRR-279.patch
>
>
> Add a new factory class that could be used to create BlobStoreContext instances based on configuration options provided by ClusterSpec. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (WHIRR-279) Create ClusterSpec aware BlobStoreContext factory class

Posted by "Andrei Savu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13020625#comment-13020625 ] 

Andrei Savu commented on WHIRR-279:
-----------------------------------

Adrian, thanks for the tip. I've implemented the suggested approach in a new patch I've created for WHIRR-280. 

> Create ClusterSpec aware BlobStoreContext factory class
> -------------------------------------------------------
>
>                 Key: WHIRR-279
>                 URL: https://issues.apache.org/jira/browse/WHIRR-279
>             Project: Whirr
>          Issue Type: Sub-task
>          Components: core
>            Reporter: Andrei Savu
>            Assignee: Andrei Savu
>             Fix For: 0.5.0
>
>         Attachments: WHIRR-279.patch, WHIRR-279.patch
>
>
> Add a new factory class that could be used to create BlobStoreContext instances based on configuration options provided by ClusterSpec. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (WHIRR-279) Create ClusterSpec aware BlobStoreContext factory class

Posted by "Adrian Cole (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13019887#comment-13019887 ] 

Adrian Cole commented on WHIRR-279:
-----------------------------------

@andrei even within the same provider, the location ids between compute and blobstore can be different.  Ex. in S3 there is us-standard location which is "" and implicitly including ec2 east and west.

The challenge is this..  use node.getLocation.isoCodes()  then.. search through blobstore.getAssignableLocations until you find one that has the same codes as node has.  This will get you the right location in a portable way.

> Create ClusterSpec aware BlobStoreContext factory class
> -------------------------------------------------------
>
>                 Key: WHIRR-279
>                 URL: https://issues.apache.org/jira/browse/WHIRR-279
>             Project: Whirr
>          Issue Type: Sub-task
>          Components: core
>            Reporter: Andrei Savu
>            Assignee: Andrei Savu
>             Fix For: 0.5.0
>
>         Attachments: WHIRR-279.patch, WHIRR-279.patch
>
>
> Add a new factory class that could be used to create BlobStoreContext instances based on configuration options provided by ClusterSpec. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (WHIRR-279) Create ClusterSpec aware BlobStoreContext factory class

Posted by "Andrei Savu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrei Savu updated WHIRR-279:
------------------------------

    Attachment: WHIRR-279.patch

Fixed patch (moved default values for blob store identity and credential from .properties file to ClusterSpec getters).

Adrian is it possible to setup a default location for a BlobStoreContext when the instance is created? (I've only looked at the javadoc files). 

> Create ClusterSpec aware BlobStoreContext factory class
> -------------------------------------------------------
>
>                 Key: WHIRR-279
>                 URL: https://issues.apache.org/jira/browse/WHIRR-279
>             Project: Whirr
>          Issue Type: Sub-task
>          Components: core
>            Reporter: Andrei Savu
>            Assignee: Andrei Savu
>             Fix For: 0.5.0
>
>         Attachments: WHIRR-279.patch, WHIRR-279.patch
>
>
> Add a new factory class that could be used to create BlobStoreContext instances based on configuration options provided by ClusterSpec. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (WHIRR-279) Create ClusterSpec aware BlobStoreContext factory class

Posted by "Andrei Savu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrei Savu updated WHIRR-279:
------------------------------

    Status: Patch Available  (was: Open)

> Create ClusterSpec aware BlobStoreContext factory class
> -------------------------------------------------------
>
>                 Key: WHIRR-279
>                 URL: https://issues.apache.org/jira/browse/WHIRR-279
>             Project: Whirr
>          Issue Type: Sub-task
>          Components: core
>            Reporter: Andrei Savu
>            Assignee: Andrei Savu
>             Fix For: 0.5.0
>
>         Attachments: WHIRR-279.patch, WHIRR-279.patch
>
>
> Add a new factory class that could be used to create BlobStoreContext instances based on configuration options provided by ClusterSpec. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (WHIRR-279) Create ClusterSpec aware BlobStoreContext factory class

Posted by "Andrei Savu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrei Savu updated WHIRR-279:
------------------------------

    Attachment: WHIRR-279.patch

Created a new class and added a basic unit test. 

> Create ClusterSpec aware BlobStoreContext factory class
> -------------------------------------------------------
>
>                 Key: WHIRR-279
>                 URL: https://issues.apache.org/jira/browse/WHIRR-279
>             Project: Whirr
>          Issue Type: Sub-task
>          Components: core
>            Reporter: Andrei Savu
>            Assignee: Andrei Savu
>             Fix For: 0.5.0
>
>         Attachments: WHIRR-279.patch
>
>
> Add a new factory class that could be used to create BlobStoreContext instances based on configuration options provided by ClusterSpec. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (WHIRR-279) Create ClusterSpec aware BlobStoreContext factory class

Posted by "Andrei Savu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrei Savu updated WHIRR-279:
------------------------------

    Status: Open  (was: Patch Available)

It seems like the CLI unit tests are failing. I will submit a new version soon. 

> Create ClusterSpec aware BlobStoreContext factory class
> -------------------------------------------------------
>
>                 Key: WHIRR-279
>                 URL: https://issues.apache.org/jira/browse/WHIRR-279
>             Project: Whirr
>          Issue Type: Sub-task
>          Components: core
>            Reporter: Andrei Savu
>            Assignee: Andrei Savu
>             Fix For: 0.5.0
>
>         Attachments: WHIRR-279.patch
>
>
> Add a new factory class that could be used to create BlobStoreContext instances based on configuration options provided by ClusterSpec. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (WHIRR-279) Create ClusterSpec aware BlobStoreContext factory class

Posted by "Andrei Savu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrei Savu updated WHIRR-279:
------------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

I've just committed this.

> Create ClusterSpec aware BlobStoreContext factory class
> -------------------------------------------------------
>
>                 Key: WHIRR-279
>                 URL: https://issues.apache.org/jira/browse/WHIRR-279
>             Project: Whirr
>          Issue Type: Sub-task
>          Components: core
>            Reporter: Andrei Savu
>            Assignee: Andrei Savu
>             Fix For: 0.5.0
>
>         Attachments: WHIRR-279.patch, WHIRR-279.patch
>
>
> Add a new factory class that could be used to create BlobStoreContext instances based on configuration options provided by ClusterSpec. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira