diff options
author | Rick Harris <rconradharris@gmail.com> | 2012-06-11 19:47:18 +0000 |
---|---|---|
committer | Rick Harris <rconradharris@gmail.com> | 2012-06-11 20:02:11 +0000 |
commit | b5ddcb2a91caac505b0ad35f65f058cdd80f9ec9 (patch) | |
tree | c2b0a95745c78882502f87154c8304a980722b1f /nova/flags.py | |
parent | b1b09368f07b178416949b045f459bd00ec491a3 (diff) | |
download | nova-b5ddcb2a91caac505b0ad35f65f058cdd80f9ec9.tar.gz nova-b5ddcb2a91caac505b0ad35f65f058cdd80f9ec9.tar.xz nova-b5ddcb2a91caac505b0ad35f65f058cdd80f9ec9.zip |
Adds property to selectively enable image caching.
The image-property `cache_in_nova` can be used to choose which images
should be cached in Nova. One use-case would be to cache base images but
not any customer snapshots.
Change-Id: I1b8ac914a6effd4cd4653aae7e4eac9d14d0e7bd
Diffstat (limited to 'nova/flags.py')
-rw-r--r-- | nova/flags.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/nova/flags.py b/nova/flags.py index 25d5e0be7..bc05901a3 100644 --- a/nova/flags.py +++ b/nova/flags.py @@ -406,9 +406,12 @@ global_opts = [ cfg.ListOpt('isolated_hosts', default=[], help='Host reserved for specific images'), - cfg.BoolOpt('cache_images', - default=True, - help='Cache glance images locally'), + cfg.StrOpt('cache_images', + default='all', + help='Cache glance images locally. `all` will cache all' + ' images, `some` will only cache images that have the' + ' image_property `cache_in_nova=True`, and `none` turns' + ' off caching entirely'), cfg.BoolOpt('use_cow_images', default=True, help='Whether to use cow images'), |