compatibility with sqlalchemy 2.0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rally |
In Progress
|
Undecided
|
Mitya Eremeev |
Bug Description
rally not compatible with sqlalchemy-
Get's below error with sqlalchemy-2.0.0:-
# rally db create [1/1900]
Creating database: sqlite:
Command failed, please check log for more info
2023-01-27 14:17:47.338 2484279 CRITICAL rally [-] Unhandled error: sqlalchemy.
SQLAlchemy Transaction() object via begin() or autobegin; can't call begin() here unless rollback() or commit() is called first.
2023-01-27 14:17:47.338 2484279 ERROR rally Traceback (most recent call last):
2023-01-27 14:17:47.338 2484279 ERROR rally File "/root/
2023-01-27 14:17:47.338 2484279 ERROR rally sys.exit(main())
2023-01-27 14:17:47.338 2484279 ERROR rally File "/root/
in main
2023-01-27 14:17:47.338 2484279 ERROR rally return cliutils.
2023-01-27 14:17:47.338 2484279 ERROR rally File "/root/
669, in run
2023-01-27 14:17:47.338 2484279 ERROR rally ret = fn(*fn_args, **fn_kwargs)
2023-01-27 14:17:47.338 2484279 ERROR rally File "/root/
ne 44, in create
2023-01-27 14:17:47.338 2484279 ERROR rally db.schema.
2023-01-27 14:17:47.338 2484279 ERROR rally File "/root/
ine 138, in schema_create
2023-01-27 14:17:47.338 2484279 ERROR rally models.
2023-01-27 14:17:47.338 2484279 ERROR rally File "/root/
ne 5558, in create_all
2023-01-27 14:17:47.338 2484279 ERROR rally bind._run_
2023-01-27 14:17:47.338 2484279 ERROR rally File "/root/
ine 3219, in _run_ddl_visitor
2023-01-27 14:17:47.338 2484279 ERROR rally with self.begin() as conn:
2023-01-27 14:17:47.338 2484279 ERROR rally File "/usr/lib64/
2023-01-27 14:17:47.338 2484279 ERROR rally return next(self.gen)
2023-01-27 14:17:47.338 2484279 ERROR rally File "/root/
ine 3210, in begin
2023-01-27 14:17:47.338 2484279 ERROR rally with conn.begin():
2023-01-27 14:17:47.338 2484279 ERROR rally File "/root/
ine 853, in begin
2023-01-27 14:17:47.338 2484279 ERROR rally raise exc.InvalidRequ
2023-01-27 14:17:47.338 2484279 ERROR rally sqlalchemy.
object via begin() or autobegin; can't call begin() here unless rollback() or commit() is called first.
2023-01-27 14:17:47.338 2484279 ERROR rally
Until rally codebase is compatible to sqlalchemy-2.0.0 would be good to pin it.
Related fix proposed to branch: master /review. opendev. org/c/openstack /rally/ +/872021
Review: https:/