Ask Your Question
0

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

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

vathanlal gravatar image

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

Hi,

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,glance.store.rbd.Store,glance.store.http.Store
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

Comments

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

1 answer

Sort by ยป oldest newest most voted
0

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

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

Comments

can somebody help me out to solve this issue?

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

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

2 followers

Stats

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

Seen: 758 times

Last updated: Feb 05 '17