with sqlalchemy-1.4.18 jobs fails with below Traceback:-
Jun 17 08:32:30.978350 ubuntu-focal-inap-mtl01-0025156859 watcher-applier[156509]: ERROR apscheduler.executors.default Traceback (most recent call last):
Jun 17 08:32:30.978350 ubuntu-focal-inap-mtl01-0025156859 watcher-applier[156509]: ERROR apscheduler.executors.default File "/usr/local/lib/python3.8/dist-packages/apscheduler/executors/base.py", line 125, in run_job
Jun 17 08:32:30.978350 ubuntu-focal-inap-mtl01-0025156859 watcher-applier[156509]: ERROR apscheduler.executors.default retval = job.func(*job.args, **job.kwargs)
Jun 17 08:32:30.978350 ubuntu-focal-inap-mtl01-0025156859 watcher-applier[156509]: ERROR apscheduler.executors.default File "/opt/stack/watcher/watcher/common/service.py", line 124, in send_beat
Jun 17 08:32:30.978350 ubuntu-focal-inap-mtl01-0025156859 watcher-applier[156509]: ERROR apscheduler.executors.default watcher_service.save()
Jun 17 08:32:30.978350 ubuntu-focal-inap-mtl01-0025156859 watcher-applier[156509]: ERROR apscheduler.executors.default File "/usr/local/lib/python3.8/dist-packages/oslo_versionedobjects/base.py", line 226, in wrapper
Jun 17 08:32:30.978350 ubuntu-focal-inap-mtl01-0025156859 watcher-applier[156509]: ERROR apscheduler.executors.default return fn(self, *args, **kwargs)
Jun 17 08:32:30.978350 ubuntu-focal-inap-mtl01-0025156859 watcher-applier[156509]: ERROR apscheduler.executors.default File "/opt/stack/watcher/watcher/objects/service.py", line 122, in save
Jun 17 08:32:30.978350 ubuntu-focal-inap-mtl01-0025156859 watcher-applier[156509]: ERROR apscheduler.executors.default db_obj = self.dbapi.update_service(self.id, updates)
Jun 17 08:32:30.978350 ubuntu-focal-inap-mtl01-0025156859 watcher-applier[156509]: ERROR apscheduler.executors.default File "/opt/stack/watcher/watcher/db/sqlalchemy/api.py", line 1094, in update_service
Jun 17 08:32:30.978350 ubuntu-focal-inap-mtl01-0025156859 watcher-applier[156509]: ERROR apscheduler.executors.default return self._update(models.Service, service_id, values)
Jun 17 08:32:30.978350 ubuntu-focal-inap-mtl01-0025156859 watcher-applier[156509]: ERROR apscheduler.executors.default File "/opt/stack/watcher/watcher/db/sqlalchemy/api.py", line 281, in _update
Jun 17 08:32:30.978350 ubuntu-focal-inap-mtl01-0025156859 watcher-applier[156509]: ERROR apscheduler.executors.default ref = query.with_lockmode('update').one()
Jun 17 08:32:30.978350 ubuntu-focal-inap-mtl01-0025156859 watcher-applier[156509]: ERROR apscheduler.executors.default AttributeError: 'Query' object has no attribute 'with_lockmode'
Example logs:- https://0152cc80754598f7dd6e-579ffa891605f8b01745396aeb7b7fcc.ssl.cf2.rackcdn.com/796781/1/check/watcher-tempest-actuator/b406bdd/controller/logs/screen-watcher-applier.txt
Also seen while updating sqlalchemy to 1.4.18 in RDO https://review.rdoproject.org/r/c/rdoinfo/+/34221.
logs:- https://logserver.rdoproject.org/21/34221/3/check/validate-buildsys-tags-xena-testing-puppet-scenario004-centos8/053d856/logs/weirdo-project/logs/watcher/watcher.txt.gz
Fix proposed to branch: master /review. opendev. org/c/openstack /watcher/ +/797889
Review: https:/