Deprecated API features detected
Verfasst: 05 Jun 2023, 10:24
Hallo,
wir bekommen seit neuestem eine Warnmeldung, mit der wir nichts anfangen können, wenn wir opsi-makepackage aufrufen.
Erstmal ist es nur eine Warnung und es funktioniert aktuell noch alles, aber ich würde gern verstehen was dies ggf. zu bedeuten hat.
Hat jemand eine Idee oder einen Lösungsansatz? Opsi Backend ist wie zu sehen mysql.
[6] [2023-06-05 10:11:24.011] [ ] Connecting to mysql://***user***:***secret***@127.0.0.1/opsi?charset=utf8mb4 (MySQL.py:140)
[4] [2023-06-05 10:11:24.058] [ ] Warning 'Deprecated API features detected! These feature(s) are not compatible with SQLAlchemy 2.0. To prevent incompatible upgrades prior to updating applications, ensure requirements files are pinned to "sqlalchemy<2.0". Set environment variable SQLALCHEMY_WARN_20=1 to show all deprecation warnings. Set environment variable SQLALCHEMY_SILENCE_UBER_WARNING=1 to silence this message. (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)' in file 'OPSI/Backend/SQL.py', line 189 (logging.py:848)
[6] [2023-06-05 10:11:24.059] [ ] File "run-opsiutils", line 8, in <module> (logging.py:851)
[6] [2023-06-05 10:11:24.059] [ ] (logging.py:851)
Installierte Pakete auf unserem Ubuntu 22.04. Server sind:
# dpkg-query -l | grep opsi
ii opsi-linux-bootimage 20230328-1 all opsi bootimage for netboot tasks.
ii opsi-linux-support 4.2.0.0-1 all Configure system to be able to deploy Linux with opsi.
ii opsi-server-full 4.2.0.72-1 all opsi server
ii opsi-tftpd-hpa 5.2.8-78 amd64 HPA's tftp server
ii opsi-utils 4.2.0.202-1 amd64 Utilities for working with opsi
ii opsi-windows-support 4.2.0.3-1 all Install utilities useful for deploying Windows with opsi.
ii opsiconfd 4.2.0.309-1 amd64 opsi configuration service
ii opsipxeconfd 4.2.0.32-1 amd64 opsi pxe configuration service
# opsi-makepackage -V
4.2.0.202 [python-opsi=4.2.0.328]
# mysql -V
mysql Ver 15.1 Distrib 10.6.12-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper
wir bekommen seit neuestem eine Warnmeldung, mit der wir nichts anfangen können, wenn wir opsi-makepackage aufrufen.
Erstmal ist es nur eine Warnung und es funktioniert aktuell noch alles, aber ich würde gern verstehen was dies ggf. zu bedeuten hat.
Hat jemand eine Idee oder einen Lösungsansatz? Opsi Backend ist wie zu sehen mysql.
[6] [2023-06-05 10:11:24.011] [ ] Connecting to mysql://***user***:***secret***@127.0.0.1/opsi?charset=utf8mb4 (MySQL.py:140)
[4] [2023-06-05 10:11:24.058] [ ] Warning 'Deprecated API features detected! These feature(s) are not compatible with SQLAlchemy 2.0. To prevent incompatible upgrades prior to updating applications, ensure requirements files are pinned to "sqlalchemy<2.0". Set environment variable SQLALCHEMY_WARN_20=1 to show all deprecation warnings. Set environment variable SQLALCHEMY_SILENCE_UBER_WARNING=1 to silence this message. (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)' in file 'OPSI/Backend/SQL.py', line 189 (logging.py:848)
[6] [2023-06-05 10:11:24.059] [ ] File "run-opsiutils", line 8, in <module> (logging.py:851)
[6] [2023-06-05 10:11:24.059] [ ] (logging.py:851)
Installierte Pakete auf unserem Ubuntu 22.04. Server sind:
# dpkg-query -l | grep opsi
ii opsi-linux-bootimage 20230328-1 all opsi bootimage for netboot tasks.
ii opsi-linux-support 4.2.0.0-1 all Configure system to be able to deploy Linux with opsi.
ii opsi-server-full 4.2.0.72-1 all opsi server
ii opsi-tftpd-hpa 5.2.8-78 amd64 HPA's tftp server
ii opsi-utils 4.2.0.202-1 amd64 Utilities for working with opsi
ii opsi-windows-support 4.2.0.3-1 all Install utilities useful for deploying Windows with opsi.
ii opsiconfd 4.2.0.309-1 amd64 opsi configuration service
ii opsipxeconfd 4.2.0.32-1 amd64 opsi pxe configuration service
# opsi-makepackage -V
4.2.0.202 [python-opsi=4.2.0.328]
# mysql -V
mysql Ver 15.1 Distrib 10.6.12-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper