From: Mike Perez Date: Sat, 17 May 2014 19:18:59 +0000 (-0400) Subject: Set volume usage audit period to not NoneType X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=d46ee739d68e713689de8ce420c8e21baef7d609;p=openstack-build%2Fcinder-build.git Set volume usage audit period to not NoneType The setting of NoneType causes cinder-volume-usage-audit to not start up and throw a stacktrace. This sets the config default back to something it can use. Change-Id: I4a9751025486b77dd7cf45d0aaad02e2325055d4 Closes-Bug: #1320541 --- diff --git a/cinder/common/config.py b/cinder/common/config.py index 09e2d36db..ce51bb911 100644 --- a/cinder/common/config.py +++ b/cinder/common/config.py @@ -157,6 +157,7 @@ global_opts = [ default=None, help='Default volume type to use'), cfg.StrOpt('volume_usage_audit_period', + default='month', help='Time period for which to generate volume usages. ' 'The options are hour, day, month, or year.'), cfg.StrOpt('rootwrap_config', diff --git a/etc/cinder/cinder.conf.sample b/etc/cinder/cinder.conf.sample index 4827fcb24..11603c73a 100644 --- a/etc/cinder/cinder.conf.sample +++ b/etc/cinder/cinder.conf.sample @@ -543,7 +543,7 @@ # Time period for which to generate volume usages. The options # are hour, day, month, or year. (string value) -#volume_usage_audit_period= +#volume_usage_audit_period=month # Path to the rootwrap configuration file to use for running # commands as root (string value)