OpenStack Block Storage (Cinder)
Go to file
John Griffith aaecfcf15e Make sure device support Direct before setting
We added '-t none' option to the qemu-img convert operation
in image_utils.py a while back to accomodate a couple of
backend devices that didn't flush writes on disconnect.
(Change: I7a04f683add8c23b9125fe837c4048ccc3ac224d)

The only problem here is that some backend devices don't
support Direct mode and raise an exception and fail when
setting this option.

This patch adds a simple check using dd to see if the dest
supports the Direct flag and only sets '-t none' if the device
does in fact support it.

Additionally it was brought up that even yet other backends
are using file devices not blk devices.  In their case setting
Direct will still work, however it's sub-optimal as qemu-convert
has internal mechanisms to make sure flushing etc are done
correctly and efficiently for those devices.  So to accomodate
that particular use case I'm also adding a check if blk dev
that can be used for determining whether to set Direct for the
qemu-convert process.

Change-Id: I34127ac373ceadcfb6fc2662628b1a91eb7b0046
Closes-Bug: 1375487
(cherry picked from commit c42273fbc1)
2014-10-08 20:44:58 -06:00
bin Typo "asscoiated" should be "associated" 2014-09-18 11:34:08 -07:00
cinder Make sure device support Direct before setting 2014-10-08 20:44:58 -06:00
doc Adds openSUSE support for developer documentation 2014-09-29 17:25:10 +02:00
etc/cinder Update /etc/cinder/cinder.conf.sample for memcache 2014-09-25 16:06:58 -05:00
rally-scenarios Add rally job 2014-04-25 18:31:06 +03:00
tools Ignore pylint error 'hashlib' has no shaxxx member 2014-08-29 12:18:06 -04:00
.coveragerc Add .coveragerc to show proper coverage statistics. As in other openstack projects. 2013-05-15 03:40:07 -07:00
.gitignore Updates .gitignore 2013-11-28 09:52:23 +00:00
.gitreview Initial fork out of Nova. 2012-05-03 10:48:26 -07:00
.mailmap Add mailmap entry 2014-05-07 12:03:15 -07:00
.testr.conf Fix up the test framework 2013-06-14 14:02:17 +00:00
babel.cfg Initial fork out of Nova. 2012-05-03 10:48:26 -07:00
CONTRIBUTING.md Fix the section name in CONTRIBUTING.rst 2014-07-14 19:53:30 +08:00
HACKING.rst Updated HACKING.rst so that it is accurate 2014-08-09 22:07:11 -05:00
LICENSE Initial fork out of Nova. 2012-05-03 10:48:26 -07:00
MANIFEST.in Use setuptools-git. 2012-08-10 11:56:00 -04:00
openstack-common.conf Switch to use oslo.db 2014-07-21 16:10:41 +03:00
pylintrc Initial fork out of Nova. 2012-05-03 10:48:26 -07:00
README.rst Adding helpful URL links to README.rst and HACKING.rst 2013-12-27 19:29:17 -06:00
requirements.txt Updated from global requirements 2014-09-18 13:58:41 +00:00
run_tests.sh Fix running unit tests with coverage 2014-09-02 13:04:06 +01:00
setup.cfg Merge "Remove cinder-rpc-zmq-receiver" 2014-07-29 19:22:32 +00:00
setup.py Updated from global requirements 2014-05-22 07:04:39 +00:00
test-requirements.txt Updated from global requirements 2014-09-18 13:58:41 +00:00
tox.ini Remove unused py33 tox env 2014-09-22 12:40:43 +00:00

The Choose Your Own Adventure README for Cinder

You have come across a storage service for an open cloud computing service. It has identified itself as "Cinder." It was abstracted from the Nova project.

To monitor it from a distance: follow @openstack on twitter.

To tame it for use in your own cloud: read http://docs.openstack.org

To study its anatomy: read http://cinder.openstack.org

To dissect it in detail: visit http://github.com/openstack/cinder

To taunt it with its weaknesses: use http://bugs.launchpad.net/cinder

To watch it: http://jenkins.openstack.org

To hack at it: read HACKING.rst