<div>Hi Khabou,</div><div><br></div>There are several interpretations to your question..<div><br></div><div>If you want to query the exact different physical locations of a file, you can query the ring as follows.</div><div>

<br></div><div><br></div><div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<i><font color="#666666"># find the account id for a given account<br>#<br># $password  =  the general swift admin pass<br># $account  =  the account to which the file you're looking for belongs<br># (and change the host / port / protocol to match your setup)</font></i> </blockquote>

<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"> </blockquote>
<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<i><font color="#666666">swauth-list -A <a href="http://localhost:8080/auth/">http://localhost:8080/auth/</a> -K $password $account</font></i> </blockquote><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

 </blockquote><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
 </blockquote>
<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><i><font color="#666666"># Find location of files for a given object<br>

#<br># $id  =  the id retrieved through the command above<br># $container  =  the container in which the file resides<br># $file  =  the name of the file</font></i> </blockquote><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

 </blockquote><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<i><font color="#666666">swift-get-nodes /etc/swift/object.ring.gz $id $container $file</font></i></blockquote>
</div><div><i><font color="#666666"><br></font></i></div><div><i><font color="#666666"><br></font></i></div><div>This will tell you were the file matching the "/account/container/file" path you provided will reside (giving both the primary + hand-off locations).</div>

<div><br></div><div>It will do so regardless of whether that path (and thus file) actually exists, since as soon as you have build the ring that information is static / known for every possible combination of that "/account/container/file" path. (that may change if the ring gets rebuild)</div>

<div><br></div><div><br></div><div>If this is not the answer to your question, please elaborate a little more on what you want to achieve exactly.</div><div><br></div><div><br clear="all">Kind regards,<div>Frederik Van Hecke</div>

<div><br></div><div><font color="#999999"><b>T:</b>  +32487733713</font></div><div><font color="#999999"><b>E:</b>  <a href="mailto:frederik@cluttr.be" target="_blank">frederik@cluttr.be</a></font></div><div><font color="#999999"><b>W:</b> <a href="http://www.cluttr.be" target="_blank">www.cluttr.be</a></font></div>

<div><br></div><div><img src="http://cluttr.be/logo.mail.png"></div><div><br></div><div><br></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)"><pre style="white-space:pre-wrap">

<font color="#999999"><i>This e-mail and any attachments thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s)named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by persons other than the designated recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer. Thank you for your cooperation.</i></font></pre>

</span></div><br>
<br><br><div class="gmail_quote">On Mon, Apr 30, 2012 at 17:43, Caitlin Bestler <span dir="ltr"><<a href="mailto:Caitlin.Bestler@nexenta.com" target="_blank">Caitlin.Bestler@nexenta.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
<br>
khabou imen asked:<br>
<br>
➢<br>
➢ can any one help me in understanding how swift indexation happens ,<br>
<div class="im">➢ I am tryind to develop a client looking for a specific file stored with openstack storage<br>
<br>
</div>Your client would have to match what the Swift Proxy server did for a GET, including tracking which servers were down.<br>
Is there a specific benefit to bypassing the Swift Proxy that you are trying to achieve?<br>
<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</blockquote></div><br></div>