rally verify start convert keys and values to lowercase
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rally |
Fix Released
|
Undecided
|
Xing Zhang |
Bug Description
`rally verify start` converts options to lower case which case some tests runs with unexpected result. Only run one or more test can reproduce.
Here is an example:
octavia-
[load_balancer]
RBAC_test_type = owner_or_admin
rally verify configure-verifier --extend extra-options.conf (Fixed in https:/
grep -i rbac_ .rally/
RBAC_test_type = owner_or_admin
(UUID may different in your environment)
rally verify start --pattern some_pattern
grep -i rbac_ .rally/
rbac_test_type = owner_or_admin
Changed in rally: | |
assignee: | nobody → Xing Zhang (xingzhang) |
Reviewed: https:/ /review. opendev. org/732002 /git.openstack. org/cgit/ openstack/ rally-openstack /commit/ ?id=7b5bb0b4369 245148b4dd8948a 96fdc202dcb0cc
Committed: https:/
Submitter: Zuul
Branch: master
commit 7b5bb0b43692451 48b4dd8948a96fd c202dcb0cc
Author: Xing Zhang <email address hidden>
Date: Sun May 31 11:08:15 2020 +0800
Make config parser case sensitivity in rally-openstack
rally verify start will convert config options to lowercase
by using configparser, which cannot set the right config
for oslo.config.
Options in config file should be case sensitive, some projects tempest- plugin can't set some value as expected:
like octavia-
[load_balancer]
RBAC_test_type = owner_or_admin
Use `conf.optionxform = str` to prevent case transformation[1].
[1] https:/ /docs.python. org/3/library/ configparser. html
Change-Id: I553c962d40ab73 e50c1e3f5b229ab 553c17fda55
Closes-Bug: #1881456