Add missed parameters in auto-generated config
Some parameters are missed in the example of a config file that is automatically generated [1]. Therefore, users cannot see all available parameters in the document. To fix this problem, this patch adds the following missed namespaces to ``etc/config-generator.conf`` and adds the entry points [2] to ``setup.cfg`` and appropriate modules. - tacker.auth - tacker.conductor.conductor_server - tacker.plugins.fenix - tacker.sol_refactored.common.config - tacker.vnfm.infra_drivers.openstack.translate_template - tacker.vnfm.nfvo_client For ease of maintenance, the contents of ``config-generator.conf`` and ``setup.cfg`` were sorted in alphabetical order. Note that although the following modules register config parameters, but excluded from this patch as the parameters are generated dynamically. - tacker.api.vnflcm.v1.router - tacker.api.vnfpkgm.v1.router [1] https://docs.openstack.org/tacker/latest/configuration/sample_config.html [2] https://docs.openstack.org/oslo.config/latest/cli/generator.html#defining-option-discovery-entry-points Closes-bug: #1962728 Signed-off-by: Hiromu Asahina <hiromu.asahina.az@hco.ntt.co.jp> Change-Id: I83e816448e7445d565302f1d6794b51b6effae01
This commit is contained in:
parent
8e91d8fa2e
commit
3dcc1279f1
@ -2,30 +2,36 @@
|
|||||||
output_file = etc/tacker/tacker.conf.sample
|
output_file = etc/tacker/tacker.conf.sample
|
||||||
wrap_width = 79
|
wrap_width = 79
|
||||||
namespace = glance.store
|
namespace = glance.store
|
||||||
namespace = tacker.common.config
|
|
||||||
namespace = tacker.conf
|
|
||||||
namespace = tacker.wsgi
|
|
||||||
namespace = tacker.service
|
|
||||||
namespace = tacker.nfvo.nfvo_plugin
|
|
||||||
namespace = tacker.nfvo.drivers.vim.openstack_driver
|
|
||||||
namespace = tacker.nfvo.drivers.vim.kubernetes_driver
|
|
||||||
namespace = tacker.keymgr
|
|
||||||
namespace = tacker.vnflcm.vnflcm_driver
|
|
||||||
namespace = tacker.vnfm.monitor
|
|
||||||
namespace = tacker.vnfm.plugin
|
|
||||||
namespace = tacker.vnfm.infra_drivers.openstack.openstack
|
|
||||||
namespace = tacker.vnfm.infra_drivers.kubernetes.kubernetes_driver
|
|
||||||
namespace = tacker.vnfm.mgmt_drivers.openwrt.openwrt
|
|
||||||
namespace = tacker.vnfm.monitor_drivers.http_ping.http_ping
|
|
||||||
namespace = tacker.vnfm.monitor_drivers.ping.ping
|
|
||||||
namespace = tacker.vnfm.monitor_drivers.ceilometer.ceilometer
|
|
||||||
namespace = tacker.alarm_receiver
|
|
||||||
namespace = keystonemiddleware.auth_token
|
namespace = keystonemiddleware.auth_token
|
||||||
namespace = oslo.middleware
|
|
||||||
namespace = oslo.messaging
|
|
||||||
namespace = oslo.db
|
namespace = oslo.db
|
||||||
namespace = oslo.log
|
namespace = oslo.log
|
||||||
|
namespace = oslo.messaging
|
||||||
|
namespace = oslo.middleware
|
||||||
namespace = oslo.policy
|
namespace = oslo.policy
|
||||||
namespace = oslo.reports
|
namespace = oslo.reports
|
||||||
namespace = oslo.service.periodic_tasks
|
namespace = oslo.service.periodic_tasks
|
||||||
namespace = oslo.service.service
|
namespace = oslo.service.service
|
||||||
|
namespace = tacker.alarm_receiver
|
||||||
|
namespace = tacker.auth
|
||||||
|
namespace = tacker.common.config
|
||||||
|
namespace = tacker.conductor.conductor_server
|
||||||
|
namespace = tacker.conf
|
||||||
|
namespace = tacker.keymgr
|
||||||
|
namespace = tacker.nfvo.drivers.vim.kubernetes_driver
|
||||||
|
namespace = tacker.nfvo.drivers.vim.openstack_driver
|
||||||
|
namespace = tacker.nfvo.nfvo_plugin
|
||||||
|
namespace = tacker.plugins.fenix
|
||||||
|
namespace = tacker.service
|
||||||
|
namespace = tacker.sol_refactored.common.config
|
||||||
|
namespace = tacker.vnflcm.vnflcm_driver
|
||||||
|
namespace = tacker.vnfm.infra_drivers.kubernetes.kubernetes_driver
|
||||||
|
namespace = tacker.vnfm.infra_drivers.openstack.openstack
|
||||||
|
namespace = tacker.vnfm.infra_drivers.openstack.translate_template
|
||||||
|
namespace = tacker.vnfm.mgmt_drivers.openwrt.openwrt
|
||||||
|
namespace = tacker.vnfm.monitor
|
||||||
|
namespace = tacker.vnfm.monitor_drivers.ceilometer.ceilometer
|
||||||
|
namespace = tacker.vnfm.monitor_drivers.http_ping.http_ping
|
||||||
|
namespace = tacker.vnfm.monitor_drivers.ping.ping
|
||||||
|
namespace = tacker.vnfm.nfvo_client
|
||||||
|
namespace = tacker.vnfm.plugin
|
||||||
|
namespace = tacker.wsgi
|
30
setup.cfg
30
setup.cfg
@ -77,26 +77,30 @@ tacker.tacker.policy.actions =
|
|||||||
log_and_kill = tacker.vnfm.policy_actions.log.log:VNFActionLogAndKill
|
log_and_kill = tacker.vnfm.policy_actions.log.log:VNFActionLogAndKill
|
||||||
vdu_autoheal = tacker.vnfm.policy_actions.vdu_autoheal.vdu_autoheal:VNFActionVduAutoheal
|
vdu_autoheal = tacker.vnfm.policy_actions.vdu_autoheal.vdu_autoheal:VNFActionVduAutoheal
|
||||||
oslo.config.opts =
|
oslo.config.opts =
|
||||||
|
tacker.alarm_receiver = tacker.alarm_receiver:config_opts
|
||||||
|
tacker.auth = tacker.auth:config_opts
|
||||||
tacker.common.config = tacker.common.config:config_opts
|
tacker.common.config = tacker.common.config:config_opts
|
||||||
|
tacker.conductor.conductor_server = tacker.conductor.conductor_server:config_opts
|
||||||
tacker.conf = tacker.conf.opts:list_opts
|
tacker.conf = tacker.conf.opts:list_opts
|
||||||
tacker.wsgi = tacker.wsgi:config_opts
|
|
||||||
tacker.service = tacker.service:config_opts
|
|
||||||
tacker.nfvo.nfvo_plugin = tacker.nfvo.nfvo_plugin:config_opts
|
|
||||||
tacker.nfvo.drivers.vim.openstack_driver = tacker.nfvo.drivers.vim.openstack_driver:config_opts
|
|
||||||
tacker.nfvo.drivers.vim.kubernetes_driver = tacker.nfvo.drivers.vim.kubernetes_driver:config_opts
|
|
||||||
tacker.keymgr = tacker.keymgr:config_opts
|
tacker.keymgr = tacker.keymgr:config_opts
|
||||||
tacker.vnfm.monitor = tacker.vnfm.monitor:config_opts
|
tacker.nfvo.drivers.vim.kubernetes_driver = tacker.nfvo.drivers.vim.kubernetes_driver:config_opts
|
||||||
tacker.vnfm.plugin = tacker.vnfm.plugin:config_opts
|
tacker.nfvo.drivers.vim.openstack_driver = tacker.nfvo.drivers.vim.openstack_driver:config_opts
|
||||||
tacker.vnfm.infra_drivers.openstack.openstack= tacker.vnfm.infra_drivers.openstack.openstack:config_opts
|
tacker.nfvo.nfvo_plugin = tacker.nfvo.nfvo_plugin:config_opts
|
||||||
|
tacker.plugins.fenix = tacker.plugins.fenix:config_opts
|
||||||
|
tacker.service = tacker.service:config_opts
|
||||||
|
tacker.sol_refactored.common.config = tacker.sol_refactored.common.config:config_opts
|
||||||
|
tacker.vnflcm.vnflcm_driver = tacker.vnflcm.vnflcm_driver:config_opts
|
||||||
tacker.vnfm.infra_drivers.kubernetes.kubernetes_driver = tacker.vnfm.infra_drivers.kubernetes.kubernetes_driver:config_opts
|
tacker.vnfm.infra_drivers.kubernetes.kubernetes_driver = tacker.vnfm.infra_drivers.kubernetes.kubernetes_driver:config_opts
|
||||||
|
tacker.vnfm.infra_drivers.openstack.openstack = tacker.vnfm.infra_drivers.openstack.openstack:config_opts
|
||||||
|
tacker.vnfm.infra_drivers.openstack.translate_template = tacker.vnfm.infra_drivers.openstack.translate_template:config_opts
|
||||||
tacker.vnfm.mgmt_drivers.openwrt.openwrt = tacker.vnfm.mgmt_drivers.openwrt.openwrt:config_opts
|
tacker.vnfm.mgmt_drivers.openwrt.openwrt = tacker.vnfm.mgmt_drivers.openwrt.openwrt:config_opts
|
||||||
|
tacker.vnfm.monitor = tacker.vnfm.monitor:config_opts
|
||||||
|
tacker.vnfm.monitor_drivers.ceilometer.ceilometer = tacker.vnfm.monitor_drivers.ceilometer.ceilometer:config_opts
|
||||||
tacker.vnfm.monitor_drivers.http_ping.http_ping = tacker.vnfm.monitor_drivers.http_ping.http_ping:config_opts
|
tacker.vnfm.monitor_drivers.http_ping.http_ping = tacker.vnfm.monitor_drivers.http_ping.http_ping:config_opts
|
||||||
tacker.vnfm.monitor_drivers.ping.ping = tacker.vnfm.monitor_drivers.ping.ping:config_opts
|
tacker.vnfm.monitor_drivers.ping.ping = tacker.vnfm.monitor_drivers.ping.ping:config_opts
|
||||||
tacker.vnfm.monitor_drivers.ceilometer.ceilometer = tacker.vnfm.monitor_drivers.ceilometer.ceilometer:config_opts
|
tacker.vnfm.nfvo_client = tacker.vnfm.nfvo_client:config_opts
|
||||||
tacker.vnfm.monitor_drivers.zabbix.zabbix = tacker.vnfm.monitor_drivers.zabbix.zabbix:config_opts
|
tacker.vnfm.plugin = tacker.vnfm.plugin:config_opts
|
||||||
tacker.vnflcm.vnflcm_driver = tacker.vnflcm.vnflcm_driver:config_opts
|
tacker.wsgi = tacker.wsgi:config_opts
|
||||||
tacker.alarm_receiver = tacker.alarm_receiver:config_opts
|
|
||||||
tacker.plugins.fenix = tacker.plugins.fenix:config_opts
|
|
||||||
|
|
||||||
mistral.actions =
|
mistral.actions =
|
||||||
tacker.vim_ping_action = tacker.nfvo.workflows.vim_monitor.vim_ping_action:PingVimAction
|
tacker.vim_ping_action = tacker.nfvo.workflows.vim_monitor.vim_ping_action:PingVimAction
|
||||||
|
@ -30,6 +30,11 @@ from tacker import context
|
|||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
def config_opts():
|
||||||
|
return [('authentication', _AuthManager.OPTS),
|
||||||
|
('authentication', _AuthValidateManager.auth_opts)]
|
||||||
|
|
||||||
|
|
||||||
class TackerKeystoneContext(base.ConfigurableMiddleware):
|
class TackerKeystoneContext(base.ConfigurableMiddleware):
|
||||||
"""Make a request context from keystone headers."""
|
"""Make a request context from keystone headers."""
|
||||||
|
|
||||||
@ -439,7 +444,7 @@ class _AuthValidateBasic(_AuthBase):
|
|||||||
|
|
||||||
class _AuthValidateManager:
|
class _AuthValidateManager:
|
||||||
|
|
||||||
atuh_opts = [
|
auth_opts = [
|
||||||
cfg.StrOpt('token_type',
|
cfg.StrOpt('token_type',
|
||||||
default=None,
|
default=None,
|
||||||
choices=['Bearer', 'Basic'],
|
choices=['Bearer', 'Basic'],
|
||||||
@ -454,7 +459,7 @@ class _AuthValidateManager:
|
|||||||
default=None,
|
default=None,
|
||||||
help="URL of the authorization server")
|
help="URL of the authorization server")
|
||||||
]
|
]
|
||||||
cfg.CONF.register_opts(atuh_opts, group='authentication')
|
cfg.CONF.register_opts(auth_opts, group='authentication')
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.__manages = {}
|
self.__manages = {}
|
||||||
|
@ -108,6 +108,10 @@ cfg.CONF.register_opts(OPTS, 'keystone_authtoken')
|
|||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
def config_opts():
|
||||||
|
return [('keystone_authtoken', OPTS)]
|
||||||
|
|
||||||
|
|
||||||
def _delete_csar(context, vnf_package):
|
def _delete_csar(context, vnf_package):
|
||||||
# Delete from glance store
|
# Delete from glance store
|
||||||
glance_store.delete_csar(context, vnf_package.id,
|
glance_store.delete_csar(context, vnf_package.id,
|
||||||
|
@ -86,7 +86,8 @@ SFC_ENCAP = 'sfc_encap'
|
|||||||
|
|
||||||
|
|
||||||
def config_opts():
|
def config_opts():
|
||||||
return [('vim_keys', OPTS), ('vim_monitor', OPENSTACK_OPTS)]
|
return [('vim_keys', OPTS),
|
||||||
|
('vim_monitor', OPENSTACK_OPTS)]
|
||||||
|
|
||||||
|
|
||||||
class OpenStack_Driver(abstract_vim_driver.VimAbstractDriver,
|
class OpenStack_Driver(abstract_vim_driver.VimAbstractDriver,
|
||||||
|
@ -77,3 +77,8 @@ NFVO_OPTS = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
CONF.register_opts(NFVO_OPTS, 'v2_nfvo')
|
CONF.register_opts(NFVO_OPTS, 'v2_nfvo')
|
||||||
|
|
||||||
|
|
||||||
|
def config_opts():
|
||||||
|
return [('v2_nfvo', NFVO_OPTS),
|
||||||
|
('v2_vnfm', VNFM_OPTS)]
|
||||||
|
@ -50,6 +50,10 @@ ALARMING_POLICY = 'tosca.policies.tacker.Alarming'
|
|||||||
SCALING_POLICY = 'tosca.policies.tacker.Scaling'
|
SCALING_POLICY = 'tosca.policies.tacker.Scaling'
|
||||||
|
|
||||||
|
|
||||||
|
def config_opts():
|
||||||
|
return [('openstack_vim', OPTS)]
|
||||||
|
|
||||||
|
|
||||||
class TOSCAToHOT(object):
|
class TOSCAToHOT(object):
|
||||||
"""Convert TOSCA template to HOT template."""
|
"""Convert TOSCA template to HOT template."""
|
||||||
|
|
||||||
|
@ -23,6 +23,11 @@ from oslo_log import log as logging
|
|||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
def config_opts():
|
||||||
|
return [('connect_vnf_packages', VnfPackageRequest.OPTS),
|
||||||
|
('connect_grant', GrantRequest.OPTS)]
|
||||||
|
|
||||||
|
|
||||||
class UndefinedExternalSettingException(Exception):
|
class UndefinedExternalSettingException(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user