Ask Your Question

Why Glance image upload is really slow using ceph storage integration?

asked 2016-11-18 04:45:52 -0500

vathanlal gravatar image

updated 2016-11-18 04:46:45 -0500


I tried to upload image to glance with ceph as storage backend. But for 32mb cirros image it tooks about 2 hours for uploading. Iam using openstack newton release. What I need to do to make it fast??

my [glance_store] part in glance-api.conf is as below

stores = file,http,,
default_store = rbd
rbd_store_pool = images
rbd_store_user = glance
rbd_store_ceph_conf = /etc/ceph/ceph.conf
filesystem_store_datadir = /var/lib/glance/images/

I uploaded the image as below

openstack image create --file cirros-0.3.4-x86_64-disk.raw --container-format bare --disk-format raw --public --verbose --debug cirros-0.3.4

After two hours the image is active and I can see it in my ceph storage. But this is too long. Any help to reduce the time for uploading is really appreciated.

edit retag flag offensive close merge delete


Start by finding out whether the problem is on the OpenStack or Ceph side: Upload files to Ceph directly. If it's OpenStack, start with the glance logs.

Bernd Bausch gravatar imageBernd Bausch ( 2016-11-18 09:17:31 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2017-02-05 00:03:47 -0500

p.bagherpour gravatar image

Hi vathanlal

comment or remove this line: filesystem_store_datadir = /var/lib/glance/images/ that is default path of glance image (local file system) not ceph backend.

and then when image uploading finished, you saw it in Ceph backend or in /var/lib/glance/images/ location in glance? you can use this command to verify glance image exists in Ceph:

rbd -p images ls

edit flag offensive delete link more


can somebody help me out to solve this issue?

nizam_m037 gravatar imagenizam_m037 ( 2017-07-17 09:13:13 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2016-11-18 04:45:52 -0500

Seen: 1,380 times

Last updated: Feb 05 '17