[Openstack] [Swift]Is the cloudfiles compatible with keystone v2.0?

Alex Yang alex890714 at gmail.com
Fri Jul 6 04:22:05 UTC 2012


Hi,
I have created a new branch named for_keystone2.0 in git at github.com:
AlexYangYu/python-cloudfiles.git.
This branch works fine with keystone v2.0.

import cloudfiles

conn = cloudfiles.get_connection(
    username='service:swift', api_key='swift',
    authurl='http://127.0.0.1:5000/v2.0/tokens', auth_version='v2.0'
)

Why keystone encourage  migrating from port 5000 to port 35357?
In my opinion, the 5000 is a public endpoint for get tokens, the 35357 is
an admin endpoint.They may have different security strategy.
I am familiar with keystone.

2012/7/6 Pete Zaitcev <zaitcev at redhat.com>

> On Thu, 5 Jul 2012 18:21:48 +0800
> Alex Yang <alex890714 at gmail.com> wrote:
>
> > If i want use the cloudfiles with the keystone(the newest version), I
> need
> > change the code of cloudfiles by myself?
>
> Indeed, clients have to be adapted in cases like yours. However,
> please look at python-swiftclient. It may be sufficiently similar
> so you don't need to change much in your application that uses
> python-cloudfiles.
>
> By the way, it was my understanding that Keystone people encourage
> everyone to migrate from port 5000 to port 35357. The latter is
> assigned with IANA.
>
> -- Pete
>



-- 
  杨雨
  Email:       alex890714 at gmail.com
GitHub:       https://github.com/AlexYangYu
    Blog:        http://alexyang.sinaapp.com
 Weibo:       http://www.weibo.com/alexyangyu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120706/ef43d6f9/attachment.html>


More information about the Openstack mailing list