The latest version of OpenStack, Folsom, was recently released. This release makes block devices in general, and Ceph block devices (RBD) in particular, much easier to use. If you’re not familiar with OpenStack terminology, there are a few things you should know before proceeding:
In previous releases, you could create volumes and attach them to virtual machines, and you could even boot from them, but there was no way to put data on them without going and doing it manually yourself. To boot from a volume, you’d have to:
Now you may be wondering, why would I want to boot from a volume? By default, you’re booting from a file on a local disk. That’s ok, but if you boot from a volume, you can take advantage of more advanced features of volume storage:
Volumes in OpenStack are persistent by default, so you can have vms that behave more like traditional servers which do not disappear when you reboot them.
In Folsom, using volumes is much easier. You can use a single API request to create a volume and populate it with the contents of an image from Glance, and you’re ready to boot from it. Thus, the 6 step manual process has been reduced to a 2 step automatic one.
Even better, if both your Glance images and your volumes are stored as Ceph block devices (RBD), creating a volume from an image can be a copy-on-write clone. This means you get a thin-provisioned, highly available disk along with fast instance creation. Plus it supports all the advanced features mentioned above.
You can find instructions for setting this up on the main Ceph.com site.
If you’d like to learn more about and Ceph and Cinder, you should check out my talk at the OpenStack conference.