diff --git a/etc/nova/nova.conf.sample b/etc/nova/nova.conf.sample index e564ecadd1a1..d3ef41bb2bcd 100644 --- a/etc/nova/nova.conf.sample +++ b/etc/nova/nova.conf.sample @@ -294,7 +294,7 @@ #### (StrOpt) time period to generate instance usages for. Time period #### must be hour, day, month or year -# bandwith_poll_interval=600 +# bandwidth_poll_interval=600 #### (IntOpt) interval to pull bandwidth usage info # start_guests_on_host_boot=false diff --git a/nova/compute/manager.py b/nova/compute/manager.py index 39d6bfe41d62..cf3c6feec2bb 100644 --- a/nova/compute/manager.py +++ b/nova/compute/manager.py @@ -2720,7 +2720,8 @@ class ComputeManager(manager.SchedulerDependentManager): start_time = utils.last_completed_audit_period()[1] curr_time = time.time() - if curr_time - self._last_bw_usage_poll > FLAGS.bandwith_poll_interval: + if (curr_time - self._last_bw_usage_poll > + FLAGS.bandwidth_poll_interval): self._last_bw_usage_poll = curr_time LOG.info(_("Updating bandwidth usage cache")) diff --git a/nova/flags.py b/nova/flags.py index 41e0a45f0d6a..76766b706566 100644 --- a/nova/flags.py +++ b/nova/flags.py @@ -311,7 +311,8 @@ global_opts = [ default='month', help='time period to generate instance usages for. ' 'Time period must be hour, day, month or year'), - cfg.IntOpt('bandwith_poll_interval', + cfg.IntOpt('bandwidth_poll_interval', + deprecated_name='bandwith_poll_interval', default=600, help='interval to pull bandwidth usage info'), cfg.BoolOpt('start_guests_on_host_boot',