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 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
PASS: Launch a VM and check the events being received on the
pci-irq-affinity-agent container

Story: 2009299
Task: 44607

Signed-off-by: Thales Elero Cervi <thaleselero.cervi@windriver.com>
Change-Id: I3a1ed8a2a0b4aa8b14b42618da71e5124688f424
This commit is contained in:
Thales Elero Cervi 2022-02-24 16:09:18 -03:00
parent 4af5e3766d
commit 1fd453c007
3 changed files with 0 additions and 44 deletions

View File

@ -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

View File

@ -33,46 +33,19 @@ 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

View File

@ -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