Upload file using OpenStack Cinder
Can we upload file using OpenStack Cinder?
I have installed OpenStack via DevStack and has no Swift enabled.
First time here? Check out the FAQ!
Can we upload file using OpenStack Cinder?
I have installed OpenStack via DevStack and has no Swift enabled.
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.
How do I install Swift using DevStack while I am getting many errors while doing so! Can I upload files to SwifT/
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:
Asked: 2014-04-12 05:32:18 -0600
Seen: 492 times
Last updated: Apr 12 '14
VMs cannot ping the Virtual Gateway
stack.sh hangs on git clone to /opt/stack/nova
stack.sh hangs on git clone to /opt/stack/cinder
No handlers could be found for logger "keystoneclient.client" Invalid user / password (HTTP 401)
Devstack Install Fail with Permissions
Internel Server Error when installing Savanna