Skip to content

Commit

Permalink
Ensures compute_driver flag can be used by bdm
Browse files Browse the repository at this point in the history
Fixes bug 1063851 by moving compute_driver flag from
compute/manager.py to the global flags.py

Change-Id: I337795f6956050b398c39a8476e3c1e2b689c470
Signed-off-by: Chuck Short <chuck.short@canonical.com>
  • Loading branch information
John Garbutt authored and Chuck Short committed Nov 19, 2012
1 parent 76b44d9 commit d3fd05b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 0 additions & 6 deletions nova/compute/manager.py
Expand Up @@ -86,12 +86,6 @@
help="Where cached images are stored under $instances_path."
"This is NOT the full path - just a folder name."
"For per-compute-host cached images, set to _base_$my_ip"),
cfg.StrOpt('compute_driver',
default='nova.virt.connection.get_connection',
help='Driver to use for controlling virtualization. Options '
'include: libvirt.LibvirtDriver, xenapi.XenAPIDriver, '
'fake.FakeDriver, baremetal.BareMetalDriver, '
'vmwareapi.VMWareESXDriver'),
cfg.StrOpt('console_host',
default=socket.gethostname(),
help='Console proxy host to use to connect '
Expand Down
5 changes: 5 additions & 0 deletions nova/flags.py
Expand Up @@ -419,6 +419,11 @@ def _get_my_ip():
help='Whether to batch up the application of IPTables rules'
' during a host restart and apply all at the end of the'
' init phase'),
cfg.StrOpt('compute_driver',
help='Driver to use for controlling virtualization. Options '
'include: libvirt.LibvirtDriver, xenapi.XenAPIDriver, '
'fake.FakeDriver, baremetal.BareMetalDriver, '
'vmwareapi.VMWareESXDriver'),
]

FLAGS.register_opts(global_opts)

0 comments on commit d3fd05b

Please sign in to comment.