[ 
https://issues.apache.org/jira/browse/LIBCLOUD-290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13572341#comment-13572341
 ] 

Tomaz Muraus commented on LIBCLOUD-290:
---------------------------------------

Can you please try it with 0.12.0 tag and latest revision from 0.12.x branch?

0.12.0 tag should work because I've tested it with multiple regions before 
creating a release. I confirmed that it's working by instantiating a driver for 
multiple regions (using get_provider without passing datacenter argument) and 
inspecting the LIBCLOUD_DEBUG output and making sure it's hitting the correct 
region, etc.

It is possible though that I've introduced a regression when backporting some 
changes from trunk to 0.12.x branch recently.
                
> Removal of "datacenter" var from 0.12.0 forces user to supply datacenter 
> parameter to EC2NodeDriver.__init__()
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: LIBCLOUD-290
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-290
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Compute
>            Reporter: Matt Black
>
> When I instantiate libcloud via get_driver(Provider.EC2_AP_SOUTHEAST), I'm 
> returned a libcloud.compute.drivers.ec2.EC2APSENodeDriver object. Since the 
> refactor to remove "datacenter", EC2NodeDriver.__init__() sets my region back 
> to "us-east-1".
> Previously this code worked:
> driver = get_driver(Provider.EC2_AP_SOUTHEAST)
> connection = driver(key, secret)
> Now I need:
> driver = get_driver(Provider.EC2_AP_SOUTHEAST)
> connection = driver(key, secret, datacenter="ap-southeast-1")
> Reference:
> https://github.com/apache/libcloud/commit/923704a204939eb50d547ad1bc9edc7a1108f158

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to