watcher does not have a pyproject.toml
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-watcherclient |
Fix Released
|
Medium
|
sean mooney | ||
watcher |
Fix Released
|
High
|
sean mooney | ||
watcher-dashboard |
Fix Released
|
Medium
|
sean mooney | ||
watcher-tempest-plugin |
Fix Released
|
Medium
|
sean mooney |
Bug Description
for quite a long time deploying a python project without a pyporject.toml
file has been deprecated in setuptools/pip
pip 23.1 removed the "setup.py install" fallback for projects that do
not have pyproject.toml and now uses a pyproject.toml which is vendored
in pip
this does not support pbr or more importnatly our pbr setuptools extention that generates the wsgi script
as a result the jobs are failing with this error
Apr 29 11:16:44.905818 np0040574675 <email address hidden>[83629]: failed to open python file /opt/stack/
Apr 29 11:16:44.905818 np0040574675 <email address hidden>[83629]: unable to load app 0 (mountpoint='') (callable not found or import error)
Apr 29 11:16:44.905818 np0040574675 <email address hidden>[83629]: *** no app loaded. going in full dynamic mode ***
the fix for this is simple
first we need to supprot using the wsgi applciation as a module
https:/
then we need to add a pyproject.toml
https:/
and finally we need to make devstack use it
https:/
unlike placement the devstack plugin is in the repo.
and because we have waited this long to do this we will need to do all 3 changes in one patch.
yesterday the requirements project also drop py39 supprot so we likely need to adapt to that also.
Fix proposed to branch: master /review. opendev. org/c/openstack /watcher/ +/948438
Review: https:/