<br><br><div class="gmail_quote">2012/7/6 Alex Yang <span dir="ltr"><<a href="mailto:alex890714@gmail.com" target="_blank">alex890714@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<div>I have created a new branch named for_keystone2.0 in git@github.com:AlexYangYu/python-cloudfiles.git.</div><div>This branch works fine with keystone v2.0.</div><div><br></div><div><div>import cloudfiles</div><div class="im">
<div><br>
</div><div>conn = cloudfiles.get_connection(</div><div>    username='service:swift', api_key='swift',</div></div><div>    authurl='<a href="http://127.0.0.1:5000/v2.0/tokens" target="_blank">http://127.0.0.1:5000/v2.0/tokens</a>', auth_version='v2.0'</div>

<div>)</div></div><div><br></div><div>Why keystone encourage  migrating from port 5000 to port 35357?</div><div>In my opinion, the 5000 is a public endpoint for get tokens, the 35357 is an admin endpoint.They may have different security strategy.</div>

<div><font color="#ff0000">I am familiar with keystone.</font></div></blockquote><div> <span style="color:rgb(255,0,0)">I am not familiar with keystone.</span></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div><div class="h5"><br><div class="gmail_quote">2012/7/6 Pete Zaitcev <span dir="ltr"><<a href="mailto:zaitcev@redhat.com" target="_blank">zaitcev@redhat.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>On Thu, 5 Jul 2012 18:21:48 +0800<br>
Alex Yang <<a href="mailto:alex890714@gmail.com" target="_blank">alex890714@gmail.com</a>> wrote:<br>
<br>
> If i want use the cloudfiles with the keystone(the newest version), I need<br>
> change the code of cloudfiles by myself?<br>
<br>
</div>Indeed, clients have to be adapted in cases like yours. However,<br>
please look at python-swiftclient. It may be sufficiently similar<br>
so you don't need to change much in your application that uses<br>
python-cloudfiles.<br>
<br>
By the way, it was my understanding that Keystone people encourage<br>
everyone to migrate from port 5000 to port 35357. The latter is<br>
assigned with IANA.<br>
<span><font color="#888888"><br>
-- Pete<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div></div></div><div class="im">-- <br>  ÑîÓê<div>  Email:       <a href="mailto:alex890714@gmail.com" target="_blank">alex890714@gmail.com</a><div>GitHub:       <a href="https://github.com/AlexYangYu" target="_blank">https://github.com/AlexYangYu</a></div>

<div>    Blog:        <a href="http://alexyang.sinaapp.com" target="_blank">http://alexyang.sinaapp.com</a></div><div> Weibo:       <a href="http://www.weibo.com/alexyangyu" target="_blank">http://www.weibo.com/alexyangyu</a></div>

</div><br>
</div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>  ÑîÓê<div>  Email:       <a href="mailto:alex890714@gmail.com" target="_blank">alex890714@gmail.com</a><div>GitHub:       <a href="https://github.com/AlexYangYu" target="_blank">https://github.com/AlexYangYu</a></div>
<div>    Blog:        <a href="http://alexyang.sinaapp.com" target="_blank">http://alexyang.sinaapp.com</a></div><div> Weibo:       <a href="http://www.weibo.com/alexyangyu" target="_blank">http://www.weibo.com/alexyangyu</a></div>
</div><br>