m-api uwsgi deployment broken with setuptools
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Fix Released
|
Critical
|
Goutham Pacha Ravi |
Bug Description
Manila CI jobs are perma-failing with an issue starting the manila-api service:
Apr 28 15:32:48.216443 np0040561028 systemd[1]: Starting <email address hidden> - Devstack <email address hidden>...
Apr 28 15:32:48.229464 np0040561028 <email address hidden>[83053]: [uWSGI] getting INI configuration from /etc/manila/
Apr 28 15:32:48.248227 np0040561028 <email address hidden>[83053]: *** Starting uWSGI 2.0.24-debian (64bit) on [Mon Apr 28 15:32:48 2025] ***
Apr 28 15:32:48.248227 np0040561028 <email address hidden>[83053]: compiled with version: 13.2.0 on 17 April 2024 16:23:48
Apr 28 15:32:48.248227 np0040561028 <email address hidden>[83053]: os: Linux-6.
Apr 28 15:32:48.248227 np0040561028 <email address hidden>[83053]: nodename: np0040561028
Apr 28 15:32:48.248227 np0040561028 <email address hidden>[83053]: machine: x86_64
Apr 28 15:32:48.248227 np0040561028 <email address hidden>[83053]: clock source: unix
Apr 28 15:32:48.248227 np0040561028 <email address hidden>[83053]: pcre jit disabled
Apr 28 15:32:48.248227 np0040561028 <email address hidden>[83053]: detected number of CPU cores: 8
Apr 28 15:32:48.248227 np0040561028 <email address hidden>[83053]: current working directory: /
Apr 28 15:32:48.248227 np0040561028 <email address hidden>[83053]: detected binary path: /usr/bin/uwsgi-core
Apr 28 15:32:48.248227 np0040561028 <email address hidden>[83053]: your processes number limit is 31476
Apr 28 15:32:48.248227 np0040561028 <email address hidden>[83053]: your memory page size is 4096 bytes
Apr 28 15:32:48.248227 np0040561028 <email address hidden>[83053]: detected max file descriptor number: 2048
Apr 28 15:32:48.248227 np0040561028 <email address hidden>[83053]: lock engine: pthread robust mutexes
Apr 28 15:32:48.249074 np0040561028 <email address hidden>[83053]: thunder lock: enabled
Apr 28 15:32:48.249074 np0040561028 <email address hidden>[83053]: uwsgi socket 0 bound to UNIX address /var/run/
Apr 28 15:32:48.249074 np0040561028 <email address hidden>[83053]: Python version: 3.12.3 (main, Feb 4 2025, 14:48:35) [GCC 13.3.0]
Apr 28 15:32:48.249074 np0040561028 <email address hidden>[83053]: PEP 405 virtualenv detected: /opt/stack/
Apr 28 15:32:48.249074 np0040561028 <email address hidden>[83053]: Set PythonHome to /opt/stack/
Apr 28 15:32:48.311589 np0040561028 <email address hidden>[83053]: Python main interpreter initialized at 0x7306372a2f68
Apr 28 15:32:48.311589 np0040561028 <email address hidden>[83053]: python threads support enabled
Apr 28 15:32:48.311589 np0040561028 <email address hidden>[83053]: your server socket listen backlog is limited to 100 connections
Apr 28 15:32:48.311589 np0040561028 <email address hidden>[83053]: your mercy for graceful operations on workers is 80 seconds
Apr 28 15:32:48.312101 np0040561028 <email address hidden>[83053]: mapped 403077 bytes (393 KB) for 2 cores
Apr 28 15:32:48.312229 np0040561028 <email address hidden>[83053]: *** Operational MODE: preforking ***
Apr 28 15:32:48.312522 np0040561028 <email address hidden>[83053]: *** uWSGI is running in multiple interpreter mode ***
Apr 28 15:32:48.312522 np0040561028 <email address hidden>[83053]: spawned uWSGI master process (pid: 83053)
Apr 28 15:32:48.312806 np0040561028 systemd[1]: Started <email address hidden> - Devstack <email address hidden>.
Apr 28 15:32:48.313217 np0040561028 <email address hidden>[83053]: spawned uWSGI worker 1 (pid: 83054, cores: 1)
Apr 28 15:32:48.313818 np0040561028 <email address hidden>[83053]: spawned uWSGI worker 2 (pid: 83055, cores: 1)
Apr 28 15:32:48.313818 np0040561028 <email address hidden>[83053]: running "unix_signal:15 gracefully_
Apr 28 15:32:48.319112 np0040561028 <email address hidden>[83055]: failed to open python file /opt/stack/
Apr 28 15:32:48.319112 np0040561028 <email address hidden>[83055]: unable to load app 0 (mountpoint='') (callable not found or import error)
Apr 28 15:32:48.319112 np0040561028 <email address hidden>[83055]: *** no app loaded. going in full dynamic mode ***
Apr 28 15:32:48.321113 np0040561028 <email address hidden>[83054]: failed to open python file /opt/stack/
Apr 28 15:32:48.321113 np0040561028 <email address hidden>[83054]: unable to load app 0 (mountpoint='') (callable not found or import error)
Apr 28 15:32:48.321113 np0040561028 <email address hidden>[83054]: *** no app loaded. going in full dynamic mode ***
Apr 28 15:32:48.528994 np0040561028 <email address hidden>[83055]: --- no python application found, check your startup logs for errors ---
Apr 28 15:32:48.528994 np0040561028 <email address hidden>[83055]: [pid: 83055|app: -1|req: -1/1] 2001:4801:
Apr 28 15:32:55.784142 np0040561028 <email address hidden>[83054]: --- no python application found, check your startup logs for errors ---
Apr 28 15:32:55.784142 np0040561028 <email address hidden>[83054]: [pid: 83054|app: -1|req: -1/2] 2001:4801:
Apr 28 15:32:56.065538 np0040561028 <email address hidden>[83055]: --- no python application found, check your startup logs for errors ---
Apr 28 15:32:56.065538 np0040561028 <email address hidden>[83055]: [pid: 83055|app: -1|req: -1/3] 2001:4801:
We don't ship a pyproject.toml file and so we see a warning in the devstacklog:
2025-04-28 15:24:49.566 | Installing collected packages: SQLAlchemy-Utils, manila
2025-04-28 15:24:49.690 | DEPRECATION: Legacy editable install of manila=
2025-04-28 15:24:49.691 | Running setup.py develop for manila
This seems to cause the wsgi binary file to not be in the location the configuration expects.
Similar bugs in other OpenStack projects:
https:/
https:/
https:/
In parallel, there's been a cross project effort to stop relying on wsgi paths: https:/
Changed in manila: | |
importance: | Undecided → Critical |
assignee: | nobody → Goutham Pacha Ravi (gouthamr) |
milestone: | none → flamingo-1 |
Fix proposed to branch: master /review. opendev. org/c/openstack /manila/ +/948491
Review: https:/