Where is rpm-packaging spec for openstack placement?
Hi, I am trying to build openstack placement rpms on stein, I can find its related sources in https://tarballs.openstack.org/placement/, but I can't find its spec file in https://github.com/openstack/rpm-packaging, and I can only find nova.spec.j2 includes placement-api which I think isn't the case. Wher can I find placement's spec file please as from my understanding it is a seperated service in stein? Any tip is appreciated. Thanks! -- Regards QingFeng Hao
Hi, I am trying to build openstack placement rpms on stein, I can find its related sources in https://tarballs.openstack.org/placement/, but I can't find its spec file in https://github.com/openstack/rpm-packaging, and I can only find nova.spec.j2 includes placement-api which I think isn't the case. Wher can I find placement's spec file please as from my understanding it is a seperated service in stein? Any tip is appreciated. Thanks! -- Regards QingFeng Hao
I've found this here: https://github.com/rdo-packages/placement-distgit/blob/rpm-master/openstack-... hope it can work. thanks! 在 2019/4/22 13:49, QingFeng Hao 写道:
Hi, I am trying to build openstack placement rpms on stein, I can find its related sources in https://tarballs.openstack.org/placement/, but I can't find its spec file in https://github.com/openstack/rpm-packaging, and I can only find nova.spec.j2 includes placement-api which I think isn't the case. Wher can I find placement's spec file please as from my understanding it is a seperated service in stein? Any tip is appreciated. Thanks!
-- Regards QingFeng Hao
On 4/22/19 5:58 AM, QingFeng Hao wrote:
I've found this here: https://github.com/rdo-packages/placement-distgit/blob/rpm-master/openstack-... hope it can work. thanks!
I think that's probably a Github mirror of the main RDO repo: https://review.rdoproject.org/r/#/admin/projects/openstack/placement-distgit That's where you would need to go if you wanted to propose changes to the spec.
在 2019/4/22 13:49, QingFeng Hao 写道:
Hi, I am trying to build openstack placement rpms on stein, I can find its related sources in https://tarballs.openstack.org/placement/, but I can't find its spec file in https://github.com/openstack/rpm-packaging, and I can only find nova.spec.j2 includes placement-api which I think isn't the case. Wher can I find placement's spec file please as from my understanding it is a seperated service in stein? Any tip is appreciated. Thanks!
在 2019/4/23 0:36, Ben Nemec 写道:
On 4/22/19 5:58 AM, QingFeng Hao wrote:
I've found this here: https://github.com/rdo-packages/placement-distgit/blob/rpm-master/openstack-... hope it can work. thanks!
I think that's probably a Github mirror of the main RDO repo: https://review.rdoproject.org/r/#/admin/projects/openstack/placement-distgit
Thanks, and I saw there was some tiny changes on the version and history in spec file on stein-rdo branch. Anyway, placement seems depend on os-resource-classes and oslo.upgradecheck which I am also building with rdo spec.
That's where you would need to go if you wanted to propose changes to the spec.
在 2019/4/22 13:49, QingFeng Hao 写道:
Hi, I am trying to build openstack placement rpms on stein, I can find its related sources in https://tarballs.openstack.org/placement/, but I can't find its spec file in https://github.com/openstack/rpm-packaging, and I can only find nova.spec.j2 includes placement-api which I think isn't the case. Wher can I find placement's spec file please as from my understanding it is a seperated service in stein? Any tip is appreciated. Thanks!
-- Regards QingFeng Hao
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, Tom
在 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?
Tom
-- Regards QingFeng Hao
在 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!
Tom
-- Regards QingFeng Hao
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. Cheers, -- Lee Yarwood A5D1 9385 88CB 7E5F BE64 6618 BCA6 6E33 F672 2D76
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
participants (5)
-
Ben Nemec
-
Colleen Murphy
-
Lee Yarwood
-
QingFeng Hao
-
Thomas Bechtold