config options: Make xvp proxy into vnc group

Make all vnc configuration into [vnc] group.

Change-Id: I1e34a0f98de125c8b8b145377835d95035e2b472
This commit is contained in:
jichenjc 2015-10-15 12:11:55 +08:00 committed by Stephen Finucane
parent ed257473e3
commit e17be81ed8
3 changed files with 15 additions and 5 deletions

View File

@ -95,7 +95,6 @@ def list_opts():
nova.service.service_opts,
nova.utils.monkey_patch_opts,
nova.utils.utils_opts,
nova.vnc.xvp_proxy.xvp_proxy_opts,
nova.volume._volume_opts,
nova.wsgi.wsgi_opts,
)),
@ -125,7 +124,11 @@ def list_opts():
[nova.console.rpcapi.rpcapi_cap_opt],
[nova.consoleauth.rpcapi.rpcapi_cap_opt],
)),
('vnc', nova.vnc.vnc_opts),
('vnc',
itertools.chain(
nova.vnc.vnc_opts,
nova.vnc.xvp_proxy.xvp_proxy_opts,
)),
('workarounds', nova.utils.workarounds_opts),
('zookeeper', nova.servicegroup.drivers.zk.zk_driver_opts)
]

View File

@ -41,14 +41,16 @@ xvp_proxy_opts = [
default=6081,
min=1,
max=65535,
help='Port that the XCP VNC proxy should bind to'),
help='Port that the XCP VNC proxy should bind to',
deprecated_group='DEFAULT'),
cfg.StrOpt('xvpvncproxy_host',
default='0.0.0.0',
help='Address that the XCP VNC proxy should bind to'),
help='Address that the XCP VNC proxy should bind to',
deprecated_group='DEFAULT'),
]
CONF = cfg.CONF
CONF.register_opts(xvp_proxy_opts)
CONF.register_opts(xvp_proxy_opts, group='vnc')
class XCPVNCProxy(object):

View File

@ -0,0 +1,5 @@
---
upgrade:
- All VNC XVP configuration options have been added to the
'vnc' group. They should no longer be included in the
'DEFAULT' group.