summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/nova-dhcpbridge2
-rw-r--r--nova/api/ec2/cloud.py2
-rw-r--r--nova/cells/state.py1
-rw-r--r--nova/compute/manager.py6
-rw-r--r--nova/compute/utils.py2
-rw-r--r--nova/config.py41
-rw-r--r--nova/console/xvp.py2
-rw-r--r--nova/image/glance.py2
-rw-r--r--nova/image/s3.py2
-rw-r--r--nova/manager.py2
-rw-r--r--nova/netconf.py62
-rw-r--r--nova/network/linux_net.py6
-rw-r--r--nova/network/manager.py4
-rw-r--r--nova/service.py2
-rw-r--r--nova/tests/api/ec2/test_cinder_cloud.py2
-rw-r--r--nova/tests/api/ec2/test_cloud.py2
-rw-r--r--nova/tests/api/openstack/compute/test_extensions.py1
-rw-r--r--nova/tests/api/openstack/fakes.py2
-rw-r--r--nova/tests/cells/test_cells_messaging.py1
-rw-r--r--nova/tests/compute/test_compute.py2
-rw-r--r--nova/tests/conf_fixture.py1
-rw-r--r--nova/tests/fake_network.py2
-rw-r--r--nova/tests/integrated/test_extensions.py1
-rw-r--r--nova/tests/scheduler/test_host_filters.py2
-rw-r--r--nova/tests/test_imagecache.py2
-rw-r--r--nova/tests/test_libvirt.py4
-rw-r--r--nova/tests/test_xenapi.py2
-rw-r--r--nova/tests/utils.py2
-rw-r--r--nova/virt/baremetal/driver.py1
-rw-r--r--nova/virt/baremetal/pxe.py2
-rw-r--r--nova/virt/baremetal/volume_driver.py2
-rw-r--r--nova/virt/firewall.py2
-rw-r--r--nova/virt/hyperv/basevolumeutils.py2
-rw-r--r--nova/virt/hyperv/volumeops.py2
-rw-r--r--nova/virt/libvirt/driver.py4
-rw-r--r--nova/virt/libvirt/firewall.py2
-rw-r--r--nova/virt/libvirt/imagecache.py2
-rw-r--r--nova/virt/libvirt/vif.py2
-rw-r--r--nova/virt/netutils.py2
-rw-r--r--nova/virt/xenapi/driver.py2
-rw-r--r--nova/virt/xenapi/pool.py2
-rw-r--r--nova/virt/xenapi/vm_utils.py2
-rw-r--r--nova/virt/xenapi/vmops.py2
43 files changed, 106 insertions, 87 deletions
diff --git a/bin/nova-dhcpbridge b/bin/nova-dhcpbridge
index 582edde99..6187e052d 100755
--- a/bin/nova-dhcpbridge
+++ b/bin/nova-dhcpbridge
@@ -47,7 +47,7 @@ from nova.openstack.common import rpc
from nova import utils
CONF = cfg.CONF
-CONF.import_opt('host', 'nova.config')
+CONF.import_opt('host', 'nova.netconf')
CONF.import_opt('network_manager', 'nova.service')
LOG = logging.getLogger('nova.dhcpbridge')
diff --git a/nova/api/ec2/cloud.py b/nova/api/ec2/cloud.py
index 5dd861e8d..73a4a02ae 100644
--- a/nova/api/ec2/cloud.py
+++ b/nova/api/ec2/cloud.py
@@ -71,7 +71,7 @@ ec2_opts = [
CONF = cfg.CONF
CONF.register_opts(ec2_opts)
-CONF.import_opt('my_ip', 'nova.config')
+CONF.import_opt('my_ip', 'nova.netconf')
CONF.import_opt('vpn_key_suffix', 'nova.cloudpipe.pipelib')
CONF.import_opt('internal_service_availability_zone',
'nova.availability_zones')
diff --git a/nova/cells/state.py b/nova/cells/state.py
index c6f8f3220..8fd0e9c7a 100644
--- a/nova/cells/state.py
+++ b/nova/cells/state.py
@@ -38,7 +38,6 @@ cell_state_manager_opts = [
LOG = logging.getLogger(__name__)
CONF = cfg.CONF
-CONF.import_opt('host', 'nova.config')
CONF.import_opt('name', 'nova.cells.opts', group='cells')
#CONF.import_opt('capabilities', 'nova.cells.opts', group='cells')
CONF.register_opts(cell_state_manager_opts, group='cells')
diff --git a/nova/compute/manager.py b/nova/compute/manager.py
index 682af2ce5..1628c026d 100644
--- a/nova/compute/manager.py
+++ b/nova/compute/manager.py
@@ -174,11 +174,9 @@ CONF.register_opts(timeout_opts)
CONF.register_opts(running_deleted_opts)
CONF.import_opt('allow_resize_to_same_host', 'nova.compute.api')
CONF.import_opt('console_topic', 'nova.console.rpcapi')
-CONF.import_opt('host', 'nova.config')
-CONF.import_opt('my_ip', 'nova.config')
+CONF.import_opt('host', 'nova.netconf')
+CONF.import_opt('my_ip', 'nova.netconf')
CONF.import_opt('network_manager', 'nova.service')
-CONF.import_opt('reclaim_instance_interval', 'nova.config')
-CONF.import_opt('my_ip', 'nova.config')
QUOTAS = quota.QUOTAS
diff --git a/nova/compute/utils.py b/nova/compute/utils.py
index 6d6b7cac9..e8592dbe2 100644
--- a/nova/compute/utils.py
+++ b/nova/compute/utils.py
@@ -33,7 +33,7 @@ from nova import utils
from nova.virt import driver
CONF = cfg.CONF
-CONF.import_opt('host', 'nova.config')
+CONF.import_opt('host', 'nova.netconf')
LOG = log.getLogger(__name__)
diff --git a/nova/config.py b/nova/config.py
index f3fa8d380..4095dba75 100644
--- a/nova/config.py
+++ b/nova/config.py
@@ -17,51 +17,10 @@
# License for the specific language governing permissions and limitations
# under the License.
-import os
-import socket
-
from nova.openstack.common import cfg
from nova.openstack.common import rpc
-def _get_my_ip():
- """
- Returns the actual ip of the local machine.
-
- This code figures out what source address would be used if some traffic
- were to be sent out to some well known address on the Internet. In this
- case, a Google DNS server is used, but the specific address does not
- matter much. No traffic is actually sent.
- """
- try:
- csock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
- csock.connect(('8.8.8.8', 80))
- (addr, port) = csock.getsockname()
- csock.close()
- return addr
- except socket.error:
- return "127.0.0.1"
-
-
-global_opts = [
- cfg.StrOpt('my_ip',
- default=_get_my_ip(),
- help='ip address of this host'),
- cfg.StrOpt('host',
- default=socket.getfqdn(),
- help='Name of this node. This can be an opaque identifier. '
- 'It is not necessarily a hostname, FQDN, or IP address. '
- 'However, the node name must be valid within '
- 'an AMQP key, and if using ZeroMQ, a valid '
- 'hostname, FQDN, or IP address'),
- cfg.BoolOpt('use_ipv6',
- default=False,
- help='use ipv6'),
-]
-
-cfg.CONF.register_opts(global_opts)
-
-
def parse_args(argv, default_config_files=None):
rpc.set_defaults(control_exchange='nova')
cfg.CONF(argv[1:],
diff --git a/nova/console/xvp.py b/nova/console/xvp.py
index 7447c5912..ce2eb5350 100644
--- a/nova/console/xvp.py
+++ b/nova/console/xvp.py
@@ -51,7 +51,7 @@ xvp_opts = [
CONF = cfg.CONF
CONF.register_opts(xvp_opts)
-CONF.import_opt('host', 'nova.config')
+CONF.import_opt('host', 'nova.netconf')
LOG = logging.getLogger(__name__)
diff --git a/nova/image/glance.py b/nova/image/glance.py
index 6a5406d9e..5a5c187cb 100644
--- a/nova/image/glance.py
+++ b/nova/image/glance.py
@@ -64,7 +64,7 @@ LOG = logging.getLogger(__name__)
CONF = cfg.CONF
CONF.register_opts(glance_opts)
CONF.import_opt('auth_strategy', 'nova.api.auth')
-CONF.import_opt('my_ip', 'nova.config')
+CONF.import_opt('my_ip', 'nova.netconf')
def generate_glance_url():
diff --git a/nova/image/s3.py b/nova/image/s3.py
index 6cb5e74ac..31ab6b1fc 100644
--- a/nova/image/s3.py
+++ b/nova/image/s3.py
@@ -68,7 +68,7 @@ s3_opts = [
CONF = cfg.CONF
CONF.register_opts(s3_opts)
-CONF.import_opt('my_ip', 'nova.config')
+CONF.import_opt('my_ip', 'nova.netconf')
class S3ImageService(object):
diff --git a/nova/manager.py b/nova/manager.py
index 636424d1c..cb15b776e 100644
--- a/nova/manager.py
+++ b/nova/manager.py
@@ -75,7 +75,7 @@ periodic_opts = [
CONF = cfg.CONF
CONF.register_opts(periodic_opts)
-CONF.import_opt('host', 'nova.config')
+CONF.import_opt('host', 'nova.netconf')
LOG = logging.getLogger(__name__)
DEFAULT_INTERVAL = 60.0
diff --git a/nova/netconf.py b/nova/netconf.py
new file mode 100644
index 000000000..531a9e200
--- /dev/null
+++ b/nova/netconf.py
@@ -0,0 +1,62 @@
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+
+# Copyright 2010 United States Government as represented by the
+# Administrator of the National Aeronautics and Space Administration.
+# All Rights Reserved.
+# Copyright 2012 Red Hat, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License. You may obtain
+# a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+import socket
+
+from nova.openstack.common import cfg
+
+CONF = cfg.CONF
+
+
+def _get_my_ip():
+ """
+ Returns the actual ip of the local machine.
+
+ This code figures out what source address would be used if some traffic
+ were to be sent out to some well known address on the Internet. In this
+ case, a Google DNS server is used, but the specific address does not
+ matter much. No traffic is actually sent.
+ """
+ try:
+ csock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
+ csock.connect(('8.8.8.8', 80))
+ (addr, port) = csock.getsockname()
+ csock.close()
+ return addr
+ except socket.error:
+ return "127.0.0.1"
+
+
+netconf_opts = [
+ cfg.StrOpt('my_ip',
+ default=_get_my_ip(),
+ help='ip address of this host'),
+ cfg.StrOpt('host',
+ default=socket.getfqdn(),
+ help='Name of this node. This can be an opaque identifier. '
+ 'It is not necessarily a hostname, FQDN, or IP address. '
+ 'However, the node name must be valid within '
+ 'an AMQP key, and if using ZeroMQ, a valid '
+ 'hostname, FQDN, or IP address'),
+ cfg.BoolOpt('use_ipv6',
+ default=False,
+ help='use ipv6'),
+]
+
+CONF.register_opts(netconf_opts)
diff --git a/nova/network/linux_net.py b/nova/network/linux_net.py
index f4b39e553..ea09f69b2 100644
--- a/nova/network/linux_net.py
+++ b/nova/network/linux_net.py
@@ -95,9 +95,9 @@ linux_net_opts = [
CONF = cfg.CONF
CONF.register_opts(linux_net_opts)
-CONF.import_opt('host', 'nova.config')
-CONF.import_opt('use_ipv6', 'nova.config')
-CONF.import_opt('my_ip', 'nova.config')
+CONF.import_opt('host', 'nova.netconf')
+CONF.import_opt('use_ipv6', 'nova.netconf')
+CONF.import_opt('my_ip', 'nova.netconf')
# NOTE(vish): Iptables supports chain names of up to 28 characters, and we
diff --git a/nova/network/manager.py b/nova/network/manager.py
index 0061543c3..8d9255dac 100644
--- a/nova/network/manager.py
+++ b/nova/network/manager.py
@@ -196,8 +196,8 @@ network_opts = [
CONF = cfg.CONF
CONF.register_opts(network_opts)
-CONF.import_opt('use_ipv6', 'nova.config')
-CONF.import_opt('my_ip', 'nova.config')
+CONF.import_opt('use_ipv6', 'nova.netconf')
+CONF.import_opt('my_ip', 'nova.netconf')
class RPCAllocateFixedIP(object):
diff --git a/nova/service.py b/nova/service.py
index 4418b0840..7191da4a8 100644
--- a/nova/service.py
+++ b/nova/service.py
@@ -112,7 +112,7 @@ service_opts = [
CONF = cfg.CONF
CONF.register_opts(service_opts)
-CONF.import_opt('host', 'nova.config')
+CONF.import_opt('host', 'nova.netconf')
class SignalExit(SystemExit):
diff --git a/nova/tests/api/ec2/test_cinder_cloud.py b/nova/tests/api/ec2/test_cinder_cloud.py
index 7512303ae..d403ba1f0 100644
--- a/nova/tests/api/ec2/test_cinder_cloud.py
+++ b/nova/tests/api/ec2/test_cinder_cloud.py
@@ -40,7 +40,7 @@ from nova import volume
CONF = cfg.CONF
CONF.import_opt('compute_driver', 'nova.virt.driver')
CONF.import_opt('default_instance_type', 'nova.compute.instance_types')
-CONF.import_opt('use_ipv6', 'nova.config')
+CONF.import_opt('use_ipv6', 'nova.netconf')
LOG = logging.getLogger(__name__)
diff --git a/nova/tests/api/ec2/test_cloud.py b/nova/tests/api/ec2/test_cloud.py
index 21978c300..ae2ea11c3 100644
--- a/nova/tests/api/ec2/test_cloud.py
+++ b/nova/tests/api/ec2/test_cloud.py
@@ -53,7 +53,7 @@ from nova import volume
CONF = cfg.CONF
CONF.import_opt('compute_driver', 'nova.virt.driver')
CONF.import_opt('default_instance_type', 'nova.compute.instance_types')
-CONF.import_opt('use_ipv6', 'nova.config')
+CONF.import_opt('use_ipv6', 'nova.netconf')
LOG = logging.getLogger(__name__)
HOST = "testhost"
diff --git a/nova/tests/api/openstack/compute/test_extensions.py b/nova/tests/api/openstack/compute/test_extensions.py
index 494e44738..e3810510b 100644
--- a/nova/tests/api/openstack/compute/test_extensions.py
+++ b/nova/tests/api/openstack/compute/test_extensions.py
@@ -32,7 +32,6 @@ from nova.tests.api.openstack import fakes
from nova.tests import matchers
CONF = cfg.CONF
-CONF.import_opt('osapi_compute_extension', 'nova.config')
NS = "{http://docs.openstack.org/common/api/v1.0}"
ATOMNS = "{http://www.w3.org/2005/Atom}"
diff --git a/nova/tests/api/openstack/fakes.py b/nova/tests/api/openstack/fakes.py
index 9b939b324..03fc87ac5 100644
--- a/nova/tests/api/openstack/fakes.py
+++ b/nova/tests/api/openstack/fakes.py
@@ -151,7 +151,7 @@ def stub_out_instance_quota(stubs, allowed, quota, resource='instances'):
def stub_out_networking(stubs):
def get_my_ip():
return '127.0.0.1'
- stubs.Set(nova.config, '_get_my_ip', get_my_ip)
+ stubs.Set(nova.netconf, '_get_my_ip', get_my_ip)
def stub_out_compute_api_snapshot(stubs):
diff --git a/nova/tests/cells/test_cells_messaging.py b/nova/tests/cells/test_cells_messaging.py
index d728c9474..a5810fb21 100644
--- a/nova/tests/cells/test_cells_messaging.py
+++ b/nova/tests/cells/test_cells_messaging.py
@@ -24,7 +24,6 @@ from nova.tests.cells import fakes
CONF = cfg.CONF
-CONF.import_opt('host', 'nova.config')
CONF.import_opt('name', 'nova.cells.opts', group='cells')
CONF.import_opt('allowed_rpc_exception_modules',
'nova.openstack.common.rpc')
diff --git a/nova/tests/compute/test_compute.py b/nova/tests/compute/test_compute.py
index 644043ae9..460366833 100644
--- a/nova/tests/compute/test_compute.py
+++ b/nova/tests/compute/test_compute.py
@@ -71,7 +71,7 @@ QUOTAS = quota.QUOTAS
LOG = logging.getLogger(__name__)
CONF = cfg.CONF
CONF.import_opt('compute_manager', 'nova.service')
-CONF.import_opt('host', 'nova.config')
+CONF.import_opt('host', 'nova.netconf')
CONF.import_opt('live_migration_retry_count', 'nova.compute.manager')
diff --git a/nova/tests/conf_fixture.py b/nova/tests/conf_fixture.py
index 010737a0d..9155a3f68 100644
--- a/nova/tests/conf_fixture.py
+++ b/nova/tests/conf_fixture.py
@@ -25,6 +25,7 @@ from nova import paths
from nova.tests.utils import cleanup_dns_managers
CONF = cfg.CONF
+CONF.import_opt('use_ipv6', 'nova.netconf')
CONF.import_opt('scheduler_driver', 'nova.scheduler.manager')
CONF.import_opt('fake_network', 'nova.network.manager')
CONF.import_opt('network_size', 'nova.network.manager')
diff --git a/nova/tests/fake_network.py b/nova/tests/fake_network.py
index eefd4d213..b97999e7d 100644
--- a/nova/tests/fake_network.py
+++ b/nova/tests/fake_network.py
@@ -31,7 +31,7 @@ from nova.virt.libvirt import config as libvirt_config
HOST = "testhost"
CONF = cfg.CONF
-CONF.import_opt('use_ipv6', 'nova.config')
+CONF.import_opt('use_ipv6', 'nova.netconf')
class FakeIptablesFirewallDriver(object):
diff --git a/nova/tests/integrated/test_extensions.py b/nova/tests/integrated/test_extensions.py
index e23b31e5b..b6e1adc73 100644
--- a/nova/tests/integrated/test_extensions.py
+++ b/nova/tests/integrated/test_extensions.py
@@ -22,7 +22,6 @@ from nova.openstack.common.log import logging
from nova.tests.integrated import integrated_helpers
CONF = cfg.CONF
-CONF.import_opt('osapi_compute_extension', 'nova.config')
LOG = logging.getLogger(__name__)
diff --git a/nova/tests/scheduler/test_host_filters.py b/nova/tests/scheduler/test_host_filters.py
index 7314c7cc6..9f7f189cc 100644
--- a/nova/tests/scheduler/test_host_filters.py
+++ b/nova/tests/scheduler/test_host_filters.py
@@ -30,7 +30,7 @@ from nova import test
from nova.tests.scheduler import fakes
CONF = cfg.CONF
-CONF.import_opt('my_ip', 'nova.config')
+CONF.import_opt('my_ip', 'nova.netconf')
class TestFilter(filters.BaseHostFilter):
diff --git a/nova/tests/test_imagecache.py b/nova/tests/test_imagecache.py
index 618a6bd54..eaf244c56 100644
--- a/nova/tests/test_imagecache.py
+++ b/nova/tests/test_imagecache.py
@@ -38,7 +38,7 @@ from nova.virt.libvirt import utils as virtutils
CONF = cfg.CONF
CONF.import_opt('compute_manager', 'nova.service')
-CONF.import_opt('host', 'nova.config')
+CONF.import_opt('host', 'nova.netconf')
LOG = log.getLogger(__name__)
diff --git a/nova/tests/test_libvirt.py b/nova/tests/test_libvirt.py
index cce220b20..53bb1b984 100644
--- a/nova/tests/test_libvirt.py
+++ b/nova/tests/test_libvirt.py
@@ -73,8 +73,8 @@ libvirt_driver.libvirt = libvirt
CONF = cfg.CONF
CONF.import_opt('compute_manager', 'nova.service')
-CONF.import_opt('host', 'nova.config')
-CONF.import_opt('my_ip', 'nova.config')
+CONF.import_opt('host', 'nova.netconf')
+CONF.import_opt('my_ip', 'nova.netconf')
CONF.import_opt('base_dir_name', 'nova.virt.libvirt.imagecache')
LOG = logging.getLogger(__name__)
diff --git a/nova/tests/test_xenapi.py b/nova/tests/test_xenapi.py
index 5cdc2928b..b3437db62 100644
--- a/nova/tests/test_xenapi.py
+++ b/nova/tests/test_xenapi.py
@@ -60,7 +60,7 @@ CONF = cfg.CONF
CONF.import_opt('compute_manager', 'nova.service')
CONF.import_opt('network_manager', 'nova.service')
CONF.import_opt('compute_driver', 'nova.virt.driver')
-CONF.import_opt('host', 'nova.config')
+CONF.import_opt('host', 'nova.netconf')
CONF.import_opt('default_availability_zone', 'nova.availability_zones')
IMAGE_MACHINE = '1'
diff --git a/nova/tests/utils.py b/nova/tests/utils.py
index 45d0d295b..00b70ceb3 100644
--- a/nova/tests/utils.py
+++ b/nova/tests/utils.py
@@ -23,7 +23,7 @@ from nova.network import minidns
from nova.openstack.common import cfg
CONF = cfg.CONF
-CONF.import_opt('use_ipv6', 'nova.config')
+CONF.import_opt('use_ipv6', 'nova.netconf')
def get_test_admin_context():
diff --git a/nova/virt/baremetal/driver.py b/nova/virt/baremetal/driver.py
index bb76954e1..39364168c 100644
--- a/nova/virt/baremetal/driver.py
+++ b/nova/virt/baremetal/driver.py
@@ -74,6 +74,7 @@ baremetal_group = cfg.OptGroup(name='baremetal',
CONF = cfg.CONF
CONF.register_group(baremetal_group)
CONF.register_opts(opts, baremetal_group)
+CONF.import_opt('host', 'nova.netconf')
DEFAULT_FIREWALL_DRIVER = "%s.%s" % (
firewall.__name__,
diff --git a/nova/virt/baremetal/pxe.py b/nova/virt/baremetal/pxe.py
index 4bb61ad39..9dbb4e79e 100644
--- a/nova/virt/baremetal/pxe.py
+++ b/nova/virt/baremetal/pxe.py
@@ -70,7 +70,7 @@ baremetal_group = cfg.OptGroup(name='baremetal',
CONF = cfg.CONF
CONF.register_group(baremetal_group)
CONF.register_opts(pxe_opts, baremetal_group)
-
+CONF.import_opt('use_ipv6', 'nova.netconf')
CHEETAH = None
diff --git a/nova/virt/baremetal/volume_driver.py b/nova/virt/baremetal/volume_driver.py
index 09088dd53..570cea1d8 100644
--- a/nova/virt/baremetal/volume_driver.py
+++ b/nova/virt/baremetal/volume_driver.py
@@ -45,6 +45,8 @@ CONF = cfg.CONF
CONF.register_group(baremetal_group)
CONF.register_opts(opts, baremetal_group)
+CONF.import_opt('host', 'nova.netconf')
+CONF.import_opt('use_ipv6', 'nova.netconf')
CONF.import_opt('libvirt_volume_drivers', 'nova.virt.libvirt.driver')
LOG = logging.getLogger(__name__)
diff --git a/nova/virt/firewall.py b/nova/virt/firewall.py
index bdfa8fb4e..bbc6034bd 100644
--- a/nova/virt/firewall.py
+++ b/nova/virt/firewall.py
@@ -41,7 +41,7 @@ firewall_opts = [
CONF = cfg.CONF
CONF.register_opts(firewall_opts)
-CONF.import_opt('use_ipv6', 'nova.config')
+CONF.import_opt('use_ipv6', 'nova.netconf')
def load_driver(default, *args, **kwargs):
diff --git a/nova/virt/hyperv/basevolumeutils.py b/nova/virt/hyperv/basevolumeutils.py
index c6ac8b644..2352c3bef 100644
--- a/nova/virt/hyperv/basevolumeutils.py
+++ b/nova/virt/hyperv/basevolumeutils.py
@@ -33,7 +33,7 @@ if sys.platform == 'win32':
LOG = logging.getLogger(__name__)
CONF = cfg.CONF
-CONF.import_opt('my_ip', 'nova.config')
+CONF.import_opt('my_ip', 'nova.netconf')
class BaseVolumeUtils(object):
diff --git a/nova/virt/hyperv/volumeops.py b/nova/virt/hyperv/volumeops.py
index ed80e0f1b..200236233 100644
--- a/nova/virt/hyperv/volumeops.py
+++ b/nova/virt/hyperv/volumeops.py
@@ -45,7 +45,7 @@ hyper_volumeops_opts = [
CONF = cfg.CONF
CONF.register_opts(hyper_volumeops_opts)
-CONF.import_opt('my_ip', 'nova.config')
+CONF.import_opt('my_ip', 'nova.netconf')
class VolumeOps(baseops.BaseOps):
diff --git a/nova/virt/libvirt/driver.py b/nova/virt/libvirt/driver.py
index 1f75c7ee2..ea6e0e6a0 100644
--- a/nova/virt/libvirt/driver.py
+++ b/nova/virt/libvirt/driver.py
@@ -190,8 +190,8 @@ libvirt_opts = [
CONF = cfg.CONF
CONF.register_opts(libvirt_opts)
-CONF.import_opt('host', 'nova.config')
-CONF.import_opt('my_ip', 'nova.config')
+CONF.import_opt('host', 'nova.netconf')
+CONF.import_opt('my_ip', 'nova.netconf')
CONF.import_opt('default_ephemeral_format', 'nova.virt.driver')
CONF.import_opt('use_cow_images', 'nova.virt.driver')
CONF.import_opt('live_migration_retry_count', 'nova.compute.manager')
diff --git a/nova/virt/libvirt/firewall.py b/nova/virt/libvirt/firewall.py
index c52b0c56e..c47056ff2 100644
--- a/nova/virt/libvirt/firewall.py
+++ b/nova/virt/libvirt/firewall.py
@@ -27,7 +27,7 @@ import nova.virt.firewall as base_firewall
LOG = logging.getLogger(__name__)
CONF = cfg.CONF
-CONF.import_opt('use_ipv6', 'nova.config')
+CONF.import_opt('use_ipv6', 'nova.netconf')
try:
import libvirt
diff --git a/nova/virt/libvirt/imagecache.py b/nova/virt/libvirt/imagecache.py
index db5e6e058..50fac9bb4 100644
--- a/nova/virt/libvirt/imagecache.py
+++ b/nova/virt/libvirt/imagecache.py
@@ -72,7 +72,7 @@ imagecache_opts = [
CONF = cfg.CONF
CONF.register_opts(imagecache_opts)
-CONF.import_opt('host', 'nova.config')
+CONF.import_opt('host', 'nova.netconf')
CONF.import_opt('instances_path', 'nova.compute.manager')
diff --git a/nova/virt/libvirt/vif.py b/nova/virt/libvirt/vif.py
index f04674395..1dc30f73e 100644
--- a/nova/virt/libvirt/vif.py
+++ b/nova/virt/libvirt/vif.py
@@ -42,7 +42,7 @@ libvirt_vif_opts = [
CONF = cfg.CONF
CONF.register_opts(libvirt_vif_opts)
CONF.import_opt('libvirt_type', 'nova.virt.libvirt.driver')
-CONF.import_opt('use_ipv6', 'nova.config')
+CONF.import_opt('use_ipv6', 'nova.netconf')
LINUX_DEV_LEN = 14
diff --git a/nova/virt/netutils.py b/nova/virt/netutils.py
index 727b7aac6..70f1544c4 100644
--- a/nova/virt/netutils.py
+++ b/nova/virt/netutils.py
@@ -26,7 +26,7 @@ import netaddr
from nova.openstack.common import cfg
CONF = cfg.CONF
-CONF.import_opt('use_ipv6', 'nova.config')
+CONF.import_opt('use_ipv6', 'nova.netconf')
CONF.import_opt('injected_network_template', 'nova.virt.disk.api')
Template = None
diff --git a/nova/virt/xenapi/driver.py b/nova/virt/xenapi/driver.py
index b54fdcda0..bdb73b28f 100644
--- a/nova/virt/xenapi/driver.py
+++ b/nova/virt/xenapi/driver.py
@@ -117,7 +117,7 @@ xenapi_opts = [
CONF = cfg.CONF
CONF.register_opts(xenapi_opts)
-CONF.import_opt('host', 'nova.config')
+CONF.import_opt('host', 'nova.netconf')
class XenAPIDriver(driver.ComputeDriver):
diff --git a/nova/virt/xenapi/pool.py b/nova/virt/xenapi/pool.py
index 1855789eb..1682f18d1 100644
--- a/nova/virt/xenapi/pool.py
+++ b/nova/virt/xenapi/pool.py
@@ -39,7 +39,7 @@ xenapi_pool_opts = [
CONF = cfg.CONF
CONF.register_opts(xenapi_pool_opts)
-CONF.import_opt('host', 'nova.config')
+CONF.import_opt('host', 'nova.netconf')
class ResourcePool(object):
diff --git a/nova/virt/xenapi/vm_utils.py b/nova/virt/xenapi/vm_utils.py
index b48953875..40d43da8d 100644
--- a/nova/virt/xenapi/vm_utils.py
+++ b/nova/virt/xenapi/vm_utils.py
@@ -126,7 +126,7 @@ CONF.register_opts(xenapi_vm_utils_opts)
CONF.import_opt('default_ephemeral_format', 'nova.virt.driver')
CONF.import_opt('use_cow_images', 'nova.virt.driver')
CONF.import_opt('glance_num_retries', 'nova.image.glance')
-CONF.import_opt('use_ipv6', 'nova.config')
+CONF.import_opt('use_ipv6', 'nova.netconf')
XENAPI_POWER_STATE = {
'Halted': power_state.SHUTDOWN,
diff --git a/nova/virt/xenapi/vmops.py b/nova/virt/xenapi/vmops.py
index 430944a8e..e8e0f3cb0 100644
--- a/nova/virt/xenapi/vmops.py
+++ b/nova/virt/xenapi/vmops.py
@@ -63,7 +63,7 @@ xenapi_vmops_opts = [
CONF = cfg.CONF
CONF.register_opts(xenapi_vmops_opts)
-CONF.import_opt('host', 'nova.config')
+CONF.import_opt('host', 'nova.netconf')
CONF.import_opt('vncserver_proxyclient_address', 'nova.vnc')
DEFAULT_FIREWALL_DRIVER = "%s.%s" % (