Removing remaining pci affinity agent service code
This code is being removed as part of an effort to move the pci-irq-affinity-agent into a openstack application container, instead of a platform service. There was a previous change [1] to clean the CentOS builds from the pci affinity agent but it was reverted since it broke the Debian build. Now that the Debian related changes [2] are already merged we can bring this change back. There is still some code in this repo that will be deprecated now that the service will not run on the platform anymore and therefore needs to be removed. This change should clean the repo from unused code related to the pci-irq-affinity-agent and also ensure that the platform will no longer have this service configured and activated. TEST PLAN: PASS: Build the pci-irq-affinity-agent rpm package PASS: Build the pci-irq-affinity-agent wheels PASS: Build the new container image for the agent PASS: Build and Install a platform ISO PASS: Check that the agent service is not present on the platform PASS: Check that the python package was not installed on the platform PASS: Check that the rpm is not present on the platform Story: 2009299 Task: 44607 [1] https://review.opendev.org/c/starlingx/utilities/+/830892 [2] https://review.opendev.org/c/starlingx/utilities/+/840229 Signed-off-by: Thales Elero Cervi <thaleselero.cervi@windriver.com> Change-Id: I8b2286bff66f8e6f85dc0408459103b3b139528d
This commit is contained in:
parent
d60951d6e0
commit
a1a781ddac
@ -25,9 +25,6 @@ build-info
|
||||
# namespace-utils
|
||||
namespace-utils
|
||||
|
||||
# pci-irq-affinity-agent
|
||||
pci-irq-affinity-agent
|
||||
|
||||
# platform-util
|
||||
platform-util
|
||||
platform-util-controller
|
||||
|
@ -33,46 +33,21 @@ rm -rf *.egg-info
|
||||
%{__python} setup.py bdist_wheel
|
||||
|
||||
%install
|
||||
%{__python} setup.py install --root=%{buildroot} \
|
||||
--install-lib=%{pythonroot} \
|
||||
--prefix=/usr \
|
||||
--install-data=/usr/share \
|
||||
--single-version-externally-managed
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT/wheels
|
||||
%{__install} -m 644 dist/*.whl $RPM_BUILD_ROOT/wheels/
|
||||
|
||||
%{__install} -d -m 755 %{buildroot}%{local_etc_initd}
|
||||
%{__install} -p -D -m 755 pci-irq-affinity-agent %{buildroot}%{local_etc_initd}/pci-irq-affinity-agent
|
||||
|
||||
%{__install} -d -m 755 %{buildroot}%{local_etc_pmond}
|
||||
%{__install} -p -D -m 644 pci-irq-affinity-agent.conf %{buildroot}%{local_etc_pmond}/pci-irq-affinity-agent.conf
|
||||
%{__install} -p -D -m 644 pci-irq-affinity-agent.service %{buildroot}%{_unitdir}/pci-irq-affinity-agent.service
|
||||
|
||||
%{__install} -d %{buildroot}%{_bindir}
|
||||
%{__install} -p -D -m 755 nova-sriov %{buildroot}%{_bindir}/nova-sriov
|
||||
|
||||
%{__install} -d %{buildroot}%{_sysconfdir}/pci_irq_affinity
|
||||
%{__install} -p -D -m 600 config.ini %{buildroot}%{_sysconfdir}/pci_irq_affinity/config.ini
|
||||
|
||||
%post
|
||||
/usr/bin/systemctl enable pci-irq-affinity-agent.service >/dev/null 2>&1
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE
|
||||
%{local_etc_initd}/pci-irq-affinity-agent
|
||||
%{local_etc_pmond}/pci-irq-affinity-agent.conf
|
||||
%{_unitdir}/pci-irq-affinity-agent.service
|
||||
%{pythonroot}/pci_irq_affinity/*
|
||||
%{pythonroot}/pci_irq_affinity_agent-%{version}*.egg-info
|
||||
|
||||
%{_bindir}/pci-irq-affinity-agent
|
||||
%{_bindir}/nova-sriov
|
||||
%config(noreplace) %{_sysconfdir}/pci_irq_affinity/config.ini
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
@ -1,14 +0,0 @@
|
||||
[Unit]
|
||||
Description=StarlingX PCI Interrupt Affinity Agent
|
||||
After=sysinv-agent.service
|
||||
Before=pmon.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/etc/init.d/pci-irq-affinity-agent start
|
||||
ExecStop=/etc/init.d/pci-irq-affinity-agent stop
|
||||
PIDFile=/var/run/pci-irq-affinity-agent.pid
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user