<font size="4">Hello all,</font><div><font size="4">I tried to config the swift using keystone. It seems ok that I use the swift command:</font></div><div><div><font size="1" style="background-color:rgb(204,204,204)">swift -V 2 -A <a href="http://127.0.0.1:5000/v2.0">http://127.0.0.1:5000/v2.0</a> -U service:swift -K swift stat</font></div>
<div><font size="1" style="background-color:rgb(204,204,204)">   Account: AUTH_a715e6bff8f54a1b85a8a61c0d2be1ca</font></div><div><font size="1" style="background-color:rgb(204,204,204)">Containers: 1</font></div><div><font size="1" style="background-color:rgb(204,204,204)">   Objects: 0</font></div>
<div><font size="1" style="background-color:rgb(204,204,204)">     Bytes: 0</font></div><div><font size="1" style="background-color:rgb(204,204,204)">Accept-Ranges: bytes</font></div><div><font size="1" style="background-color:rgb(204,204,204)">X-Timestamp: 1341464397.05768</font></div>
<div><font size="1" style="background-color:rgb(204,204,204)">X-Trans-Id: tx7a6fd2d77e144253a003dab4f6a4fa21</font></div><div><br></div><div><span style="font-size:large">My swift is 1.5.0.</span></div><div><font size="4">The keystone is the newest version.</font></div>
<div><font size="4"><br></font></div><div><font size="4">I also tried to use python-cloudfiles to access the swift service, but failed.</font></div><div><div><font size="1" style="background-color:rgb(204,204,204)">conn = cloudfiles.get_connection(</font></div>
<div><font size="1" style="background-color:rgb(204,204,204)">        username='service:swift', api_key='swift', authurl='<a href="http://127.0.0.1:5000/v2.0">http://127.0.0.1:5000/v2.0</a>'</font></div>
<div><font size="1" style="background-color:rgb(204,204,204)">       )</font></div></div><div><div><font size="1" style="background-color:rgb(204,204,204)">Traceback (most recent call last):</font></div><div><font size="1" style="background-color:rgb(204,204,204)">  File "con.py", line 7, in <module></font></div>
<div><font size="1" style="background-color:rgb(204,204,204)">    username='service:swift', api_key='swift', authurl='<a href="http://127.0.0.1:5000/v2.0">http://127.0.0.1:5000/v2.0</a>'</font></div>
<div><font size="1" style="background-color:rgb(204,204,204)">  File "/home/alex/workspace/sws/cloudfiles/python-cloudfiles/cloudfiles/__init__.py", line 98, in get_connection</font></div><div><font size="1" style="background-color:rgb(204,204,204)">    return Connection(*args, **kwargs)</font></div>
<div><font size="1" style="background-color:rgb(204,204,204)">  File "/home/alex/workspace/sws/cloudfiles/python-cloudfiles/cloudfiles/connection.py", line 85, in __init__</font></div><div><font size="1" style="background-color:rgb(204,204,204)">    self._authenticate()</font></div>
<div><font size="1" style="background-color:rgb(204,204,204)">  File "/home/alex/workspace/sws/cloudfiles/python-cloudfiles/cloudfiles/connection.py", line 90, in _authenticate</font></div><div><font size="1" style="background-color:rgb(204,204,204)">    (url, self.cdn_url, self.token) = self.auth.authenticate()</font></div>
<div><font size="1" style="background-color:rgb(204,204,204)">  File "/home/alex/workspace/sws/cloudfiles/python-cloudfiles/cloudfiles/authentication.py", line 78, in authenticate</font></div><div><font size="1" style="background-color:rgb(204,204,204)">    raise ResponseError(response.status, response.reason)</font></div>
<div><font size="1" style="background-color:rgb(204,204,204)">cloudfiles.errors.ResponseError: 501: Not Implemented</font></div></div><div><font size="4"><br></font></div><div><font size="4">I found that the swift-client is use the 2.0 compatible api which sent a json string to kyestone port(5000), </font></div>
<div><font size="4">but the cloudfiles use the 1.0 api which sent the 'X-Auth-User' and 'X-Auth-Token' headers to keystone.</font></div><div><font size="4"><br></font></div><div><font size="4">If i want use the cloudfiles with the keystone(the newest version), I need change the code of cloudfiles by myself?</font></div>
<div><font size="4"><br></font></div><div><font size="4">thanks!</font></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>
</div>