ironic-inspector/ironic_inspector/cmd
Anton Arefiev 3fe42b53fd SQLAlchemy 2.0 Support
Primarily remove the workaround added in
Ia6d512ff2ae417bab938cb095fbb0884d195010a which added
continued use of autocommit, which is incompatible with
SQLAlchemy 2.0.

Also set the environment for unit tests to report compatability
warnings, although it appears none are being reported at this time.

Also cuts out the db upgrade cruft to only use the online database
migration code through oslo_db's enginefacade, which has the smarts
to handle online or offline migrations.

And then, retools unit/functional test data storage to utlize sqlite,
and in that re-tooled the queries to prevent locking conditions
which could exist with queries, and some additional refactoring/cleanup.

Also, don't mock and test time.sleep().

Additionally, it looks like we have discovered the root cause of the
memory/connection leakage issue which has been observed, due to the
way lists of nodes are processed/returned.

This change was based upon the work in
I506da42a9891a245831f325e34bec92e0a3f33f0 which is included in
this commit as the entire database structure and interaction
has been modified for ironic-inspector.

Co-Authored-By: aarefiev <aarefiev@mirantis.com>
Story: 2009727
Task: 44132
Change-Id: Ic88eb9dec5fddc924a72d9a23c17a304954ebf46
2022-12-15 09:28:55 -08:00
..
__init__.py Monkey patch original current_thread _active 2020-05-04 15:06:24 -04:00
all.py Adds tooz locking driver 2019-08-02 09:58:10 +08:00
conductor.py Split API and conductor services 2019-08-12 15:29:55 +08:00
dbsync.py SQLAlchemy 2.0 Support 2022-12-15 09:28:55 -08:00
migration.py No need to import print function anymore 2020-04-21 13:21:59 +02:00
status.py Add upgrade check, and json2yaml policy handling 2021-01-04 13:56:28 -08:00
wsgi.py Split API and conductor services 2019-08-12 15:29:55 +08:00