← Back to team overview

openstack team mailing list archive

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

 

Hi,
I have created a new branch named for_keystone2.0 in git@xxxxxxxxxx:
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@xxxxxxxxxx>

> On Thu, 5 Jul 2012 18:21:48 +0800
> Alex Yang <alex890714@xxxxxxxxx> 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@xxxxxxxxx
GitHub:       https://github.com/AlexYangYu
    Blog:        http://alexyang.sinaapp.com
 Weibo:       http://www.weibo.com/alexyangyu

Follow ups

References