From fb5a5cff7f6a64596963f2600e291fe4755cfa50 Mon Sep 17 00:00:00 2001 From: Matthew Thode Date: Wed, 22 Aug 2018 10:42:07 -0500 Subject: [PATCH] Bind mount glance cache directory By default glance has ~10GB available to cache images on within it's container. Some images exceed that size causing image uploads to fail. To work around this we can mount the image cache directory on the host. This has the same danger as bind mounting the image directory (filling up the host disk), so it's not a new danger, just one to be called out. Change-Id: I887180b165a802a8d3635c2ad5b2284a123e230d --- inventory/group_vars/glance_all.yml | 2 ++ releasenotes/notes/glance-cache-4d5f8036c5e8f5b1.yaml | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 releasenotes/notes/glance-cache-4d5f8036c5e8f5b1.yaml diff --git a/inventory/group_vars/glance_all.yml b/inventory/group_vars/glance_all.yml index 0443779d76..08398118f8 100644 --- a/inventory/group_vars/glance_all.yml +++ b/inventory/group_vars/glance_all.yml @@ -33,3 +33,5 @@ glance_venv_download_url: "{{ venv_base_download_url }}/glance-{{ openstack_rele glance_container_bind_mounts: - bind_dir_path: "/var/lib/glance/images" mount_path: "/openstack/{{ inventory_hostname }}" + - bind_dir_path: "/var/lib/glance/cache" + mount_path: "/openstack/{{ inventory_hostname }}" diff --git a/releasenotes/notes/glance-cache-4d5f8036c5e8f5b1.yaml b/releasenotes/notes/glance-cache-4d5f8036c5e8f5b1.yaml new file mode 100644 index 0000000000..02cba7ddf9 --- /dev/null +++ b/releasenotes/notes/glance-cache-4d5f8036c5e8f5b1.yaml @@ -0,0 +1,11 @@ +--- +features: + - | + Glance containers will now bind mount the default glance cache directory + from the host when glance_default_store is set to file and nfs is not in + use. With this change, the glance file cache size is no longer restricted + to the size of the container file system. +upgrade: + - | + Glance containers will be rebooted to add the glance cache bind mount if + glance_default_store is set to file and nfs is not in use.