Adjust new config options to use dash instead of underscore
There are 3 recently added config options that have underscores instead of dashes: * custom_user_opts (added in I96b6e578eb59813e5e0c8a2fe7a14c5ecc369be7) * scenario_availability_zone and scenario_compute_nodes (both added in I5459150a0eac9bed6a6a62a126bd9ec0648941fe) The rest of options are declared with words separated by dashes. This patch makes name style consistent across the project. The change affects CLI only. Change-Id: I9d799827a36682fbe7ae73b22bcbaaf2f05afd6e
This commit is contained in:
parent
249ad453a4
commit
6bddae1810
@ -3,7 +3,7 @@ usage: shaker-all-in-one [-h] [--agent-join-timeout AGENT_JOIN_TIMEOUT]
|
||||
[--artifacts-dir ARTIFACTS_DIR] [--book BOOK]
|
||||
[--cleanup] [--cleanup-on-error] [--config-dir DIR]
|
||||
[--config-file PATH]
|
||||
[--custom_user_opts CUSTOM_USER_OPTS] [--debug]
|
||||
[--custom-user-opts CUSTOM_USER_OPTS] [--debug]
|
||||
[--dns-nameservers DNS_NAMESERVERS]
|
||||
[--external-net EXTERNAL_NET]
|
||||
[--flavor-disk FLAVOR_DISK]
|
||||
@ -34,8 +34,8 @@ usage: shaker-all-in-one [-h] [--agent-join-timeout AGENT_JOIN_TIMEOUT]
|
||||
[--polling-interval POLLING_INTERVAL]
|
||||
[--report REPORT] [--report-template REPORT_TEMPLATE]
|
||||
[--scenario SCENARIO]
|
||||
[--scenario_availability_zone SCENARIO_AVAILABILITY_ZONE]
|
||||
[--scenario_compute_nodes SCENARIO_COMPUTE_NODES]
|
||||
[--scenario-availability-zone SCENARIO_AVAILABILITY_ZONE]
|
||||
[--scenario-compute-nodes SCENARIO_COMPUTE_NODES]
|
||||
[--server-endpoint SERVER_ENDPOINT]
|
||||
[--subunit SUBUNIT]
|
||||
[--syslog-log-facility SYSLOG_LOG_FACILITY]
|
||||
@ -70,7 +70,7 @@ optional arguments:
|
||||
--config-file PATH Path to a config file to use. Multiple config files
|
||||
can be specified, with values in later files taking
|
||||
precedence. Defaults to None.
|
||||
--custom_user_opts CUSTOM_USER_OPTS
|
||||
--custom-user-opts CUSTOM_USER_OPTS
|
||||
Set custom user option parameters for the scenario.
|
||||
The value is specified in YAML, e.g. custom_user_opts
|
||||
= { key1:value1, key2:value2} The values specified can
|
||||
@ -235,12 +235,12 @@ optional arguments:
|
||||
"openstack/udp_l3_north_south", "spot/ping",
|
||||
"spot/tcp", "spot/udp". Defaults to
|
||||
env[SHAKER_SCENARIO].
|
||||
--scenario_availability_zone SCENARIO_AVAILABILITY_ZONE
|
||||
--scenario-availability-zone SCENARIO_AVAILABILITY_ZONE
|
||||
Comma-separated list of availability_zone. If
|
||||
specified this setting will override the
|
||||
availability_zone accomodation setting in the scenario
|
||||
test definition.Defaults to SCENARIO_AVAILABILITY_ZONE
|
||||
--scenario_compute_nodes SCENARIO_COMPUTE_NODES
|
||||
--scenario-compute-nodes SCENARIO_COMPUTE_NODES
|
||||
Number of compute_nodes. If specified this setting
|
||||
will override the compute_nodes accomodation setting
|
||||
in the scenario test definition. Defaults to
|
||||
|
@ -1,14 +1,14 @@
|
||||
usage: shaker-spot [-h] [--artifacts-dir ARTIFACTS_DIR] [--book BOOK]
|
||||
[--config-dir DIR] [--config-file PATH]
|
||||
[--custom_user_opts CUSTOM_USER_OPTS] [--debug]
|
||||
[--custom-user-opts CUSTOM_USER_OPTS] [--debug]
|
||||
[--log-config-append PATH] [--log-date-format DATE_FORMAT]
|
||||
[--log-dir LOG_DIR] [--log-file PATH] [--matrix MATRIX]
|
||||
[--no-report-on-error] [--nodebug] [--nono-report-on-error]
|
||||
[--nouse-journal] [--nouse-json] [--nouse-syslog]
|
||||
[--nowatch-log-file] [--output OUTPUT] [--report REPORT]
|
||||
[--report-template REPORT_TEMPLATE] [--scenario SCENARIO]
|
||||
[--scenario_availability_zone SCENARIO_AVAILABILITY_ZONE]
|
||||
[--scenario_compute_nodes SCENARIO_COMPUTE_NODES]
|
||||
[--scenario-availability-zone SCENARIO_AVAILABILITY_ZONE]
|
||||
[--scenario-compute-nodes SCENARIO_COMPUTE_NODES]
|
||||
[--subunit SUBUNIT]
|
||||
[--syslog-log-facility SYSLOG_LOG_FACILITY] [--use-journal]
|
||||
[--use-json] [--use-syslog] [--watch-log-file]
|
||||
@ -30,7 +30,7 @@ optional arguments:
|
||||
--config-file PATH Path to a config file to use. Multiple config files
|
||||
can be specified, with values in later files taking
|
||||
precedence. Defaults to None.
|
||||
--custom_user_opts CUSTOM_USER_OPTS
|
||||
--custom-user-opts CUSTOM_USER_OPTS
|
||||
Set custom user option parameters for the scenario.
|
||||
The value is specified in YAML, e.g. custom_user_opts
|
||||
= { key1:value1, key2:value2} The values specified can
|
||||
@ -114,12 +114,12 @@ optional arguments:
|
||||
"openstack/udp_l3_north_south", "spot/ping",
|
||||
"spot/tcp", "spot/udp". Defaults to
|
||||
env[SHAKER_SCENARIO].
|
||||
--scenario_availability_zone SCENARIO_AVAILABILITY_ZONE
|
||||
--scenario-availability-zone SCENARIO_AVAILABILITY_ZONE
|
||||
Comma-separated list of availability_zone. If
|
||||
specified this setting will override the
|
||||
availability_zone accomodation setting in the scenario
|
||||
test definition.Defaults to SCENARIO_AVAILABILITY_ZONE
|
||||
--scenario_compute_nodes SCENARIO_COMPUTE_NODES
|
||||
--scenario-compute-nodes SCENARIO_COMPUTE_NODES
|
||||
Number of compute_nodes. If specified this setting
|
||||
will override the compute_nodes accomodation setting
|
||||
in the scenario test definition. Defaults to
|
||||
|
@ -2,7 +2,7 @@ usage: shaker [-h] [--agent-join-timeout AGENT_JOIN_TIMEOUT]
|
||||
[--agent-loss-timeout AGENT_LOSS_TIMEOUT]
|
||||
[--artifacts-dir ARTIFACTS_DIR] [--book BOOK]
|
||||
[--cleanup-on-error] [--config-dir DIR] [--config-file PATH]
|
||||
[--custom_user_opts CUSTOM_USER_OPTS] [--debug]
|
||||
[--custom-user-opts CUSTOM_USER_OPTS] [--debug]
|
||||
[--dns-nameservers DNS_NAMESERVERS]
|
||||
[--external-net EXTERNAL_NET] [--flavor-name FLAVOR_NAME]
|
||||
[--image-name IMAGE_NAME] [--log-config-append PATH]
|
||||
@ -23,8 +23,8 @@ usage: shaker [-h] [--agent-join-timeout AGENT_JOIN_TIMEOUT]
|
||||
[--os-username <auth-username>] [--output OUTPUT]
|
||||
[--polling-interval POLLING_INTERVAL] [--report REPORT]
|
||||
[--report-template REPORT_TEMPLATE] [--scenario SCENARIO]
|
||||
[--scenario_availability_zone SCENARIO_AVAILABILITY_ZONE]
|
||||
[--scenario_compute_nodes SCENARIO_COMPUTE_NODES]
|
||||
[--scenario-availability-zone SCENARIO_AVAILABILITY_ZONE]
|
||||
[--scenario-compute-nodes SCENARIO_COMPUTE_NODES]
|
||||
[--server-endpoint SERVER_ENDPOINT] [--subunit SUBUNIT]
|
||||
[--syslog-log-facility SYSLOG_LOG_FACILITY] [--use-journal]
|
||||
[--use-json] [--use-syslog] [--watch-log-file]
|
||||
@ -56,7 +56,7 @@ optional arguments:
|
||||
--config-file PATH Path to a config file to use. Multiple config files
|
||||
can be specified, with values in later files taking
|
||||
precedence. Defaults to None.
|
||||
--custom_user_opts CUSTOM_USER_OPTS
|
||||
--custom-user-opts CUSTOM_USER_OPTS
|
||||
Set custom user option parameters for the scenario.
|
||||
The value is specified in YAML, e.g. custom_user_opts
|
||||
= { key1:value1, key2:value2} The values specified can
|
||||
@ -195,12 +195,12 @@ optional arguments:
|
||||
"openstack/udp_l3_north_south", "spot/ping",
|
||||
"spot/tcp", "spot/udp". Defaults to
|
||||
env[SHAKER_SCENARIO].
|
||||
--scenario_availability_zone SCENARIO_AVAILABILITY_ZONE
|
||||
--scenario-availability-zone SCENARIO_AVAILABILITY_ZONE
|
||||
Comma-separated list of availability_zone. If
|
||||
specified this setting will override the
|
||||
availability_zone accomodation setting in the scenario
|
||||
test definition.Defaults to SCENARIO_AVAILABILITY_ZONE
|
||||
--scenario_compute_nodes SCENARIO_COMPUTE_NODES
|
||||
--scenario-compute-nodes SCENARIO_COMPUTE_NODES
|
||||
Number of compute_nodes. If specified this setting
|
||||
will override the compute_nodes accomodation setting
|
||||
in the scenario test definition. Defaults to
|
||||
|
@ -215,19 +215,19 @@ SCENARIO_OPTS = [
|
||||
deprecated_for_removal=True,
|
||||
default=(utils.env('SHAKER_NO_REPORT_ON_ERROR') or False),
|
||||
help='Do not generate report for failed scenarios'),
|
||||
cfg.ListOpt('scenario_availability_zone',
|
||||
cfg.ListOpt('scenario-availability-zone',
|
||||
default=utils.env('SCENARIO_AVAILABILITY_ZONE'),
|
||||
help='Comma-separated list of availability_zone. If specified '
|
||||
'this setting will override the availability_zone '
|
||||
'accomodation setting in the scenario test definition.'
|
||||
'Defaults to SCENARIO_AVAILABILITY_ZONE'),
|
||||
cfg.IntOpt('scenario_compute_nodes',
|
||||
cfg.IntOpt('scenario-compute-nodes',
|
||||
default=utils.env('SCENARIO_COMPUTE_NODES'),
|
||||
help='Number of compute_nodes. If specified this setting will '
|
||||
'override the compute_nodes accomodation setting in the '
|
||||
'scenario test definition. '
|
||||
'Defaults to SCENARIO_COMPUTE_NODES'),
|
||||
cfg.Opt('custom_user_opts',
|
||||
cfg.Opt('custom-user-opts',
|
||||
default=utils.env('CUSTOM_USER_OPTS'),
|
||||
type=Yaml(),
|
||||
help='Set custom user option parameters for the scenario. '
|
||||
|
Loading…
x
Reference in New Issue
Block a user