Ask Your Question
0

Upload file using OpenStack Cinder

asked 2014-04-12 05:32:18 -0500

mani619cash gravatar image

Can we upload file using OpenStack Cinder?

I have installed OpenStack via DevStack and has no Swift enabled.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-04-12 06:57:18 -0500

Ignacio Mulas gravatar image

The short question is no.

Cinder is meant to be used for block storage (e.g volumes). This means that is a storage area that will be used by your VMs and at the moment one volume can belong to one VM simultaneoulsy (although this might change in the future, https://blueprints.launchpad.net/cinder/+spec/multi-attach-volume)

Cinder Api reference: http://docs.openstack.org/api/openstack-block-storage/2.0/content/

Swift is used for object storage, the main difference between volume and object is that the object is retrievable from the API (and hence, not attached to a specific VM) and the volume can only be accessed through the VM.

Swift Api reference: http://docs.openstack.org/api/openstack-object-storage/1.0/content/

For a file, I would suggest you enable and use Swift.

edit flag offensive delete link more

Comments

How do I install Swift using DevStack while I am getting many errors while doing so! Can I upload files to SwifT/

mani619cash gravatar imagemani619cash ( 2014-04-12 07:21:01 -0500 )edit

Swift should be installed providing the rigt options in the local.conf: Check this other thread where it is explained how to make a swift enabled installation:

https://ask.openstack.org/en/question...

Swift can handle objects so you should be able to upload files to it. See this example where they are uploading a photo to swift thorugh the REST API:

http://docs.openstack.org/api/opensta...

Ignacio Mulas gravatar imageIgnacio Mulas ( 2014-04-13 05:09:53 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-04-12 05:32:18 -0500

Seen: 413 times

Last updated: Apr 12 '14