config/worker-utils/centos/worker-utils.spec
David Sullivan 76d3082421 Platform process pinning
Add a service to pin processes back to platform cores after
affine-platform. Previously this was done during the nova-compute
wrapper script. In kubernetes this script is not run so we need to add
a new service to pin tasks back to the platform cores.

Depends-On: https://review.openstack.org/#/c/634035/
Story: 2002843
Task: 29125
Change-Id: Ia8ccacb5546a8ea66010b024fe04ed39f9ef447d
Signed-off-by: David Sullivan <david.sullivan@windriver.com>
2019-01-30 20:27:30 +00:00

58 lines
1.3 KiB
RPMSpec

Summary: Initial worker node resource reservation and misc. utilities
Name: worker-utils
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: base
Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
Source1: LICENSE
BuildRequires: systemd-devel
Requires: systemd
Requires: python
Requires: /bin/systemctl
%description
Initial worker node resource reservation and misc. utilities
%define local_bindir /usr/bin/
%define local_etc_initd /etc/init.d/
%define local_etc_platform /etc/platform/
%define local_etc_goenabledd /etc/goenabled.d/
%define debug_package %{nil}
%prep
%setup
%build
make
%install
make install BINDIR=%{buildroot}%{local_bindir} \
INITDDIR=%{buildroot}%{local_etc_initd} \
GOENABLEDDIR=%{buildroot}%{local_etc_goenabledd} \
PLATFORMCONFDIR=%{buildroot}%{local_etc_platform} \
SYSTEMDDIR=%{buildroot}%{_unitdir}
%post
/bin/systemctl enable affine-platform.sh.service >/dev/null 2>&1
/bin/systemctl enable affine-tasks.service >/dev/null 2>&1
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{local_bindir}/*
%{local_etc_initd}/*
%{local_etc_goenabledd}/*
%config(noreplace) %{local_etc_platform}/worker_reserved.conf
%{_unitdir}/affine-platform.sh.service
%{_unitdir}/affine-tasks.service