Remove deprecated collect_patching.sh and collect patching.info

The sw-patch service is no longer supported and is replaced by the
software service.
From now on software service related information can be found in
/var/extra/usm.info from collect logs

https://opendev.org/starlingx/utilities/src/branch/master/tools/collector/debian-scripts/collect_usm.sh

Test Plan:
PASS Verify collect works after deleting above script

Closes-Bug: 2106403

Change-Id: I32d30c9f35d694d4768454cfe30550151587626d
Signed-off-by: rummadis <ramu.ummadishetty@windriver.com>
This commit is contained in:
rummadis 2025-04-03 10:09:31 -04:00
parent 51b5a94aa5
commit ccd3840aa3
2 changed files with 0 additions and 44 deletions

View File

@ -1,43 +0,0 @@
#! /bin/bash
#
# Copyright (c) 2013-2022 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
# Loads Up Utilities and Commands Variables
source /usr/local/sbin/collect_parms
source /usr/local/sbin/collect_utils
SERVICE="patching"
LOGFILE="${extradir}/${SERVICE}.info"
echo "${hostname}: Patching Info .....: ${LOGFILE}"
###############################################################################
# All nodes
###############################################################################
###############################################################################
# Only Controller
###############################################################################
if [ "$nodetype" = "controller" ] ; then
delimiter ${LOGFILE} "sw-patch query"
sw-patch query 2>>${COLLECT_ERROR_LOG} >> ${LOGFILE}
delimiter ${LOGFILE} "sw-patch query-hosts"
sw-patch query-hosts 2>>${COLLECT_ERROR_LOG} >> ${LOGFILE}
delimiter ${LOGFILE} "sw-patch query-hosts --debug"
sw-patch query-hosts --debug 2>>${COLLECT_ERROR_LOG} >> ${LOGFILE}
delimiter ${LOGFILE} "find /opt/patching"
find /opt/patching 2>>${COLLECT_ERROR_LOG} >> ${LOGFILE}
# todo(abailey): Verify that we can remove the next 2 lines
delimiter ${LOGFILE} "find /var/www/pages/updates"
find /var/www/pages/updates 2>>${COLLECT_ERROR_LOG} >> ${LOGFILE}
fi
exit 0

View File

@ -83,7 +83,6 @@ override_dh_auto_install:
install -m 755 -p collect_nfv_vim.sh $(SYSCONFDIR)/collect.d/collect_nfv_vim
install -m 755 -p collect_ostree.sh $(SYSCONFDIR)/collect.d/collect_ostree
install -m 755 -p collect_ovs.sh $(SYSCONFDIR)/collect.d/collect_ovs
install -m 755 -p collect_patching.sh $(SYSCONFDIR)/collect.d/collect_patching
install -m 755 -p collect_coredump.sh $(SYSCONFDIR)/collect.d/collect_coredump
install -m 755 -p collect_crash.sh $(SYSCONFDIR)/collect.d/collect_crash
install -m 755 -p collect_ima.sh $(SYSCONFDIR)/collect.d/collect_ima