You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@libcloud.apache.org by Frank Kumro <fr...@employii.com> on 2014/09/30 18:34:47 UTC

Could not find specified endpoint - Python 3 - Cloudfiles_US

Hi,

I am trying to access my RackSpace CloudFiles account via libcloud and 
ran into some issues. Based on the debug output the authentication call 
is successful but I am unable to list/create containers.

Example:
-------------------------------------------------
from django.conf import settings
from libcloud.storage.types import Provider
from libcloud.storage.providers import get_driver

username = settings.RACKSPACE_USERNAME
api_key = settings.RACKSPACE_API_KEY

CloudFiles = get_driver(Provider.CLOUDFILES_US)

driver = CloudFiles(username, api_key)

driver.list_containers()
-------------------------------------------------

Results in a LibcloudError being raised: LibcloudError: <LibcloudError 
in None 'Could not find specified endpoint'>

I receive the same error when I try to get or create a container too.

This occurs when I try to access a container I created via website as well.

Python 3.4 is being used. Any help would be appreciated!

Thanks,

-- 
Frank Kumro

Re: Could not find specified endpoint - Python 3 - Cloudfiles_US

Posted by Tomaz Muraus <to...@apache.org>.
Hey,

Yes, "one class per region" approach has been deprecated since Libcloud
0.14.0 and you should use the "region argument" approach -
https://libcloud.readthedocs.org/en/latest/upgrade_notes.html#libcloud-0-14-0

On Thu, Oct 9, 2014 at 12:29 AM, Frank Kumro <fr...@employii.com> wrote:

> I wanted to post a follow up to my issue. I found that the default region
> for the CLOUDFILES_US driver did not currently support cloudfiles. To solve
> this I changed the driver to CLOUDFILES (not CLOUDFILES_US) and then used
> the region param to set the appropriate region.
>
> driver = get_driver(Provider.CLOUDFILES)
> storage = driver(username, api_key, region='iad')
>
>
>
> On 09/30/2014 12:34 PM, Frank Kumro wrote:
>
>> Hi,
>>
>> I am trying to access my RackSpace CloudFiles account via libcloud and
>> ran into some issues. Based on the debug output the authentication call
>> is successful but I am unable to list/create containers.
>>
>> Example:
>> -------------------------------------------------
>> from django.conf import settings
>> from libcloud.storage.types import Provider
>> from libcloud.storage.providers import get_driver
>>
>> username = settings.RACKSPACE_USERNAME
>> api_key = settings.RACKSPACE_API_KEY
>>
>> CloudFiles = get_driver(Provider.CLOUDFILES_US)
>>
>> driver = CloudFiles(username, api_key)
>>
>> driver.list_containers()
>> -------------------------------------------------
>>
>> Results in a LibcloudError being raised: LibcloudError: <LibcloudError
>> in None 'Could not find specified endpoint'>
>>
>> I receive the same error when I try to get or create a container too.
>>
>> This occurs when I try to access a container I created via website as
>> well.
>>
>> Python 3.4 is being used. Any help would be appreciated!
>>
>> Thanks,
>>
>>
> --
> Frank Kumro
> Senior Engineer, Employii
> frank@employii.com
>

Re: Could not find specified endpoint - Python 3 - Cloudfiles_US

Posted by Frank Kumro <fr...@employii.com>.
I wanted to post a follow up to my issue. I found that the default 
region for the CLOUDFILES_US driver did not currently support 
cloudfiles. To solve this I changed the driver to CLOUDFILES (not 
CLOUDFILES_US) and then used the region param to set the appropriate region.

driver = get_driver(Provider.CLOUDFILES)
storage = driver(username, api_key, region='iad')


On 09/30/2014 12:34 PM, Frank Kumro wrote:
> Hi,
>
> I am trying to access my RackSpace CloudFiles account via libcloud and
> ran into some issues. Based on the debug output the authentication call
> is successful but I am unable to list/create containers.
>
> Example:
> -------------------------------------------------
> from django.conf import settings
> from libcloud.storage.types import Provider
> from libcloud.storage.providers import get_driver
>
> username = settings.RACKSPACE_USERNAME
> api_key = settings.RACKSPACE_API_KEY
>
> CloudFiles = get_driver(Provider.CLOUDFILES_US)
>
> driver = CloudFiles(username, api_key)
>
> driver.list_containers()
> -------------------------------------------------
>
> Results in a LibcloudError being raised: LibcloudError: <LibcloudError
> in None 'Could not find specified endpoint'>
>
> I receive the same error when I try to get or create a container too.
>
> This occurs when I try to access a container I created via website as well.
>
> Python 3.4 is being used. Any help would be appreciated!
>
> Thanks,
>

-- 
Frank Kumro
Senior Engineer, Employii
frank@employii.com