From 34093846a370ba9d08602c765c5b1868cc2961f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Thu, 9 Oct 2014 22:25:38 +0200 Subject: [PATCH] Remove Glance cache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Our default backend is RBD, using the 'keystone+cachemanagement' is extremely dangerous since it will result in images getting cached in the controllers under /var/lib/glance/image-cache/ and will potentially lead to a full system sooner or later. Moreover since we use RBD CoW clone there is no point to cache anything. Everytime a virtual machine is booted often, this image will go into the cache. Think about Windows 50GB big images, now think about 10 of them :D. Going further if we have to use another backend I won't recommend using it. I only Swift as a suitable backend for this, but regarding some recent effort on the Nova side (image direct url) to get the image directly from the storage entity I don't think it's useful to have any images cached anyways. Signed-off-by: Sébastien Han --- manifests/image/api.pp | 7 +++++++ spec/classes/cloud_image_api_spec.rb | 1 + 2 files changed, 8 insertions(+) diff --git a/manifests/image/api.pp b/manifests/image/api.pp index 1989c59d..f66d350c 100644 --- a/manifests/image/api.pp +++ b/manifests/image/api.pp @@ -83,6 +83,11 @@ # Example: 'nfsvers=3,noacl' # Defaults to 'defaults' # +# [*pipeline*] +# (optional) Partial name of a pipeline in your paste configuration file with the +# service name removed. +# Defaults to 'keystone'. +# class cloud::image::api( $glance_db_host = '127.0.0.1', $glance_db_user = 'glance', @@ -108,6 +113,7 @@ class cloud::image::api( $filesystem_store_datadir = undef, $nfs_device = false, $nfs_options = 'defaults', + $pipeline = 'keystone', ) { # Disable twice logging if syslog is enabled @@ -150,6 +156,7 @@ class cloud::image::api( bind_host => $api_eth, bind_port => $ks_glance_api_internal_port, use_syslog => $use_syslog, + pipeline => 'keystone', } # TODO(EmilienM) Disabled for now diff --git a/spec/classes/cloud_image_api_spec.rb b/spec/classes/cloud_image_api_spec.rb index afba74a2..b457cf20 100644 --- a/spec/classes/cloud_image_api_spec.rb +++ b/spec/classes/cloud_image_api_spec.rb @@ -64,6 +64,7 @@ describe 'cloud::image::api' do :bind_host => '10.0.0.1', :bind_port => '9292', :use_syslog => true, + :pipeline => 'keystone', :log_dir => false, :log_file => false )