<div dir="ltr">Hi Dhanesh, <div><br></div><div>Before answering the questions, I'd like to know what's the authentication mechanism of your Swift instance ? (Keystone or TempAuth)</div><div><br></div><div><div><blockquote style="font-family:arial,sans-serif;font-size:14px;margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex" class="gmail_quote">
<font color="#cccccc">As an admin i can access container and i can upload files. <br>what about users inside a project. After giving reselleradmin access to the project, user is also able to upload files</font><br></blockquote>
<div style="font-family:arial,sans-serif;font-size:14px"><br></div><div style="font-family:arial,sans-serif;font-size:14px">In case of Swift integrates with Keystone, you can grant roles-tenant-user relationship inside keystone. Swift is able to allow specific roles for accessing particular project(swift account). </div>
<div style="font-family:arial,sans-serif;font-size:14px"><br></div><div style="font-family:arial,sans-serif;font-size:14px">There're two essential middlewares for leveraging Keystone as the authentication server for Swift. </div>
<div style="font-family:arial,sans-serif;font-size:14px"><ul><li>keystoneauth <br></li><li>tokenauth <br></li></ul></div>The authtoken middleware will take care of validating the user and keystoneauth will authorize access. You can specify permit roles in keystoneauth(<a href="https://github.com/HugoKuo/swift/blob/master/etc/proxy-server.conf-sample#L280-L282">https://github.com/HugoKuo/swift/blob/master/etc/proxy-server.conf-sample#L280-L282</a>)</div>
<div><br></div><div>So an user with role in operator or reselleradmin means the user is capable to operate on the Swift account(project).</div><div><br></div><div> <blockquote style="font-family:arial,sans-serif;font-size:14px;margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex" class="gmail_quote">
<font color="#cccccc">what are the uses of swift in openstack?</font><br></blockquote><div><br></div><div>Various use cases of OpenStack Swift. As far as your question, Swift is used for storing instance's raw-images and snapshots with high availability(3 replicas in general). </div>
<div><br></div><div>Besides images and snapshots, you can store <b>any data(especially static data)</b> inside Swift for high availability.   </div><div> </div><blockquote style="font-family:arial,sans-serif;font-size:14px;margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex" class="gmail_quote">
<font color="#cccccc">How is it useful as a storage?</font><br></blockquote><div><br></div><div><h2 style="margin:0px 0px 0.75em;padding:0px;border:0px;font-weight:normal;font-size:18px;font-family:'PT Sans',serif;vertical-align:baseline;color:rgb(38,77,105);letter-spacing:-0.076em;line-height:1em">
Object Storage Capabilities</h2><ul style="margin:0px 1.5em 1.5em 0px;padding:0px 0px 0px 3.333em;border:0px;font-size:11.818181991577148px;font-family:'Helvetica Neue',Arial,Helvetica,sans-serif;vertical-align:baseline;color:rgb(83,83,83);line-height:16.365270614624023px">
<li style="margin:0px;padding:0px;border:0px;font-weight:inherit;font-style:inherit;font-size:11.818181991577148px;font-family:inherit;vertical-align:baseline">OpenStack provides redundant, scalable object storage using clusters of standardized servers capable of storing petabytes of data</li>
<li style="margin:0px;padding:0px;border:0px;font-weight:inherit;font-style:inherit;font-size:11.818181991577148px;font-family:inherit;vertical-align:baseline">Object Storage is not a traditional file system, but rather a distributed storage system for static data such as virtual machine images, photo storage, email storage, backups and archives. Having no central "brain" or master point of control provides greater scalability, redundancy and durability.</li>
<li style="margin:0px;padding:0px;border:0px;font-weight:inherit;font-style:inherit;font-size:11.818181991577148px;font-family:inherit;vertical-align:baseline">Objects and files are written to multiple disk drives spread throughout servers in the data center, with the OpenStack software responsible for ensuring data replication and integrity across the cluster.</li>
<li style="margin:0px;padding:0px;border:0px;font-weight:inherit;font-style:inherit;font-size:11.818181991577148px;font-family:inherit;vertical-align:baseline">Storage clusters scale horizontally simply by adding new servers. Should a server or hard drive fail, OpenStack replicates its content from other active nodes to new locations in the cluster. Because OpenStack uses software logic to ensure data replication and distribution across different devices, inexpensive commodity hard drives and servers can be used in lieu of more expensive equipment.</li>
</ul></div><div> </div><blockquote style="font-family:arial,sans-serif;font-size:14px;margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex" class="gmail_quote">
<font color="#cccccc">what are the datas we can store inside it?</font><br></blockquote><div><br></div><div>Photos, VM images, Video, archive, document etc. Good for any data that doesn't be edited frequently. Frequently means the data is needed to be updated every seconds or mins.  </div>
<div> </div><blockquote style="font-family:arial,sans-serif;font-size:14px;margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex" class="gmail_quote"><font color="#cccccc">Will it work like glance?</font><br>
</blockquote><div><br></div><div>Glance is a layer to mange images with two major parts, database and storage media. By default, Glance stores images raw data on local volume and metadata in a database(e.g. Mysql). Glance supports Swift as the storage media that you can find the configurations over here ( <a href="https://github.com/openstack/glance/blob/master/etc/glance-api.conf#L299">https://github.com/openstack/glance/blob/master/etc/glance-api.conf#L299</a> ). </div>
<div><br></div><div>So Swift coordinates with Glance instead of replacing Glance in OpenStack platform. </div><div><br></div><div> </div><blockquote style="font-family:arial,sans-serif;font-size:14px;margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex" class="gmail_quote">
<font color="#cccccc">In cloudstack we have primary storage and secondary storage. what is the role of swift or object store in opensatck in admin level and project (user )level.</font><br></blockquote><div><br></div><div>
Swift is more like the secondary storage of CloudStack. </div><div> </div><blockquote style="font-family:arial,sans-serif;font-size:14px;margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex" class="gmail_quote">
 <br><font color="#cccccc">Still not clear about swift storage. guide me on this</font></blockquote><div><br></div><div>Hope it help </div><div><br></div><div>Hugo Kuo</div><div>SwiftStack Inc. </div></div></div><div><br>
</div><div><br></div></div>