<div dir="ltr"><div><div><div><div><div><div><div>Hi,<br><br><br></div><div>keystone is the authentication method.<br><br></div><div>my doubt in keystone Identity Service.<br><br></div><div>When alice launch an instance <br>
<br></div><div>1st credentials are sent : what credentials are sending ? is it the admin token?<br><br></div><div>please put an example to show what is the credential and catalog,token etc the whole process so that will have a better understanding what is happening.<br>
<br>********************************************************************************************************************<br></div><div><br></div><div><br></div>Thanks for the information. very useful. 100%. Community Rocks :)<br>
<br> Glance supports Swift as the storage media:<br><br></div> I have modified glance api and registry conf files and added default store as swift.<br><br></div> Now I want to know where the image will get stored. ( Meaning inside glance path or swift path )<br>
<br></div> /var/lib/images which is the default path for glance image or<br> <br></div>/srv/node/sda1/......" which is the newly created swift image store.<br><br><br></div><div>Note: In my configuration default glance storage is full. so its getting created inside /srv/node/sda1 as<br>
<br>[root@controller objects]# pwd<br>/srv/node/sda1/objects<br>[root@controller objects]# ls<br>105444 122879 132822 139239 159355 181200 189036 212398 223406 250266 259217 30947 46999 51604 65854 72820 7975 90548<br>
106819 122971 136641 149423 160195 187691 189342 215661 233311 251951 261667 32084 49690 61386 70617 73398 83357 98863<br>117245 130012 138254 155367 17167 188426 192918 222168 234219 258413 30213 35890 51350 6258 70880 78850 89722<br>
<br><br>[root@controller objects]# cd 10<br>105444/ 106819/ <br>[root@controller objects]# cd 105444/<br>[root@controller 105444]# ls<br>211 hashes.pkl<br>[root@controller 105444]# cd 211/<br>[root@controller 211]# ll<br>
total 0<br>drwxr-xr-x 2 swift swift 34 Jun 5 15:41 66f901ec5d1500a3d3a3d7fe06f2b211<br>[root@controller 211]# cd 66f901ec5d1500a3d3a3d7fe06f2b211/<br>[root@controller 66f901ec5d1500a3d3a3d7fe06f2b211]# ll<br>total 200004<br>
-rw------- 1 swift swift 204800000 Jun 5 15:41 1401963066.63643.data<br>[root@controller 66f901ec5d1500a3d3a3d7fe06f2b211]# file 1401963066.63643.data <br>1401963066.63643.data: data<br><br><br></div><div>Is everything Ok ? Anything I can do make it look better . I mean to show this in dashboard.<br>
</div><div><br></div>Regards,<br></div>Dhanesh. <br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 4, 2014 at 11:12 AM, Kuo Hugo <span dir="ltr"><<a href="mailto:tonytkdk@gmail.com" target="_blank">tonytkdk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Btw, you can place OpenStack Swift as the secondary storage of CloudStack as well. OpenStack Swift can work as an independent component without any other OpenStack components. <div>
<br></div><div><br></div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">2014-06-04 13:39 GMT+08:00 Kuo Hugo <span dir="ltr"><<a href="mailto:tonytkdk@gmail.com" target="_blank">tonytkdk@gmail.com</a>></span>:<div><div class="h5">
<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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><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><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" target="_blank">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><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><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> </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><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> </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><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> </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><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" target="_blank">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><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>
<div>
Swift is more like the secondary storage of CloudStack. </div><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><div>Hope it help </div><span><font color="#888888"><div><br></div><div>Hugo Kuo</div>
<div>SwiftStack Inc. </div></font></span></div></div><div><br>
</div><div><br></div></div>
</blockquote></div></div></div><br></div>
</blockquote></div><br></div>