Skip to content

Instantly share code, notes, and snippets.

@mgariepy
Created March 5, 2019 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgariepy/fc486ff89ee481956810f54a73d3727d to your computer and use it in GitHub Desktop.
Save mgariepy/fc486ff89ee481956810f54a73d3727d to your computer and use it in GitHub Desktop.
1 - create project
openstack project create --domain Default --description "Cinder image volume cache internal project" cinder_image_volume_cache
#set the quota (# of volume and volume GB. (a few extra free space won't hurt, cinder will cleanup according to the configuration but may be a bit higher.)
openstack quota set --gigabytes 300 --volumes 40 cinder_image_volume_cache
2 - create user
openstack user create --domain default cinder_image_volume_cache_user ## no pass needed here..
3 - add user to project
openstack role add --project cinder_image_volume_cache --user cinder_image_volume_cache_user _member_
4- add yourself if needed..
openstack role add --project cinder_image_volume_cache --user <me> _member_
4- need under you cinder_backends config, there : https://github.com/openstack/openstack-ansible/blob/master/etc/openstack_deploy/user_variables.yml.prod-ceph.example#L32
image_volume_cache_enabled: True
image_volume_cache_max_size_gb: 250
image_volume_cache_max_count: 30
5- need to add the project id and user id to the conf:
user_variables.yml :
cinder_cinder_conf_overrides:
DEFAULT:
cinder_internal_tenant_project_id: <<uuid fo the project created earlier>>
cinder_internal_tenant_user_id: <<uuid of the user created earlier>>
6- run cinder playbook
7- celebrate by leaving early (and leaving support stuff to your coleague if it breaks stuff)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment