Ask Your Question
0

Cinder Volume Cache

asked 2019-07-22 09:11:50 -0500

fgonzales gravatar image

Hi All, I'm creating a VM with the root volume based on a image. Basic a volume from an image.

So I followed these steps to enable cinder cache https://docs.openstack.org/cinder/latest/admin/blockstorage-image-volume-cache.html (https://docs.openstack.org/cinder/lat...) Editing my cinder.conf in my controller. But, it's downloading the image in every new VM request.

My question is, is there a way to create a VM when I create a Volume based on an image using a cache? I'd not like to download the image in every VM request.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2019-07-22 23:44:34 -0500

arunx gravatar image

This is test in Mitaka on Ceph Storage

Enable Cinder Cache Image on Ceph

Create a normal user and a normal project. No need to have any special privileges on the user or project

If you use Juju as your deployment tool, Add the following into /etc/cinder/cinder.conf ( via juju config-flags, cinder cache via template )

/etc/cinder/cinder.conf

[DEFAULT]
cinder_internal_tenant_project_id = PROJECT_ID
cinder_internal_tenant_user_id = USER_ID

[cinder-ceph]
image_volume_cache_enabled = True
image_volume_cache_max_size_gb = 400
image_volume_cache_max_count = 20

first time server creation would be slow due to first time cache, 2nd time server creation from the same Image creates faster.

Reference https://docs.openstack.org/mitaka/admin-guide/blockstorage_image_volume_cache.html (https://docs.openstack.org/mitaka/adm...)

edit flag offensive delete link more

Comments

Great, if I'm not using ceph, could I just add after a cinder-volume tag? That is the backend tag, right? (cinder-ceph) In my currently case I'm not using ceph, only cinder...

fgonzales gravatar imagefgonzales ( 2019-07-23 07:22:45 -0500 )edit

It worked, thanks @arunx. I just needed to use my backend tag on that.

fgonzales gravatar imagefgonzales ( 2019-07-26 14:20:50 -0500 )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

1 follower

Stats

Asked: 2019-07-22 09:11:50 -0500

Seen: 46 times

Last updated: Jul 22