rally db error

Asked by Edward Rice on 2021-04-27

I am unable to get a functional install of rally-openstack. It doesn't matter if I use the sqlite or mariadb databases. I am able to run rally env create and pass the rally env check.

(rally) [rally@rally-dev rally]$ rally env check
Env `int5-z1 (5b623afc-6821-48d1-8c6b-6d9f7ffb154d)' :-)
+-----------+-----------+---------+
| Available | Platform | Message |
+-----------+-----------+---------+
| :-) | openstack | OK! |
+-----------+-----------+---------+

I can also create the tempest verifier. However, if I run "rally deployment check" or "rally verify configure-verifier" or "rally verify start" I get the same type of error -

(rally) [rally@rally-dev rally]$ rally --debug deployment check
2021-04-27 15:29:16.722 3720 RALLYDEBUG rally.api [-] INFO logs from urllib3 and requests module are hide.
2021-04-27 15:29:16.723 3720 RALLYDEBUG rally.api [-] urllib3 insecure warnings are hidden.
2021-04-27 15:29:16.723 3720 RALLYDEBUG rally.api [-] ERROR log from boto module is hide.
2021-04-27 15:29:16.731 3720 DEBUG oslo_db.sqlalchemy.engines [-] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION _check_effective_sql_mode /home/rally/rally/lib64/python3.6/site-packages/oslo_db/sqlalchemy/engines.py:304
2021-04-27 15:29:16.771 3720 ERROR rally.cli.cliutils [-] Unexpected exception in CLI: ValueError: tuple.index(x): x not in tuple
2021-04-27 15:29:16.771 3720 ERROR rally.cli.cliutils Traceback (most recent call last):
2021-04-27 15:29:16.771 3720 ERROR rally.cli.cliutils File "/home/rally/rally/lib64/python3.6/site-packages/rally/cli/cliutils.py", line 669, in run
2021-04-27 15:29:16.771 3720 ERROR rally.cli.cliutils ret = fn(*fn_args, **fn_kwargs)
2021-04-27 15:29:16.771 3720 ERROR rally.cli.cliutils File "/home/rally/rally/lib64/python3.6/site-packages/decorator.py", line 232, in fun
2021-04-27 15:29:16.771 3720 ERROR rally.cli.cliutils return caller(func, *(extras + args), **kw)
2021-04-27 15:29:16.771 3720 ERROR rally.cli.cliutils File "/home/rally/rally/lib64/python3.6/site-packages/rally/cli/envutils.py", line 128, in default_from_global
2021-04-27 15:29:16.771 3720 ERROR rally.cli.cliutils id_arg_index = f.__code__.co_varnames.index(arg_name)
2021-04-27 15:29:16.771 3720 ERROR rally.cli.cliutils ValueError: tuple.index(x): x not in tuple
2021-04-27 15:29:16.771 3720 ERROR rally.cli.cliutils

(rally) [rally@rally-dev rally]$ rally verify configure-verifier --id ac5eb884-c151-4e43-8d94-dd2079fc3872 --deployment-id 5b623afc-6821-48d1-8c6b-6d9f7ffb154d
tuple.index(x): x not in tuple
(rally) [rally@rally-dev rally]$ rally --debug verify configure-verifier --id ac5eb884-c151-4e43-8d94-dd2079fc3872 --deployment-id 5b623afc-6821-48d1-8c6b-6d9f7ffb154d
2021-04-27 15:26:01.437 3711 RALLYDEBUG rally.api [-] INFO logs from urllib3 and requests module are hide.
2021-04-27 15:26:01.437 3711 RALLYDEBUG rally.api [-] urllib3 insecure warnings are hidden.
2021-04-27 15:26:01.438 3711 RALLYDEBUG rally.api [-] ERROR log from boto module is hide.
2021-04-27 15:26:01.447 3711 DEBUG oslo_db.sqlalchemy.engines [-] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION _check_effective_sql_mode /home/rally/rally/lib64/python3.6/site-packages/oslo_db/sqlalchemy/engines.py:304
2021-04-27 15:26:01.495 3711 ERROR rally.cli.cliutils [-] Unexpected exception in CLI: ValueError: tuple.index(x): x not in tuple
2021-04-27 15:26:01.495 3711 ERROR rally.cli.cliutils Traceback (most recent call last):
2021-04-27 15:26:01.495 3711 ERROR rally.cli.cliutils File "/home/rally/rally/lib64/python3.6/site-packages/rally/cli/cliutils.py", line 669, in run
2021-04-27 15:26:01.495 3711 ERROR rally.cli.cliutils ret = fn(*fn_args, **fn_kwargs)
2021-04-27 15:26:01.495 3711 ERROR rally.cli.cliutils File "/home/rally/rally/lib64/python3.6/site-packages/decorator.py", line 232, in fun
2021-04-27 15:26:01.495 3711 ERROR rally.cli.cliutils return caller(func, *(extras + args), **kw)
2021-04-27 15:26:01.495 3711 ERROR rally.cli.cliutils File "/home/rally/rally/lib64/python3.6/site-packages/rally/cli/envutils.py", line 128, in default_from_global
2021-04-27 15:26:01.495 3711 ERROR rally.cli.cliutils id_arg_index = f.__code__.co_varnames.index(arg_name)
2021-04-27 15:26:01.495 3711 ERROR rally.cli.cliutils ValueError: tuple.index(x): x not in tuple
2021-04-27 15:26:01.495 3711 ERROR rally.cli.cliutils

(rally) [rally@rally-dev rally]$ rally --debug verify start
2021-04-27 15:26:39.902 3715 RALLYDEBUG rally.api [-] INFO logs from urllib3 and requests module are hide.
2021-04-27 15:26:39.902 3715 RALLYDEBUG rally.api [-] urllib3 insecure warnings are hidden.
2021-04-27 15:26:39.902 3715 RALLYDEBUG rally.api [-] ERROR log from boto module is hide.
2021-04-27 15:26:39.908 3715 DEBUG oslo_db.sqlalchemy.engines [-] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION _check_effective_sql_mode /home/rally/rally/lib64/python3.6/site-packages/oslo_db/sqlalchemy/engines.py:304
2021-04-27 15:26:39.946 3715 ERROR rally.cli.cliutils [-] Unexpected exception in CLI: ValueError: tuple.index(x): x not in tuple
2021-04-27 15:26:39.946 3715 ERROR rally.cli.cliutils Traceback (most recent call last):
2021-04-27 15:26:39.946 3715 ERROR rally.cli.cliutils File "/home/rally/rally/lib64/python3.6/site-packages/rally/cli/cliutils.py", line 669, in run
2021-04-27 15:26:39.946 3715 ERROR rally.cli.cliutils ret = fn(*fn_args, **fn_kwargs)
2021-04-27 15:26:39.946 3715 ERROR rally.cli.cliutils File "/home/rally/rally/lib64/python3.6/site-packages/decorator.py", line 232, in fun
2021-04-27 15:26:39.946 3715 ERROR rally.cli.cliutils return caller(func, *(extras + args), **kw)
2021-04-27 15:26:39.946 3715 ERROR rally.cli.cliutils File "/home/rally/rally/lib64/python3.6/site-packages/rally/cli/envutils.py", line 128, in default_from_global
2021-04-27 15:26:39.946 3715 ERROR rally.cli.cliutils id_arg_index = f.__code__.co_varnames.index(arg_name)
2021-04-27 15:26:39.946 3715 ERROR rally.cli.cliutils ValueError: tuple.index(x): x not in tuple
2021-04-27 15:26:39.946 3715 ERROR rally.cli.cliutils

Question information

Language:
English Edit question
Status:
Answered
For:
Rally Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Edward Rice (erice-evlos) said :
#1

after adding in the decorator library, "rally deployment check" passes but rally verify commands still fail with this -

2021-04-27 17:29:59.085 4156 RALLYDEBUG rally.api [-] INFO logs from urllib3 and requests module are hide.
2021-04-27 17:29:59.086 4156 RALLYDEBUG rally.api [-] urllib3 insecure warnings are hidden.
2021-04-27 17:29:59.086 4156 RALLYDEBUG rally.api [-] ERROR log from boto module is hide.
2021-04-27 17:29:59.092 4156 DEBUG oslo_db.sqlalchemy.engines [-] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION _check_effective_sql_mode /home/rally/rally/lib64/python3.6/site-packages/oslo_db/sqlalchemy/engines.py:304
2021-04-27 17:30:01.222 4156 INFO rally.api [-] Configuring verifier 'tempest-verifier' (UUID=ac5eb884-c151-4e43-8d94-dd2079fc3872) for deployment 'int5-z1' (UUID=5b623afc-6821-48d1-8c6b-6d9f7ffb154d).
2021-04-27 17:30:01.227 4156 ERROR rally.cli.cliutils [-] Unexpected exception in CLI: TypeError: type object argument after ** must be a mapping, not NoneType
2021-04-27 17:30:01.227 4156 ERROR rally.cli.cliutils Traceback (most recent call last):
2021-04-27 17:30:01.227 4156 ERROR rally.cli.cliutils File "/home/rally/rally/lib64/python3.6/site-packages/rally/cli/cliutils.py", line 669, in run
2021-04-27 17:30:01.227 4156 ERROR rally.cli.cliutils ret = fn(*fn_args, **fn_kwargs)
2021-04-27 17:30:01.227 4156 ERROR rally.cli.cliutils File "<decorator-gen-79>", line 2, in configure_verifier
2021-04-27 17:30:01.227 4156 ERROR rally.cli.cliutils File "/home/rally/rally/lib64/python3.6/site-packages/rally/cli/envutils.py", line 135, in default_from_global
2021-04-27 17:30:01.227 4156 ERROR rally.cli.cliutils return f(*args, **kwargs)
2021-04-27 17:30:01.227 4156 ERROR rally.cli.cliutils File "<decorator-gen-78>", line 2, in configure_verifier
2021-04-27 17:30:01.227 4156 ERROR rally.cli.cliutils File "/home/rally/rally/lib64/python3.6/site-packages/rally/cli/envutils.py", line 135, in default_from_global
2021-04-27 17:30:01.227 4156 ERROR rally.cli.cliutils return f(*args, **kwargs)
2021-04-27 17:30:01.227 4156 ERROR rally.cli.cliutils File "<decorator-gen-77>", line 2, in configure_verifier
2021-04-27 17:30:01.227 4156 ERROR rally.cli.cliutils File "/home/rally/rally/lib64/python3.6/site-packages/rally/plugins/__init__.py", line 59, in ensure_plugins_are_loaded
2021-04-27 17:30:01.227 4156 ERROR rally.cli.cliutils return f(*args, **kwargs)
2021-04-27 17:30:01.227 4156 ERROR rally.cli.cliutils File "/home/rally/rally/lib64/python3.6/site-packages/rally/cli/commands/verify.py", line 352, in configure_verifier
2021-04-27 17:30:01.227 4156 ERROR rally.cli.cliutils reconfigure=reconfigure)
2021-04-27 17:30:01.227 4156 ERROR rally.cli.cliutils File "/home/rally/rally/lib64/python3.6/site-packages/rally/api.py", line 860, in configure
2021-04-27 17:30:01.227 4156 ERROR rally.cli.cliutils raw_config = vm.configure(extra_options=extra_options)
2021-04-27 17:30:01.227 4156 ERROR rally.cli.cliutils File "/home/rally/rally/lib64/python3.6/site-packages/rally_openstack/verification/tempest/manager.py", line 107, in configure
2021-04-27 17:30:01.227 4156 ERROR rally.cli.cliutils tcm = config.TempestConfigfileManager(self.verifier.env)
2021-04-27 17:30:01.227 4156 ERROR rally.cli.cliutils File "/home/rally/rally/lib64/python3.6/site-packages/rally_openstack/verification/tempest/config.py", line 41, in __init__
2021-04-27 17:30:01.227 4156 ERROR rally.cli.cliutils **openstack_platform["platform_data"]["admin"])
2021-04-27 17:30:01.227 4156 ERROR rally.cli.cliutils TypeError: type object argument after ** must be a mapping, not NoneType
2021-04-27 17:30:01.227 4156 ERROR rally.cli.cliutils

Revision history for this message
Bernard Stafford (bernard010) said :
#2

https://packages.ubuntu.com/focal/python3-rally
Test to see if this package makes the same errors.
This is a (Python) Benchmark system [Python 3-rally]
You are using (NET) Benchmark system [rally]

Revision history for this message
Edward Rice (erice-evlos) said :
#3

I am running out of a pyenv virtual environment on CentOS7. pypi only has the rally 3.2.0 and rally-openstack 2.1.0 plugins available.

Revision history for this message
Edward Rice (erice-evlos) said :
#4

Is this version available for Cent 7?

Revision history for this message
Bernard Stafford (bernard010) said :
#5

Can you help with this problem?

Provide an answer of your own, or ask Edward Rice for more information if necessary.

To post a message you must log in.