Merge "Add config for Telemetry"

This commit is contained in:
Jenkins
2014-01-03 13:24:24 +00:00
committed by Gerrit Code Review
2 changed files with 70 additions and 48 deletions

View File

@@ -141,39 +141,32 @@
#operator_role=Member #operator_role=Member
[network] [volume-feature-enabled]
# #
# Options defined in tempest.config # Options defined in tempest.config
# #
# Catalog type of the Neutron service. (string value) # Runs Cinder multi-backend test (requires 2 backends)
#catalog_type=network # (boolean value)
#multi_backend=false
# The network region name to use. If empty, the value of # A list of enabled extensions with a special entry all which
# identity.region is used instead. If no such region is found # indicates every extension is enabled (list value)
# in the service catalog, the first found one is used. (string #api_extensions=all
# value)
#region=
# The cidr block to allocate tenant networks from (string # Is the v1 volume API enabled (boolean value)
# value) #api_v1=true
#tenant_network_cidr=10.100.0.0/16
# The mask bits for tenant networks (integer value)
#tenant_network_mask_bits=28
# Whether tenant network connectivity should be evaluated [telemetry]
# directly (boolean value)
#tenant_networks_reachable=false
# Id of the public network that provides external connectivity #
# (string value) # Options defined in tempest.config
#public_network_id= #
# Id of the public router that provides external connectivity # Catalog type of the Telemetry service. (string value)
# (string value) #catalog_type=metering
#public_router_id=
[data_processing] [data_processing]
@@ -220,24 +213,6 @@
#api_extensions=all #api_extensions=all
[volume-feature-enabled]
#
# Options defined in tempest.config
#
# Runs Cinder multi-backend test (requires 2 backends)
# (boolean value)
#multi_backend=false
# A list of enabled extensions with a special entry all which
# indicates every extension is enabled (list value)
#api_extensions=all
# Is the v1 volume API enabled (boolean value)
#api_v1=true
[image-feature-enabled] [image-feature-enabled]
# #
@@ -419,21 +394,39 @@
#admin_password=pass #admin_password=pass
[cli] [network]
# #
# Options defined in tempest.cli # Options defined in tempest.config
# #
# enable cli tests (boolean value) # Catalog type of the Neutron service. (string value)
#enabled=true #catalog_type=network
# directory where python client binaries are located (string # The network region name to use. If empty, the value of
# identity.region is used instead. If no such region is found
# in the service catalog, the first found one is used. (string
# value) # value)
#cli_dir=/usr/local/bin #region=
# Number of seconds to wait on a CLI timeout (integer value) # The cidr block to allocate tenant networks from (string
#timeout=15 # value)
#tenant_network_cidr=10.100.0.0/16
# The mask bits for tenant networks (integer value)
#tenant_network_mask_bits=28
# Whether tenant network connectivity should be evaluated
# directly (boolean value)
#tenant_networks_reachable=false
# Id of the public network that provides external connectivity
# (string value)
#public_network_id=
# Id of the public router that provides external connectivity
# (string value)
#public_router_id=
[stress] [stress]
@@ -657,6 +650,23 @@
#build_interval=1 #build_interval=1
[cli]
#
# Options defined in tempest.cli
#
# enable cli tests (boolean value)
#enabled=true
# directory where python client binaries are located (string
# value)
#cli_dir=/usr/local/bin
# Number of seconds to wait on a CLI timeout (integer value)
#timeout=15
[dashboard] [dashboard]
# #

View File

@@ -473,6 +473,16 @@ OrchestrationGroup = [
] ]
telemetry_group = cfg.OptGroup(name='telemetry',
title='Telemetry Service Options')
TelemetryGroup = [
cfg.StrOpt('catalog_type',
default='metering',
help="Catalog type of the Telemetry service."),
]
dashboard_group = cfg.OptGroup(name="dashboard", dashboard_group = cfg.OptGroup(name="dashboard",
title="Dashboard options") title="Dashboard options")
@@ -700,6 +710,7 @@ class TempestConfigPrivate(object):
register_opt_group(cfg.CONF, object_storage_feature_group, register_opt_group(cfg.CONF, object_storage_feature_group,
ObjectStoreFeaturesGroup) ObjectStoreFeaturesGroup)
register_opt_group(cfg.CONF, orchestration_group, OrchestrationGroup) register_opt_group(cfg.CONF, orchestration_group, OrchestrationGroup)
register_opt_group(cfg.CONF, telemetry_group, TelemetryGroup)
register_opt_group(cfg.CONF, dashboard_group, DashboardGroup) register_opt_group(cfg.CONF, dashboard_group, DashboardGroup)
register_opt_group(cfg.CONF, data_processing_group, register_opt_group(cfg.CONF, data_processing_group,
DataProcessingGroup) DataProcessingGroup)
@@ -723,6 +734,7 @@ class TempestConfigPrivate(object):
self.object_storage_feature_enabled = cfg.CONF[ self.object_storage_feature_enabled = cfg.CONF[
'object-storage-feature-enabled'] 'object-storage-feature-enabled']
self.orchestration = cfg.CONF.orchestration self.orchestration = cfg.CONF.orchestration
self.telemetry = cfg.CONF.telemetry
self.dashboard = cfg.CONF.dashboard self.dashboard = cfg.CONF.dashboard
self.data_processing = cfg.CONF.data_processing self.data_processing = cfg.CONF.data_processing
self.boto = cfg.CONF.boto self.boto = cfg.CONF.boto