Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to add space for glance service

I have 100GB for Glance service. I need to reinstall everything, so I want to create images of my existing instances and Volumes. For volumes I use Cinder. From Cinder I can upload the volumes as images to Glance. The problem every volume is 1TB at least. So, what I wanted to do is to "give" more space to Cinder. How?

  • Move every image file from /var/lib/glance/images/ to /tmp
  • Install/format/mount a new 4TB HDD on /var/lib/glance/images/ (mount /dev/sdc1 /var/lib/glance/images/)
  • Change owner of /var/lib/glance/images/ to glance.glance
  • Move back all image files from /tmp

After that, every single creation, deletion or anything related with images failed. If I delete an image, this is what I get from command line:

# glance image-delete a8818cdd-9737-4294-9e48-06f995c5b873
HTTPInternalServerError (HTTP 500): Unable to delete image a8818cdd-9737-4294-9e48-06f995c5b873

And in /var/log/glance/api.log this is what I see:

 File "/usr/lib/python2.7/site-packages/glance_store/_drivers/", line 501, in delete
    raise exceptions.Forbidden(_("You cannot delete file %s") % fn)

I don't know where can be the problem. Any clue?