failure of tacker-db-manage for unsupported features in SQLAlchemy2.0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tacker |
New
|
Critical
|
Unassigned |
Bug Description
Since the recent update of versions of sqlalchemy[1], some functions and attributes in alembic migration scripts are not supported and cause errors while running tacker-db-manage script. Some related scripts under `tacker/
[1] https:/
2024-05-15 12:19:13.895 | ++ /opt/stack/
2024-05-15 12:19:14.316 | /opt/stack/
2024-05-15 12:19:14.316 | warnings.warn(
2024-05-15 12:19:14.773 | INFO [alembic.
2024-05-15 12:19:14.773 | INFO [alembic.
2024-05-15 12:19:14.814 | INFO [alembic.
2024-05-15 12:19:14.908 | INFO [alembic.
2024-05-15 12:19:14.962 | INFO [alembic.
2024-05-15 12:19:14.966 | INFO [alembic.
2024-05-15 12:19:14.986 | INFO [alembic.
2024-05-15 12:19:15.037 | INFO [alembic.
2024-05-15 12:19:15.187 | INFO [alembic.
2024-05-15 12:19:15.382 | INFO [alembic.
2024-05-15 12:19:15.490 | INFO [alembic.
2024-05-15 12:19:15.580 | INFO [alembic.
2024-05-15 12:19:15.743 | INFO [alembic.
2024-05-15 12:19:15.769 | INFO [alembic.
2024-05-15 12:19:18.465 | INFO [alembic.
2024-05-15 12:19:18.468 | Traceback (most recent call last):
2024-05-15 12:19:18.468 | File "/opt/stack/
2024-05-15 12:19:18.468 | sys.exit(main())
2024-05-15 12:19:18.468 | File "/opt/stack/
2024-05-15 12:19:18.468 | CONF.command.
2024-05-15 12:19:18.468 | File "/opt/stack/
2024-05-15 12:19:18.469 | do_alembic_
2024-05-15 12:19:18.469 | File "/opt/stack/
2024-05-15 12:19:18.469 | getattr(
2024-05-15 12:19:18.469 | File "/opt/stack/
2024-05-15 12:19:18.469 | script.run_env()
2024-05-15 12:19:18.469 | File "/opt/stack/
2024-05-15 12:19:18.469 | util.load_
2024-05-15 12:19:18.469 | File "/opt/stack/
2024-05-15 12:19:18.469 | module = load_module_
2024-05-15 12:19:18.469 | File "/opt/stack/
2024-05-15 12:19:18.469 | spec.loader.
2024-05-15 12:19:18.469 | File "<frozen importlib.
2024-05-15 12:19:18.469 | File "<frozen importlib.
2024-05-15 12:19:18.470 | File "/opt/stack/
2024-05-15 12:19:18.470 | run_migrations_
2024-05-15 12:19:18.470 | File "/opt/stack/
2024-05-15 12:19:18.470 | context.
2024-05-15 12:19:18.470 | File "<string>", line 8, in run_migrations
2024-05-15 12:19:18.470 | File "/opt/stack/
2024-05-15 12:19:18.470 | self.get_
2024-05-15 12:19:18.470 | File "/opt/stack/
2024-05-15 12:19:18.470 | step.migration_
2024-05-15 12:19:18.470 | File "/opt/stack/
2024-05-15 12:19:18.470 | _migrate_
2024-05-15 12:19:18.470 | File "/opt/stack/
2024-05-15 12:19:18.471 | for r in t.select(
2024-05-15 12:19:18.471 | AttributeError: 'Select' object has no attribute 'execute'
2024-05-15 12:19:18.632 | + /opt/stack/
2024-05-15 12:19:18.633 | + ./stack.
2024-05-15 12:19:18.634 | ++ ./stack.
2024-05-15 12:19:18.635 | + ./stack.
2024-05-15 12:19:18.636 | + ./stack.
2024-05-15 12:19:18.637 | + ./stack.
2024-05-15 12:19:18.638 | + ./stack.
2024-05-15 12:19:18.640 | + ./stack.
2024-05-15 12:19:18.641 | + ./stack.
2024-05-15 12:19:18.642 | + ./stack.
2024-05-15 12:19:18.643 | + ./stack.
2024-05-15 12:19:18.643 | Error on exit
2024-05-15 12:19:18.644 | + ./stack.
2024-05-15 12:19:18.645 | + ./stack.
2024-05-15 12:19:18.728 | + ./stack.
2024-05-15 12:19:18.729 | + ./stack.