[
https://issues.apache.org/jira/browse/LIBCLOUD-576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14025754#comment-14025754
]
ASF GitHub Bot commented on LIBCLOUD-576:
-----------------------------------------
GitHub user zestrada opened a pull request:
https://github.com/apache/libcloud/pull/311
[LIBCLOUD-576] SWIFT: removed superfulous call to upper() on service_region
As stated in the jira ticket, OpenStack uses mixed-case regions, but
rackspace only has uppercase regions. It seems that as a holdover from
supporting cloudfiles all openstack regions were converted to upper, causing
endpoint_get to fail.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zestrada/libcloud LIBCLOUD-576
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/libcloud/pull/311.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #311
----
commit b8d276edc4c6c6b9e304040f55ac575fb8551cef
Author: Zak Estrada <[email protected]>
Date: 2014-06-09T20:44:29Z
SWIFT: removed superfulous call to upper() on service_region
----
> Storage_Provider.OPENSTACK_SWIFT does not locate endpoints when regions have
> lowercase characters
> -------------------------------------------------------------------------------------------------
>
> Key: LIBCLOUD-576
> URL: https://issues.apache.org/jira/browse/LIBCLOUD-576
> Project: Libcloud
> Issue Type: Bug
> Components: Storage
> Reporter: Zak Estrada
>
> I kept getting
> {noformat}
> libcloud.common.types.LibcloudError: <LibcloudError in None 'Could not find
> specified endpoint'>
> {noformat}
> When trying to connect to my swift installation. I then discovered that lines
> 127 and 199 of libcloud/storage/drivers/cloudfiles.py indiscriminately
> convert the region to upper case. I will create a pull request for the
> trivial change to fix this.
--
This message was sent by Atlassian JIRA
(v6.2#6252)