Ask Your Question

Is there a way to take the snapshot of an image while using ceph as a backend with any of the OpenStack components(glance/cinder/nova commands)?

asked 2015-12-07 00:12:21 -0500

Meena gravatar image

I'm using ceph as a back-end and I would like to take a snapshot of an image which is present in the images pool. I understand that this can be done by using rbd commands. But I just want to know is there a way to do the same with any of the OpenStack components(glance/cinder/nova commands).

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2015-12-07 04:58:53 -0500

RHK gravatar image


If you are going to create new environment (same openstack version, different servers), if you wan't to move all running instances to new environment.

You can migrate the running instances if your environment was configured for live migration.

(OR) you can take the snapshot of running instances:

  1. create snapshots of the running instances with "nova image-create"

  2. publish your /var/lib/glance/images via http OR use glance image-download to copy the snapshots somewhere and publish that directory via http

  3. import those snaps in the new environment by using "glance image-create --copy-from"


edit flag offensive delete link more

answered 2015-12-07 04:37:12 -0500

capsali gravatar image

Why would you want to take a snapshot of an image in glance? I mean, the image will never change when you spawn an instance from it because another copy of it is created when an instance is created.

This being said there is no straight forward command to take a snapshot of an image that i know of. You could spawn an instance from it, make the necesary changes to it and then take a snapshot of the instance. This will upload it into glance like a normal image.

Or you could create a bootable volume from the image, spawn an instace, make changes, terminate instance and than upload the volume into glance as an image!

edit flag offensive delete link more

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


Asked: 2015-12-07 00:12:21 -0500

Seen: 252 times

Last updated: Dec 07 '15