summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nova/api/ec2/cloud.py2
-rw-r--r--nova/cloudpipe/pipelib.py4
-rw-r--r--nova/config.py3
-rw-r--r--nova/tests/test_pipelib.py1
4 files changed, 4 insertions, 6 deletions
diff --git a/nova/api/ec2/cloud.py b/nova/api/ec2/cloud.py
index ce7095808..5dd861e8d 100644
--- a/nova/api/ec2/cloud.py
+++ b/nova/api/ec2/cloud.py
@@ -72,7 +72,7 @@ ec2_opts = [
CONF = cfg.CONF
CONF.register_opts(ec2_opts)
CONF.import_opt('my_ip', 'nova.config')
-CONF.import_opt('vpn_key_suffix', 'nova.config')
+CONF.import_opt('vpn_key_suffix', 'nova.cloudpipe.pipelib')
CONF.import_opt('internal_service_availability_zone',
'nova.availability_zones')
diff --git a/nova/cloudpipe/pipelib.py b/nova/cloudpipe/pipelib.py
index 19cbf3253..cb7fb8bac 100644
--- a/nova/cloudpipe/pipelib.py
+++ b/nova/cloudpipe/pipelib.py
@@ -54,11 +54,13 @@ cloudpipe_opts = [
cfg.StrOpt('dmz_mask',
default='255.255.255.0',
help=_('Netmask to push into openvpn config')),
+ cfg.StrOpt('vpn_key_suffix',
+ default='-vpn',
+ help='Suffix to add to project name for vpn key and secgroups'),
]
CONF = cfg.CONF
CONF.register_opts(cloudpipe_opts)
-CONF.import_opt('vpn_key_suffix', 'nova.config')
LOG = logging.getLogger(__name__)
diff --git a/nova/config.py b/nova/config.py
index d9e2d8523..61152774b 100644
--- a/nova/config.py
+++ b/nova/config.py
@@ -47,9 +47,6 @@ global_opts = [
cfg.StrOpt('my_ip',
default=_get_my_ip(),
help='ip address of this host'),
- cfg.StrOpt('vpn_key_suffix',
- default='-vpn',
- help='Suffix to add to project name for vpn key and secgroups'),
cfg.StrOpt('host',
default=socket.getfqdn(),
help='Name of this node. This can be an opaque identifier. '
diff --git a/nova/tests/test_pipelib.py b/nova/tests/test_pipelib.py
index b38b2238e..85c2ca2cd 100644
--- a/nova/tests/test_pipelib.py
+++ b/nova/tests/test_pipelib.py
@@ -21,7 +21,6 @@ from nova import test
from nova import utils
CONF = cfg.CONF
-CONF.import_opt('vpn_key_suffix', 'nova.config')
class PipelibTest(test.TestCase):