← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2089281] [NEW] Nova does not work with Gunicorn

 

Public bug reported:

Tried running Nova in Gunicorn, it fails with following output:

()[root@localhost /]# gunicorn nova.wsgi.osapi_compute:application
[2024-11-21 15:43:11 +0000] [26] [INFO] Starting gunicorn 23.0.0
[2024-11-21 15:43:11 +0000] [26] [INFO] Listening at: http://127.0.0.1:8000 (26)
[2024-11-21 15:43:11 +0000] [26] [INFO] Using worker: sync
[2024-11-21 15:43:11 +0000] [27] [INFO] Booting worker with pid: 27
usage: gunicorn [-h] [--config-dir DIR] [--config-file PATH] [--debug] [--log-config-append PATH] [--log-date-format DATE_FORMAT] [--log-dir LOG_DIR] [--log-file PATH] [--nodebug] [--nouse-journal]
                [--nouse-json] [--nouse-syslog] [--nowatch-log-file] [--shell_completion SHELL_COMPLETION] [--syslog-log-facility SYSLOG_LOG_FACILITY] [--use-journal] [--use-json] [--use-syslog] [--version]
                [--watch-log-file]
gunicorn: error: unrecognized arguments: nova.wsgi.osapi_compute:application
[2024-11-21 15:43:12 +0000] [27] [INFO] Worker exiting (pid: 27)
[2024-11-21 15:43:12 +0000] [26] [ERROR] Worker (pid:27) exited with code 2
[2024-11-21 15:43:12 +0000] [26] [ERROR] Worker (pid:27) exited with code 2.
[2024-11-21 15:43:12 +0000] [28] [INFO] Booting worker with pid: 28
usage: gunicorn [-h] [--config-dir DIR] [--config-file PATH] [--debug] [--log-config-append PATH] [--log-date-format DATE_FORMAT] [--log-dir LOG_DIR] [--log-file PATH] [--nodebug] [--nouse-journal]
                [--nouse-json] [--nouse-syslog] [--nowatch-log-file] [--shell_completion SHELL_COMPLETION] [--syslog-log-facility SYSLOG_LOG_FACILITY] [--use-journal] [--use-json] [--use-syslog] [--version]
                [--watch-log-file]
gunicorn: error: unrecognized arguments: nova.wsgi.osapi_compute:application
[2024-11-21 15:43:13 +0000] [28] [INFO] Worker exiting (pid: 28)
[2024-11-21 15:43:13 +0000] [26] [ERROR] Worker (pid:28) exited with code 2
[2024-11-21 15:43:13 +0000] [26] [ERROR] Worker (pid:28) exited with code 2.
[2024-11-21 15:43:13 +0000] [29] [INFO] Booting worker with pid: 29
usage: gunicorn [-h] [--config-dir DIR] [--config-file PATH] [--debug] [--log-config-append PATH] [--log-date-format DATE_FORMAT] [--log-dir LOG_DIR] [--log-file PATH] [--nodebug] [--nouse-journal]
                [--nouse-json] [--nouse-syslog] [--nowatch-log-file] [--shell_completion SHELL_COMPLETION] [--syslog-log-facility SYSLOG_LOG_FACILITY] [--use-journal] [--use-json] [--use-syslog] [--version]
                [--watch-log-file]
gunicorn: error: unrecognized arguments: nova.wsgi.osapi_compute:application
[2024-11-21 15:43:14 +0000] [29] [INFO] Worker exiting (pid: 29)
[2024-11-21 15:43:14 +0000] [26] [ERROR] Worker (pid:29) exited with code 2
[2024-11-21 15:43:14 +0000] [26] [ERROR] Worker (pid:29) exited with code 2.

This is due to Gunicorn not handling pyargv just like UWSGI does -
details in https://github.com/benoitc/gunicorn/issues/2286

One option is to do what monasca-api did -
https://opendev.org/openstack/monasca-
api/src/commit/c36c2c69a4227e0c1da04f3044bfa4b059a55781/monasca_api/config.py#L83

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/2089281

Title:
  Nova does not work with Gunicorn

Status in OpenStack Compute (nova):
  New

Bug description:
  Tried running Nova in Gunicorn, it fails with following output:

  ()[root@localhost /]# gunicorn nova.wsgi.osapi_compute:application
  [2024-11-21 15:43:11 +0000] [26] [INFO] Starting gunicorn 23.0.0
  [2024-11-21 15:43:11 +0000] [26] [INFO] Listening at: http://127.0.0.1:8000 (26)
  [2024-11-21 15:43:11 +0000] [26] [INFO] Using worker: sync
  [2024-11-21 15:43:11 +0000] [27] [INFO] Booting worker with pid: 27
  usage: gunicorn [-h] [--config-dir DIR] [--config-file PATH] [--debug] [--log-config-append PATH] [--log-date-format DATE_FORMAT] [--log-dir LOG_DIR] [--log-file PATH] [--nodebug] [--nouse-journal]
                  [--nouse-json] [--nouse-syslog] [--nowatch-log-file] [--shell_completion SHELL_COMPLETION] [--syslog-log-facility SYSLOG_LOG_FACILITY] [--use-journal] [--use-json] [--use-syslog] [--version]
                  [--watch-log-file]
  gunicorn: error: unrecognized arguments: nova.wsgi.osapi_compute:application
  [2024-11-21 15:43:12 +0000] [27] [INFO] Worker exiting (pid: 27)
  [2024-11-21 15:43:12 +0000] [26] [ERROR] Worker (pid:27) exited with code 2
  [2024-11-21 15:43:12 +0000] [26] [ERROR] Worker (pid:27) exited with code 2.
  [2024-11-21 15:43:12 +0000] [28] [INFO] Booting worker with pid: 28
  usage: gunicorn [-h] [--config-dir DIR] [--config-file PATH] [--debug] [--log-config-append PATH] [--log-date-format DATE_FORMAT] [--log-dir LOG_DIR] [--log-file PATH] [--nodebug] [--nouse-journal]
                  [--nouse-json] [--nouse-syslog] [--nowatch-log-file] [--shell_completion SHELL_COMPLETION] [--syslog-log-facility SYSLOG_LOG_FACILITY] [--use-journal] [--use-json] [--use-syslog] [--version]
                  [--watch-log-file]
  gunicorn: error: unrecognized arguments: nova.wsgi.osapi_compute:application
  [2024-11-21 15:43:13 +0000] [28] [INFO] Worker exiting (pid: 28)
  [2024-11-21 15:43:13 +0000] [26] [ERROR] Worker (pid:28) exited with code 2
  [2024-11-21 15:43:13 +0000] [26] [ERROR] Worker (pid:28) exited with code 2.
  [2024-11-21 15:43:13 +0000] [29] [INFO] Booting worker with pid: 29
  usage: gunicorn [-h] [--config-dir DIR] [--config-file PATH] [--debug] [--log-config-append PATH] [--log-date-format DATE_FORMAT] [--log-dir LOG_DIR] [--log-file PATH] [--nodebug] [--nouse-journal]
                  [--nouse-json] [--nouse-syslog] [--nowatch-log-file] [--shell_completion SHELL_COMPLETION] [--syslog-log-facility SYSLOG_LOG_FACILITY] [--use-journal] [--use-json] [--use-syslog] [--version]
                  [--watch-log-file]
  gunicorn: error: unrecognized arguments: nova.wsgi.osapi_compute:application
  [2024-11-21 15:43:14 +0000] [29] [INFO] Worker exiting (pid: 29)
  [2024-11-21 15:43:14 +0000] [26] [ERROR] Worker (pid:29) exited with code 2
  [2024-11-21 15:43:14 +0000] [26] [ERROR] Worker (pid:29) exited with code 2.

  This is due to Gunicorn not handling pyargv just like UWSGI does -
  details in https://github.com/benoitc/gunicorn/issues/2286

  One option is to do what monasca-api did -
  https://opendev.org/openstack/monasca-
  api/src/commit/c36c2c69a4227e0c1da04f3044bfa4b059a55781/monasca_api/config.py#L83

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/2089281/+subscriptions