Skip to content

Commit

Permalink
Ensure Horizon mod_wsgi uses global WSGI subinterpreter
Browse files Browse the repository at this point in the history
Cryptography changes implemented in Rust are using PyO3, which does not support multiple subinterpreters.

To address this, the Apache configuration for Horizon has been updated to ensure that the WSGI server uses the global Python interpreter.

This change ensures compatibility with the new Rust-based cryptography implementation and prevents potential issues with request handling.

Changes:
- Updated the Horizon Helm override configuration in conf.horizon.apache inside the VirtualHost directive.

Test Plan:
- PASS: Confirm that no errors related to subinterpreters appear in Horizon logs.
- PASS: Ensure that Horizon responds with HTTP status code 200 upon accessing the main page.

Reference:
- PyO3's lack of support for subinterpreters:
  PyO3/pyo3#3451
- Related OpenStack-Helm commit:
  https://opendev.org/openstack/openstack-helm/commit/e81872d94820739398703ddf37bbe537a42a8efd

Story: 2011303
Task: 51502

Change-Id: I2d7b00719f0be17fae389c6a7326518f77be0404
Signed-off-by: Mateus Nascimento <[email protected]>
  • Loading branch information
Mateus Nascimento committed Feb 13, 2025
1 parent e52b008 commit 3c88640
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ conf:
WSGIScriptReloading On
WSGIDaemonProcess horizon-http processes=5 threads=1 user=horizon group=horizon display-name=%{GROUP} python-home=/var/lib/openstack socket-user=www-data
WSGIProcessGroup horizon-http
WSGIApplicationGroup %{GLOBAL}
WSGIScriptAlias / /var/www/cgi-bin/horizon/django.wsgi
WSGIPassAuthorization On
RewriteEngine on
Expand Down

0 comments on commit 3c88640

Please sign in to comment.