| LarsErikP | hi. is there any real support for setting up apache with mod_proxy_uwsgi for glance? I can't really figure it out.. | 08:11 |
|---|---|---|
| LarsErikP | I can't see that there is any code for actually installing and setting up the uwsgi daemon at all here? The glance-api-uwsgi.ini is useless on its own? | 08:30 |
| tobias-urdin | yea, the *::wsgi::usgi just does some minor uwsgi ini configuration using a provider, it's for debian packages which depends on/configures uwsgi and reads that config file | 08:51 |
| tobias-urdin | so it doesn't actually install uwsgi and manage all that | 08:51 |
| LarsErikP | right.. but the uca packages doesn't really install uwsgi :P | 08:51 |
| tobias-urdin | yes, it's debian distro specific not debian-based specific :) | 08:53 |
| LarsErikP | ah right.. so it behaves differently in Debian, compare to Ubuntu? | 08:54 |
| LarsErikP | brilliant :P | 08:55 |
| tobias-urdin | yes, debian is maintained by zigo and ubuntu (uca) by canonical | 08:57 |
| zigo | o/ | 08:58 |
| zigo | LarsErikP: You do not need mod_proxy_uwsgi for Glance, the last Hibiscus release I did is using uwsgi directly. | 08:59 |
| zigo | However, there's a bug in uwsgi itself when you use TLS. | 08:59 |
| zigo | https://bugs.debian.org/1149707 | 09:00 |
| LarsErikP | zigo: ok, but we're running Gazpacho on Ubuntu here | 09:00 |
| zigo | LarsErikP: I've pushed an updated package over here for Trixie: https://osbpo.debian.net/debian/pool/trixie-hibiscus-backports-nochange/main/u/uwsgi/ | 09:01 |
| zigo | LarsErikP: In that case, I cannot help. I'm not Canonical support. Feel free to ask them! :) | 09:01 |
| LarsErikP | okok =) I was just trying to wrap my head around this was supposed to be done. As I found the openstack doc to be a bit.. lacking for this topic | 09:02 |
| LarsErikP | they say "use uwsgi in http mode" but not.. how :p | 09:02 |
| zigo | With Hibiscus, Glance lost support for the Eventlet based daemon, so I had no choice but to finish the fix, and understand where the uwsgi issue was. I was very surprised to find out this issue in uwsgi + TLS + chuncked transfer, but I'm very happy I have found the fix. :P | 09:03 |
| LarsErikP | great work! | 09:03 |
| zigo | BTW, IMO, using apache to serve OpenStack services is super lame. | 09:03 |
| zigo | This means that restarting apache affects all attached services. | 09:03 |
| zigo | In production, that's very annoying. | 09:04 |
| LarsErikP | yeah, but we're running all services in separate VMs, and haproxy in front. so it's fine | 09:04 |
| LarsErikP | so an apache restart only affects i.e glance on 1 of many haproxy backends | 09:05 |
| tobias-urdin | zigo: just a heads up on how we do it in production, mod_wsgi watches for timestamp changes on WSGIScriptAlias, so doing for example `touch /var/www/cgi-bin/gnocchi/app` will restart just the gnocchi api etc instead of restarting httpd, given that you want to restart the application and not restart httpd itself | 09:06 |
| * tobias-urdin goes afk | 09:06 | |
| zigo | Nice, I didn't know this was even possible. | 09:09 |
| zigo | I still think Apache is the wrong tool for the job, btw. | 09:10 |
| opendevreview | Benedikt Trefzer proposed openstack/puppet-nova master: add db connection_parameters https://review.opendev.org/c/openstack/puppet-nova/+/1008861 | 19:15 |
| opendevreview | Benedikt Trefzer proposed openstack/puppet-vswitch master: replace deprecated Facter::Core::Execution.exec, use confine https://review.opendev.org/c/openstack/puppet-vswitch/+/1006821 | 19:18 |
| opendevreview | Benedikt Trefzer proposed openstack/puppet-nova master: add db connection_parameters https://review.opendev.org/c/openstack/puppet-nova/+/1008861 | 23:50 |
Generated by irclog2html.py 4.1.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!