Ask Your Question
0

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 -0600

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
1

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

RHK gravatar image

Hello,

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"

Regards,
RHK

edit flag offensive delete link more
1

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

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

Stats

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

Seen: 234 times

Last updated: Dec 07 '15