Change compute node to worker node personality
This update replaced the compute personality & subfunction to worker, and updated internal and customer visible references. In addition, the compute-huge package has been renamed to worker-utils as it contains various scripts/services that used to affine running tasks or interface IRQ to specific CPUs. The worker_reserved.conf is now installed to /etc/platform. The cpu function 'VM' has also been renamed to 'Application'. Tests Performed: Non-containerized deployment AIO-SX: Sanity and Nightly automated test suite AIO-DX: Sanity and Nightly automated test suite 2+2 System: Sanity and Nightly automated test suite 2+2 System: Horizon Patch Orchestration Kubernetes deployment: AIO-SX: Create, delete, reboot and rebuild instances 2+2+2 System: worker nodes are unlock enable and no alarms Story: 2004022 Task: 27013 Change-Id: I0e0be6b3a6f25f7fb8edf64ea4326854513aa396 Signed-off-by: Tao Liu <tao.liu@windriver.com>
This commit is contained in:
85
workerconfig/centos/workerconfig.spec
Normal file
85
workerconfig/centos/workerconfig.spec
Normal file
@@ -0,0 +1,85 @@
|
||||
Summary: workerconfig
|
||||
Name: workerconfig
|
||||
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
|
||||
|
||||
%define debug_package %{nil}
|
||||
|
||||
Requires: systemd
|
||||
|
||||
%description
|
||||
Initial worker node configuration
|
||||
|
||||
%package -n workerconfig-standalone
|
||||
Summary: workerconfig
|
||||
Group: base
|
||||
|
||||
%description -n workerconfig-standalone
|
||||
Initial worker node configuration
|
||||
|
||||
%package -n workerconfig-subfunction
|
||||
Summary: workerconfig
|
||||
Group: base
|
||||
|
||||
%description -n workerconfig-subfunction
|
||||
Initial worker node configuration
|
||||
|
||||
%define initddir /etc/init.d/
|
||||
%define goenableddir /etc/goenabled.d/
|
||||
%define systemddir /etc/systemd/system/
|
||||
|
||||
%prep
|
||||
%setup
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
make install INITDDIR=%{buildroot}%{initddir} GOENABLEDDIR=%{buildroot}%{goenableddir} SYSTEMDDIR=%{buildroot}%{systemddir}
|
||||
|
||||
%post -n workerconfig-standalone
|
||||
if [ ! -e $D%{systemddir}/workerconfig.service ]; then
|
||||
cp $D%{systemddir}/config/workerconfig-standalone.service $D%{systemddir}/workerconfig.service
|
||||
else
|
||||
cmp -s $D%{systemddir}/config/workerconfig-standalone.service $D%{systemddir}/workerconfig.service
|
||||
if [ $? -ne 0 ]; then
|
||||
rm -f $D%{systemddir}/workerconfig.service
|
||||
cp $D%{systemddir}/config/workerconfig-standalone.service $D%{systemddir}/workerconfig.service
|
||||
fi
|
||||
fi
|
||||
systemctl enable workerconfig.service
|
||||
|
||||
|
||||
%post -n workerconfig-subfunction
|
||||
if [ ! -e $D%{systemddir}/workerconfig.service ]; then
|
||||
cp $D%{systemddir}/config/workerconfig-combined.service $D%{systemddir}/workerconfig.service
|
||||
else
|
||||
cmp -s $D%{systemddir}/config/workerconfig-combined.service $D%{systemddir}/workerconfig.service
|
||||
if [ $? -ne 0 ]; then
|
||||
rm -f $D%{systemddir}/workerconfig.service
|
||||
cp $D%{systemddir}/config/workerconfig-combined.service $D%{systemddir}/workerconfig.service
|
||||
fi
|
||||
fi
|
||||
systemctl enable workerconfig.service
|
||||
|
||||
%clean
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE
|
||||
%{initddir}/*
|
||||
|
||||
%files -n workerconfig-standalone
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{systemddir}/config
|
||||
%{systemddir}/config/workerconfig-standalone.service
|
||||
%{goenableddir}/*
|
||||
|
||||
%files -n workerconfig-subfunction
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{systemddir}/config
|
||||
%{systemddir}/config/workerconfig-combined.service
|
||||
Reference in New Issue
Block a user