Where are the Openstack images stored?

user3497266 picture user3497266 · May 6, 2014 · Viewed 16.4k times · Source

I have a openstack private cloud deployed at my organization. I have some virtual images like ubuntu image, windows image which are uploaded through the openstack dashboard. But i would like to know where the images are stored in the openstack controller node.

I tried to go through path : /etc/glance and /var/lib/glance . But its not listing any of the images which are uploaded.

It would be great if i could get an insight about the same.

Answer

Matt Joyce picture Matt Joyce · May 6, 2014

Glance is the image manager for OpenStack. So we're going to need to hop onto one of your glance API nodes.

Depending on how glance is configured, your glance may be storing images in a myriad of potential backends. Ranging from files in a directory to on a swift object store.

Check out /etc/glance/glance.conf to see what format your images are being stored in.

default_store=STORE

STORE would be the format the images are stored in. The default format is file.

If it's file's as I assume it is.

Check /etc/glance/glance.conf for this attribute:

filesystem_store_datadir=PATH

PATH would be where the images are. If this isn't set, it will default to:

Default: /var/lib/glance/images/

ref: http://docs.openstack.org/developer/glance/configuring.html