Deprecated API features detected

Antworten
itsupportalbis
Beiträge: 14
Registriert: 09 Apr 2017, 18:25

Deprecated API features detected

Beitrag von itsupportalbis »

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
Benutzeravatar
ThomasT
uib-Team
Beiträge: 529
Registriert: 26 Jun 2013, 12:26

Re: Deprecated API features detected

Beitrag von ThomasT »

Die Warnung kommt von einem vom opsi-server verwendeten Python-Modul.
Es ist nur ein Hinweis für Entwickler, dass wenn Versionen >=2.0 des Modules SQLAlchemy verwendet würden, diese nicht kompatible mit dem momentanen Code sind.
Solange aber Versionen < 2.0 verwendet werden, was im aktuellen opsiconfd der Fall ist, ist alles ok.

Wir sind da dran.
Kein Support per DM!
_________________________
opsi support - https://www.uib.de/
For productive opsi installations we recommend support contracts.
itsupportalbis
Beiträge: 14
Registriert: 09 Apr 2017, 18:25

Re: Deprecated API features detected

Beitrag von itsupportalbis »

Hallo ThomasT,

danke für deine schnelle und erklärende Antwort!
Antworten