FLAG rename: bandwith_poll_*=>bandwidth_poll_*

Fix bug 1036407

bandwith_poll_interval is deprecated in Folsom and will be removed in
Grizzly

Change-Id: I32cbdffce21a0024bd0303d46d7b7632db6ec8cb
This commit is contained in:
Joe Gordon
2012-08-30 20:50:38 +00:00
parent 0749ffc3be
commit 7c25d01259
3 changed files with 5 additions and 3 deletions

View File

@@ -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

View File

@@ -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"))

View File

@@ -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',