Debian: Add temporary pmon configuration for worker

This work is part of Debian integration effot.
This work is part of allowing Standard type deployment to unlock
worker nodes.
After unlocking the worker node we observe pmon requesting a reboot
because some services are failed. Services come from packages that are
filtered out on worker node on CentOS.

On CentOS we installed personality based packages on specific
personality type nodes.
On Debian selecting what is needed for personality based packages is
done at runtime.

First packaging needs to be updated for the few pacakges that provide
pmon configuration files, then kickstarts updated to handle these at
runtime.
Add this temporary configuration until packaging is updated.

Tests on Debian:
PASS: controllers unlocked on Standard
PASS: worker node unlocked
      no restart initiated by pmon

Story: 2010211
Task: 46025
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: I01dd7525944a1de919f642df5eceb0b5386cc9af
This commit is contained in:
Dan Voiculeasa 2022-08-16 19:28:57 +03:00 committed by Dan Voiculeasa
parent d4f20f3b48
commit 0bafe84803
1 changed files with 19 additions and 0 deletions

View File

@ -2377,6 +2377,25 @@ ilog "***********************************************************************"
# Launchpad: #1983580
rm ${IMAGE_ROOTFS}/var/lib/dpkg/triggers/Unincorp
if [ ! "${controller}" = true -a "${worker}" = true ] ; then
ilog "Setting up pmon configs for standalone ${TRAIT__WORKER} personality"
ilog "This will be removed when packaging is updated"
rm ${IMAGE_ROOTFS}/etc/pmon.d/hbsAgent.conf
rm ${IMAGE_ROOTFS}/etc/pmon.d/fm-api.conf
rm ${IMAGE_ROOTFS}/etc/pmon.d/sm-api.conf
rm ${IMAGE_ROOTFS}/etc/pmon.d/sm.conf
rm ${IMAGE_ROOTFS}/etc/pmon.d/sm-watchdog.conf
rm ${IMAGE_ROOTFS}/etc/pmon.d/sw-patch-controller-daemon.conf
ln -s /dev/null ${IMAGE_ROOTFS}/etc/pmon.d/hbsAgent.conf
ln -s /dev/null ${IMAGE_ROOTFS}/etc/pmon.d/fm-api.conf
ln -s /dev/null ${IMAGE_ROOTFS}/etc/pmon.d/sm-api.conf
ln -s /dev/null ${IMAGE_ROOTFS}/etc/pmon.d/sm.conf
ln -s /dev/null ${IMAGE_ROOTFS}/etc/pmon.d/sm-watchdog.conf
ln -s /dev/null ${IMAGE_ROOTFS}/etc/pmon.d/sw-patch-controller-daemon.conf
fi
true
%end