On Thu, Apr 25, 2019, at 03:05, Lee Yarwood wrote:
On 25-04-19 17:45:19, QingFeng Hao wrote:
在 2019/4/23 15:25, QingFeng Hao 写道:
在 2019/4/23 15:08, Thomas Bechtold 写道:
Hi,
On 4/22/19 12:58 PM, QingFeng Hao wrote:
I've found this here: https://github.com/rdo-packages/placement-distgit/blob/rpm-master/openstack-... hope it can work. thanks!
That's the package from RDO (which is Fedora/RedHat specific afaik). rpm-packaging currently has no placement package yet.
Best,
Thanks Tom for your tip! I think after I built placement rpm, nova can consume it through '# WSGI apache config for nova-placement-api' in nova.spec.j2, right?
Moreover, I didn't see placement-uwsgi.ini is installed in the spec file, and placement-api service.
cat /etc/placement/placement-uwsgi.ini
[uwsgi] chmod-socket = 666 socket = /var/run/uwsgi/placement-api.socket lazy-apps = true add-header = Connection: close buffer-size = 65535 hook-master-start = unix_signal:15 gracefully_kill_them_all thunder-lock = true plugins = python enable-threads = true worker-reload-mercy = 90 exit-on-reload = false die-on-term = true master = true processes = 2 wsgi-file = /usr/local/bin/placement-api
systemctl status devstack@placement-api * devstack@placement-api.service - Devstack devstack@placement-api.service Loaded: loaded (/etc/systemd/system/devstack@placement-api.service; enabled; vendor preset: enabled) Active: active (running) since Thu 2019-04-11 06:52:22 CEST; 2 weeks 0 days ago Main PID: 656 (uwsgi) Status: "uWSGI is ready" Tasks: 3 (limit: 9394) CGroup: /system.slice/system-devstack.slice/devstack@placement-api.service |-656 placementuWSGI master |-739 placementuWSGI worker 1 `-740 placementuWSGI worker 2
So more work needs to be added into the spec file, right? thanks!
Apologies for missing this thread.
As others have already highlighted this is a RDO specific spec that makes some very opinionated choices around using mod_wsgi. As a result I don't think we would accept changes introducing uwsgi support, however that shouldn't stop you from forking this off on your own.
I think QingFeng's question was in response to Tom's mention of the rpm-packaging project[1], which maintains generic RPM spec templates, not the RDO-specific spec. If you would like to contribute a placement spec file to rpm-packaging, we would welcome it. Currently the placement subpackage in nova comes with mod_wsgi support, which may already meet your needs. If there is a need to switch to uwsgi we can discuss that. [1] https://opendev.org/openstack/rpm-packaging Colleen
Cheers,
-- Lee Yarwood A5D1 9385 88CB 7E5F BE64 6618 BCA6 6E33 F672 2D76
Attachments: * signature.asc