Bug fix pcp-5.3.5-5 update resolving selinux issues
Resolves: rhbz#2006430 Resolves: rhbz#2041503
This commit is contained in:
parent
0b7bdac2cc
commit
c028b7b916
9
pcp.spec
9
pcp.spec
@ -1,6 +1,6 @@
|
||||
Name: pcp
|
||||
Version: 5.3.5
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Summary: System-level performance monitoring and performance management
|
||||
License: GPLv2+ and LGPLv2+ and CC-BY
|
||||
URL: https://pcp.io
|
||||
@ -16,6 +16,7 @@ Patch4: redhat-bugzilla-2030140.patch
|
||||
Patch5: redhat-bugzilla-2024982.patch
|
||||
Patch6: redhat-bugzilla-2024980.patch
|
||||
Patch7: redhat-bugzilla-1973833.patch
|
||||
Patch8: redhat-bugzilla-2006430.patch
|
||||
|
||||
%if 0%{?fedora} >= 26 || 0%{?rhel} > 7
|
||||
%global __python2 python2
|
||||
@ -2292,6 +2293,7 @@ updated policy package.
|
||||
%patch5 -p1
|
||||
%patch6 -p1
|
||||
%patch7 -p1
|
||||
%patch8 -p1
|
||||
|
||||
%build
|
||||
# the buildsubdir macro gets defined in %setup and is apparently only available in the next step (i.e. the %build step)
|
||||
@ -3374,6 +3376,11 @@ PCP_LOG_DIR=%{_logsdir}
|
||||
%files zeroconf -f pcp-zeroconf-files.rpm
|
||||
|
||||
%changelog
|
||||
* Fri Jan 21 2022 Nathan Scott <nathans@redhat.com> - 5.3.5-5
|
||||
- Further improve pmlogger and pmie farm services (BZ 2030138)
|
||||
- Resolve a further KVM selinux issue with KVM (BZ 2006430)
|
||||
- Rebuild to use latest selinux-policy for el9 (BZ 2041503)
|
||||
|
||||
* Fri Dec 17 2021 Nathan Scott <nathans@redhat.com> - 5.3.5-4
|
||||
- pmdabcc: resolve compilation issues of some bcc PMDA modules on
|
||||
aarch64, ppc64le and s390x (BZ 2024982)
|
||||
|
32
redhat-bugzilla-2006430.patch
Normal file
32
redhat-bugzilla-2006430.patch
Normal file
@ -0,0 +1,32 @@
|
||||
commit 22ee6c04115e8a26f319be3549cd50ad81b5024a
|
||||
Author: Nathan Scott <nathans@redhat.com>
|
||||
Date: Fri Jan 21 13:08:05 2022 +1100
|
||||
|
||||
selinux: additional debugfs policy requirement for pmdakvm
|
||||
|
||||
Related to Red Hat BZ #2006430
|
||||
|
||||
diff --git a/qa/917.out.in b/qa/917.out.in
|
||||
index 9339f7436..0723565d6 100644
|
||||
--- a/qa/917.out.in
|
||||
+++ b/qa/917.out.in
|
||||
@@ -25,6 +25,7 @@ Checking policies.
|
||||
! allow [pcp_pmcd_t] [container_var_run_t] : [sock_file] { getattr write };
|
||||
allow [pcp_pmcd_t] [var_run_t] : [sock_file] { getattr write };
|
||||
allow [pcp_pmcd_t] [debugfs_t] : [file] { append getattr ioctl open read write };
|
||||
+ allow [pcp_pmcd_t] [debugfs_t] : [dir] { read };
|
||||
! allow [pcp_pmcd_t] [pcp_pmie_exec_t] : [file] { execute execute_no_trans open read map };
|
||||
allow [pcp_pmcd_t] [pcp_var_lib_t] : [fifo_file] { getattr read open unlink };
|
||||
allow [pcp_pmcd_t] [proc_kcore_t] : [file] { getattr };
|
||||
diff --git a/src/selinux/pcpupstream.te.in b/src/selinux/pcpupstream.te.in
|
||||
index 4a51b804e..20a6705d5 100644
|
||||
--- a/src/selinux/pcpupstream.te.in
|
||||
+++ b/src/selinux/pcpupstream.te.in
|
||||
@@ -144,6 +144,7 @@ allow pcp_pmcd_t var_run_t:sock_file { getattr write };
|
||||
|
||||
#type=AVC msg=audit(XXX.6): avc: denied { append getattr ioctl open read write } for pid=YYYY comm="pmdaX" name="/" dev="tracefs" ino=1 scontext=system_u:system_r:pcp_pmcd_t:s0 tcontext=system_u:object_r:debugfs_t:s0 tclass=file permissive=0
|
||||
allow pcp_pmcd_t debugfs_t:file { append getattr ioctl open read write };
|
||||
+allow pcp_pmcd_t debugfs_t:dir read;
|
||||
|
||||
#type=AVC msg=audit(XXX.7): avc: denied { execute execute_no_trans open read } for pid=YYYY comm="pmdaX" name="/" dev="tracefs" ino=1 scontext=system_u:system_r:pcp_pmcd_t:s0 tcontext=system_u:object_r:pcp_pmie_exec_t:s0 tclass=file permissive=0
|
||||
#type=AVC msg=audit(XXX.68): avc: denied { map } for pid=28290 comm="pmie" path="/usr/bin/pmie" dev="dm-0" ino=5443 scontext=system_u:system_r:pcp_pmcd_t:s0 tcontext=system_u:object_r:pcp_pmie_exec_t:s0 tclass=file permissive=0
|
@ -1,6 +1,523 @@
|
||||
diff -Naurp pcp-5.3.5.orig/qa/032 pcp-5.3.5/qa/032
|
||||
--- pcp-5.3.5.orig/qa/032 2021-11-01 13:02:26.000000000 +1100
|
||||
+++ pcp-5.3.5/qa/032 2022-01-21 10:55:30.286602172 +1100
|
||||
@@ -34,13 +34,6 @@ trap "_cleanup" 0 1 2 3 15
|
||||
|
||||
_stop_auto_restart pmcd
|
||||
|
||||
-if [ -d $PCP_LOG_DIR/pmlogger ]
|
||||
-then
|
||||
- LOGGING_DIR=$PCP_LOG_DIR/pmlogger
|
||||
-else
|
||||
- LOGGING_DIR=$PCP_LOG_DIR
|
||||
-fi
|
||||
-
|
||||
_service pcp stop | _filter_pcp_stop
|
||||
_wait_pmcd_end
|
||||
_writable_primary_logger
|
||||
@@ -48,7 +41,7 @@ _writable_primary_logger
|
||||
_service pmcd start 2>&1 | _filter_pcp_start
|
||||
_wait_for_pmcd
|
||||
_service pmlogger start 2>&1 | _filter_pcp_start
|
||||
-_wait_for_pmlogger -P $LOGGING_DIR/$LOCALHOST/pmlogger.log
|
||||
+_wait_for_pmlogger
|
||||
|
||||
# real QA test starts here
|
||||
_echo "expect this to be off"
|
||||
diff -Naurp pcp-5.3.5.orig/qa/041 pcp-5.3.5/qa/041
|
||||
--- pcp-5.3.5.orig/qa/041 2021-09-01 08:58:41.000000000 +1000
|
||||
+++ pcp-5.3.5/qa/041 2022-01-21 10:55:30.286602172 +1100
|
||||
@@ -40,12 +40,11 @@ _expect()
|
||||
echo "" | tee -a $seq.full
|
||||
}
|
||||
|
||||
+status=1
|
||||
_needclean=true
|
||||
TAG=000666000magic
|
||||
-status=1
|
||||
-[ -z "$PCP_PMLOGGERCONTROL_PATH" ] && \
|
||||
- PCP_PMLOGGERCONTROL_PATH="$PCP_SYSCONF_DIR/pmlogger/control"
|
||||
-
|
||||
+LOGGING_DIR="$PCP_ARCHIVE_DIR"
|
||||
+rm -f $seq.full
|
||||
trap "_cleanup" 0 1 2 3 15
|
||||
|
||||
_stop_auto_restart pmcd
|
||||
@@ -68,15 +67,6 @@ _cleanup()
|
||||
exit $status
|
||||
}
|
||||
|
||||
-if [ -d $PCP_LOG_DIR/pmlogger ]
|
||||
-then
|
||||
- LOGGING_DIR=$PCP_LOG_DIR/pmlogger
|
||||
-else
|
||||
- LOGGING_DIR=$PCP_LOG_DIR
|
||||
-fi
|
||||
-
|
||||
-rm -f $seq.full
|
||||
-
|
||||
# real QA test starts here
|
||||
|
||||
# disable all pmloggers ...
|
||||
diff -Naurp pcp-5.3.5.orig/qa/066 pcp-5.3.5/qa/066
|
||||
--- pcp-5.3.5.orig/qa/066 2021-02-17 15:27:41.000000000 +1100
|
||||
+++ pcp-5.3.5/qa/066 2022-01-21 10:55:30.286602172 +1100
|
||||
@@ -42,6 +42,7 @@ signal=$PCP_BINADM_DIR/pmsignal
|
||||
log=$PCP_PMCDLOG_PATH
|
||||
_needclean=true
|
||||
LOCALHOST=`hostname`
|
||||
+LOGGING_DIR="$PCP_ARCHIVE_DIR"
|
||||
|
||||
_filter_log()
|
||||
{
|
||||
@@ -80,13 +81,6 @@ interrupt()
|
||||
exit
|
||||
}
|
||||
|
||||
-if [ -d $PCP_LOG_DIR/pmlogger ]
|
||||
-then
|
||||
- LOGGING_DIR=$PCP_LOG_DIR/pmlogger
|
||||
-else
|
||||
- LOGGING_DIR=$PCP_LOG_DIR
|
||||
-fi
|
||||
-
|
||||
cleanup()
|
||||
{
|
||||
if [ $_needclean ]
|
||||
diff -Naurp pcp-5.3.5.orig/qa/067 pcp-5.3.5/qa/067
|
||||
--- pcp-5.3.5.orig/qa/067 2021-02-17 15:27:41.000000000 +1100
|
||||
+++ pcp-5.3.5/qa/067 2022-01-21 10:55:30.287602155 +1100
|
||||
@@ -31,6 +31,7 @@ trap "rm -f $tmp.*; exit" 0 1 2 3 15
|
||||
signal=$PCP_BINADM_DIR/pmsignal
|
||||
log=$PCP_PMCDLOG_PATH
|
||||
LOCALHOST=`hostname`
|
||||
+LOGGING_DIR="$PCP_ARCHIVE_DIR"
|
||||
|
||||
_filter_log()
|
||||
{
|
||||
@@ -69,13 +70,6 @@ interrupt()
|
||||
exit
|
||||
}
|
||||
|
||||
-if [ -d $PCP_LOG_DIR/pmlogger ]
|
||||
-then
|
||||
- LOGGING_DIR=$PCP_LOG_DIR/pmlogger
|
||||
-else
|
||||
- LOGGING_DIR=$PCP_LOG_DIR
|
||||
-fi
|
||||
-
|
||||
cleanup()
|
||||
{
|
||||
_restore_config $PCP_PMCDCONF_PATH
|
||||
diff -Naurp pcp-5.3.5.orig/qa/068 pcp-5.3.5/qa/068
|
||||
--- pcp-5.3.5.orig/qa/068 2019-01-13 14:14:12.000000000 +1100
|
||||
+++ pcp-5.3.5/qa/068 2022-01-21 10:55:30.287602155 +1100
|
||||
@@ -19,22 +19,11 @@ echo "QA output created by $seq"
|
||||
|
||||
_needclean=true
|
||||
LOCALHOST=`hostname`
|
||||
-
|
||||
+LOGGING_DIR="$PCP_ARCHIVE_DIR"
|
||||
trap "_cleanup" 0 1 2 3 15
|
||||
|
||||
-# don't need to regenerate config.default with pmlogconf
|
||||
-#
|
||||
-export PMLOGGER_CHECK_SKIP_LOGCONF=yes
|
||||
-
|
||||
_stop_auto_restart pmcd
|
||||
|
||||
-if [ -d $PCP_LOG_DIR/pmlogger ]
|
||||
-then
|
||||
- LOGGING_DIR=$PCP_LOG_DIR/pmlogger
|
||||
-else
|
||||
- LOGGING_DIR=$PCP_LOG_DIR
|
||||
-fi
|
||||
-
|
||||
_cleanup()
|
||||
{
|
||||
echo >>$seq.full
|
||||
diff -Naurp pcp-5.3.5.orig/qa/069 pcp-5.3.5/qa/069
|
||||
--- pcp-5.3.5.orig/qa/069 2021-11-08 09:45:56.000000000 +1100
|
||||
+++ pcp-5.3.5/qa/069 2022-01-21 10:55:30.287602155 +1100
|
||||
@@ -45,6 +45,7 @@ nconfig=$tmp.pmcd.conf.new
|
||||
log=$PCP_PMCDLOG_PATH
|
||||
LOCALHOST=`hostname`
|
||||
LOCALHOST_FULL=`pmhostname`
|
||||
+LOGGING_DIR="$PCP_ARCHIVE_DIR"
|
||||
_needclean=true
|
||||
|
||||
rm -f $seq.full
|
||||
@@ -104,13 +105,6 @@ skip > 0 { skip--; next }
|
||||
|
||||
}
|
||||
|
||||
-if [ -d $PCP_LOG_DIR/pmlogger ]
|
||||
-then
|
||||
- LOGGING_DIR=$PCP_LOG_DIR/pmlogger
|
||||
-else
|
||||
- LOGGING_DIR=$PCP_LOG_DIR
|
||||
-fi
|
||||
-
|
||||
cleanup()
|
||||
{
|
||||
if $_needclean
|
||||
diff -Naurp pcp-5.3.5.orig/qa/1055 pcp-5.3.5/qa/1055
|
||||
--- pcp-5.3.5.orig/qa/1055 2021-02-17 15:27:41.000000000 +1100
|
||||
+++ pcp-5.3.5/qa/1055 2022-01-21 10:55:30.287602155 +1100
|
||||
@@ -17,6 +17,7 @@ signal=$PCP_BINADM_DIR/pmsignal
|
||||
status=1
|
||||
done_clean=false
|
||||
LOCALHOST=`hostname`
|
||||
+LOGGING_DIR="$PCP_ARCHIVE_DIR"
|
||||
|
||||
_cleanup()
|
||||
{
|
||||
@@ -66,13 +67,7 @@ $sudo cp $tmp.tmp $PCP_PMCDCONF_PATH
|
||||
_writable_primary_logger
|
||||
_service pcp restart 2>&1 | _filter_pcp_start
|
||||
_wait_for_pmcd
|
||||
-if [ -d $PCP_LOG_DIR/pmlogger ]
|
||||
-then
|
||||
- LOGGING_DIR=$PCP_LOG_DIR/pmlogger
|
||||
-else
|
||||
- LOGGING_DIR=$PCP_LOG_DIR
|
||||
-fi
|
||||
-_wait_for_pmlogger -P $LOGGING_DIR/$LOCALHOST/pmlogger.log
|
||||
+_wait_for_pmlogger
|
||||
|
||||
# Reset pmlogger
|
||||
echo "log sample.dynamic.meta.metric"
|
||||
diff -Naurp pcp-5.3.5.orig/qa/172 pcp-5.3.5/qa/172
|
||||
--- pcp-5.3.5.orig/qa/172 2021-02-17 15:27:41.000000000 +1100
|
||||
+++ pcp-5.3.5/qa/172 2022-01-21 10:55:30.287602155 +1100
|
||||
@@ -39,6 +39,7 @@ else
|
||||
esac
|
||||
fi
|
||||
|
||||
+LOGGING_DIR="$PCP_ARCHIVE_DIR"
|
||||
LOCALHOST=`hostname`
|
||||
_needclean=true
|
||||
status=0
|
||||
@@ -48,13 +49,6 @@ _interrupt()
|
||||
status=1
|
||||
}
|
||||
|
||||
-if [ -d $PCP_LOG_DIR/pmlogger ]
|
||||
-then
|
||||
- LOGGING_DIR=$PCP_LOG_DIR/pmlogger
|
||||
-else
|
||||
- LOGGING_DIR=$PCP_LOG_DIR
|
||||
-fi
|
||||
-
|
||||
_cleanup()
|
||||
{
|
||||
if $_needclean
|
||||
diff -Naurp pcp-5.3.5.orig/qa/192 pcp-5.3.5/qa/192
|
||||
--- pcp-5.3.5.orig/qa/192 2019-01-13 14:14:12.000000000 +1100
|
||||
+++ pcp-5.3.5/qa/192 2022-01-21 10:55:30.287602155 +1100
|
||||
@@ -13,6 +13,7 @@ echo "QA output created by $seq"
|
||||
. ./common.filter
|
||||
. ./common.check
|
||||
|
||||
+LOGGING_DIR="$PCP_ARCHIVE_DIR"
|
||||
LOCALHOST=`hostname`
|
||||
_needclean=true
|
||||
status=0
|
||||
@@ -22,13 +23,6 @@ _interrupt()
|
||||
status=1
|
||||
}
|
||||
|
||||
-if [ -d $PCP_LOG_DIR/pmlogger ]
|
||||
-then
|
||||
- LOGGING_DIR=$PCP_LOG_DIR/pmlogger
|
||||
-else
|
||||
- LOGGING_DIR=$PCP_LOG_DIR
|
||||
-fi
|
||||
-
|
||||
_cleanup()
|
||||
{
|
||||
if $_needclean
|
||||
diff -Naurp pcp-5.3.5.orig/qa/220 pcp-5.3.5/qa/220
|
||||
--- pcp-5.3.5.orig/qa/220 2021-07-13 09:34:38.000000000 +1000
|
||||
+++ pcp-5.3.5/qa/220 2022-01-21 10:55:30.287602155 +1100
|
||||
@@ -18,13 +18,7 @@ which netstat >/dev/null 2>&1 || _notrun
|
||||
status=0
|
||||
clean=false
|
||||
LOCALHOST=`hostname`
|
||||
-
|
||||
-if [ -d $PCP_LOG_DIR/pmlogger ]
|
||||
-then
|
||||
- LOGGING_DIR=$PCP_LOG_DIR/pmlogger
|
||||
-else
|
||||
- LOGGING_DIR=$PCP_LOG_DIR
|
||||
-fi
|
||||
+LOGGING_DIR="$PCP_ARCHIVE_DIR"
|
||||
|
||||
_cleanup()
|
||||
{
|
||||
diff -Naurp pcp-5.3.5.orig/qa/258 pcp-5.3.5/qa/258
|
||||
--- pcp-5.3.5.orig/qa/258 2019-01-30 14:22:38.000000000 +1100
|
||||
+++ pcp-5.3.5/qa/258 2022-01-21 10:55:30.287602155 +1100
|
||||
@@ -19,6 +19,7 @@ echo "QA output created by $seq"
|
||||
signal=$PCP_BINADM_DIR/pmsignal
|
||||
status=1
|
||||
LOCALHOST=`hostname`
|
||||
+LOGGING_DIR="$PCP_ARCHIVE_DIR"
|
||||
_needclean=true
|
||||
|
||||
_interrupt()
|
||||
@@ -26,13 +27,6 @@ _interrupt()
|
||||
status=1
|
||||
}
|
||||
|
||||
-if [ -d $PCP_LOG_DIR/pmlogger ]
|
||||
-then
|
||||
- LOGGING_DIR=$PCP_LOG_DIR/pmlogger
|
||||
-else
|
||||
- LOGGING_DIR=$PCP_LOG_DIR
|
||||
-fi
|
||||
-
|
||||
_cleanup()
|
||||
{
|
||||
cd $here
|
||||
diff -Naurp pcp-5.3.5.orig/qa/279 pcp-5.3.5/qa/279
|
||||
--- pcp-5.3.5.orig/qa/279 2021-02-17 15:27:41.000000000 +1100
|
||||
+++ pcp-5.3.5/qa/279 2022-01-21 10:55:30.287602155 +1100
|
||||
@@ -17,6 +17,7 @@ echo "QA output created by $seq"
|
||||
status=1 # failure is the default!
|
||||
killer=`pwd`/src/killparent
|
||||
LOCALHOST=`hostname`
|
||||
+LOGGING_DIR="$PCP_ARCHIVE_DIR"
|
||||
_needclean=true
|
||||
|
||||
rm -f $seq.full
|
||||
@@ -76,13 +77,6 @@ _filter_pmcd()
|
||||
# end
|
||||
}
|
||||
|
||||
-if [ -d $PCP_LOG_DIR/pmlogger ]
|
||||
-then
|
||||
- LOGGING_DIR=$PCP_LOG_DIR/pmlogger
|
||||
-else
|
||||
- LOGGING_DIR=$PCP_LOG_DIR
|
||||
-fi
|
||||
-
|
||||
_save_config $PCP_PMCDCONF_PATH
|
||||
_disable_loggers
|
||||
pmafm $LOGGING_DIR/$LOCALHOST/Latest remove >$tmp.cmd 2>&1 \
|
||||
diff -Naurp pcp-5.3.5.orig/qa/280 pcp-5.3.5/qa/280
|
||||
--- pcp-5.3.5.orig/qa/280 2021-08-16 14:12:25.000000000 +1000
|
||||
+++ pcp-5.3.5/qa/280 2022-01-21 10:55:30.287602155 +1100
|
||||
@@ -13,16 +13,6 @@ echo "QA output created by $seq"
|
||||
. ./common.filter
|
||||
. ./common.check
|
||||
|
||||
-if [ -d "$PCP_ARCHIVE_DIR" ]
|
||||
-then
|
||||
- LOGGING_DIR=$PCP_ARCHIVE_DIR
|
||||
-elif [ -d $PCP_LOG_DIR/pmlogger ]
|
||||
-then
|
||||
- LOGGING_DIR=$PCP_LOG_DIR/pmlogger
|
||||
-else
|
||||
- LOGGING_DIR=$PCP_LOG_DIR
|
||||
-fi
|
||||
-
|
||||
_filter()
|
||||
{
|
||||
[ -z "$PCP_PMLOGGERCONTROL_PATH" ] && \
|
||||
@@ -52,6 +42,7 @@ _filter()
|
||||
status=1 # failure is the default!
|
||||
signal=$PCP_BINADM_DIR/pmsignal
|
||||
LOCALHOST=`hostname`
|
||||
+LOGGING_DIR="$PCP_ARCHIVE_DIR"
|
||||
trap "_cleanup; $sudo rm -f $tmp.* $LOGGING_DIR/$LOCALHOST/lock; exit \$status" 0 1 2 3 15
|
||||
|
||||
_stop_auto_restart pmcd
|
||||
diff -Naurp pcp-5.3.5.orig/qa/282 pcp-5.3.5/qa/282
|
||||
--- pcp-5.3.5.orig/qa/282 2021-02-17 15:27:41.000000000 +1100
|
||||
+++ pcp-5.3.5/qa/282 2022-01-21 10:55:30.287602155 +1100
|
||||
@@ -32,7 +32,7 @@ _needclean=true
|
||||
sleepy=false
|
||||
|
||||
LOCALHOST=`hostname`
|
||||
-LOGGING_DIR=$PCP_LOG_DIR/pmlogger
|
||||
+LOGGING_DIR="$PCP_ARCHIVE_DIR"
|
||||
CHECK=`which pmlogger_check`
|
||||
[ -z "$CHECK" -o ! -x "$CHECK" ] && \
|
||||
_notrun "Cannot find an executable pmlogger_check: \"$CHECK\""
|
||||
diff -Naurp pcp-5.3.5.orig/qa/336 pcp-5.3.5/qa/336
|
||||
--- pcp-5.3.5.orig/qa/336 2018-10-23 07:37:45.000000000 +1100
|
||||
+++ pcp-5.3.5/qa/336 2022-01-21 10:55:30.288602138 +1100
|
||||
@@ -19,6 +19,7 @@ echo "QA output created by $seq"
|
||||
signal=$PCP_BINADM_DIR/pmsignal
|
||||
status=1 # failure is the default!
|
||||
LOCALHOST=`hostname`
|
||||
+LOGGING_DIR="$PCP_ARCHIVE_DIR"
|
||||
_needclean=true
|
||||
|
||||
if [ -n "$PCP_TRACE_HOST" ]
|
||||
@@ -31,13 +32,6 @@ _interrupt()
|
||||
status=1
|
||||
}
|
||||
|
||||
-if [ -d $PCP_LOG_DIR/pmlogger ]
|
||||
-then
|
||||
- LOGGING_DIR=$PCP_LOG_DIR/pmlogger
|
||||
-else
|
||||
- LOGGING_DIR=$PCP_LOG_DIR
|
||||
-fi
|
||||
-
|
||||
_cleanup()
|
||||
{
|
||||
cd $here
|
||||
diff -Naurp pcp-5.3.5.orig/qa/854 pcp-5.3.5/qa/854
|
||||
--- pcp-5.3.5.orig/qa/854 2021-02-17 15:27:41.000000000 +1100
|
||||
+++ pcp-5.3.5/qa/854 2022-01-21 10:55:30.288602138 +1100
|
||||
@@ -17,6 +17,7 @@ signal=$PCP_BINADM_DIR/pmsignal
|
||||
status=1
|
||||
done_clean=false
|
||||
LOCALHOST=`hostname`
|
||||
+LOGGING_DIR="$PCP_ARCHIVE_DIR"
|
||||
|
||||
_cleanup()
|
||||
{
|
||||
@@ -59,20 +60,14 @@ cat <<End-of-File >$tmp.tmp
|
||||
# Installed by PCP QA test $seq on `date`
|
||||
pmcd 2 dso pmcd_init $PMDA_PMCD_PATH
|
||||
sample 29 pipe binary $PCP_PMDAS_DIR/sample/pmdasample -d 29
|
||||
-simple 253 pipe binary /var/lib/pcp/pmdas/simple/pmdasimple -d 253
|
||||
+simple 253 pipe binary $PCP_PMDAS_DIR/simple/pmdasimple -d 253
|
||||
End-of-File
|
||||
$sudo cp $tmp.tmp $PCP_PMCDCONF_PATH
|
||||
|
||||
_writable_primary_logger
|
||||
_service pcp restart 2>&1 | _filter_pcp_start
|
||||
_wait_for_pmcd
|
||||
-if [ -d $PCP_LOG_DIR/pmlogger ]
|
||||
-then
|
||||
- LOGGING_DIR=$PCP_LOG_DIR/pmlogger
|
||||
-else
|
||||
- LOGGING_DIR=$PCP_LOG_DIR
|
||||
-fi
|
||||
-_wait_for_pmlogger -P $LOGGING_DIR/$LOCALHOST/pmlogger.log
|
||||
+_wait_for_pmlogger
|
||||
|
||||
# Reset pmlogger
|
||||
echo "log sample.dynamic.meta.metric"
|
||||
diff -Naurp pcp-5.3.5.orig/qa/856 pcp-5.3.5/qa/856
|
||||
--- pcp-5.3.5.orig/qa/856 2019-01-13 14:14:12.000000000 +1100
|
||||
+++ pcp-5.3.5/qa/856 2022-01-21 10:55:30.288602138 +1100
|
||||
@@ -17,6 +17,7 @@ signal=$PCP_BINADM_DIR/pmsignal
|
||||
status=1
|
||||
done_clean=false
|
||||
LOCALHOST=`hostname`
|
||||
+LOGGING_DIR="$PCP_ARCHIVE_DIR"
|
||||
|
||||
_cleanup()
|
||||
{
|
||||
@@ -69,13 +70,7 @@ $sudo cp $tmp.tmp $PCP_PMCDCONF_PATH
|
||||
_writable_primary_logger
|
||||
_service pcp restart 2>&1 | _filter_pcp_start
|
||||
_wait_for_pmcd
|
||||
-if [ -d $PCP_LOG_DIR/pmlogger ]
|
||||
-then
|
||||
- LOGGING_DIR=$PCP_LOG_DIR/pmlogger
|
||||
-else
|
||||
- LOGGING_DIR=$PCP_LOG_DIR
|
||||
-fi
|
||||
-_wait_for_pmlogger -P $LOGGING_DIR/$LOCALHOST/pmlogger.log
|
||||
+_wait_for_pmlogger
|
||||
|
||||
# Reset pmlogger
|
||||
echo "log sample.dynamic.meta.metric"
|
||||
diff -Naurp pcp-5.3.5.orig/qa/882 pcp-5.3.5/qa/882
|
||||
--- pcp-5.3.5.orig/qa/882 2019-01-13 14:14:12.000000000 +1100
|
||||
+++ pcp-5.3.5/qa/882 2022-01-21 10:55:30.288602138 +1100
|
||||
@@ -17,6 +17,7 @@ signal=$PCP_BINADM_DIR/pmsignal
|
||||
status=1
|
||||
done_clean=false
|
||||
LOCALHOST=`hostname`
|
||||
+LOGGING_DIR="$PCP_ARCHIVE_DIR"
|
||||
|
||||
_cleanup()
|
||||
{
|
||||
@@ -69,13 +70,7 @@ $sudo cp $tmp.tmp $PCP_PMCDCONF_PATH
|
||||
_writable_primary_logger
|
||||
_service pcp restart 2>&1 | _filter_pcp_start
|
||||
_wait_for_pmcd
|
||||
-if [ -d $PCP_LOG_DIR/pmlogger ]
|
||||
-then
|
||||
- LOGGING_DIR=$PCP_LOG_DIR/pmlogger
|
||||
-else
|
||||
- LOGGING_DIR=$PCP_LOG_DIR
|
||||
-fi
|
||||
-_wait_for_pmlogger -P $LOGGING_DIR/$LOCALHOST/pmlogger.log
|
||||
+_wait_for_pmlogger
|
||||
|
||||
# Reset pmlogger
|
||||
echo "log sample.dynamic.meta.metric"
|
||||
diff -Naurp pcp-5.3.5.orig/qa/932 pcp-5.3.5/qa/932
|
||||
--- pcp-5.3.5.orig/qa/932 2021-02-17 15:27:41.000000000 +1100
|
||||
+++ pcp-5.3.5/qa/932 2022-01-21 10:55:30.288602138 +1100
|
||||
@@ -17,6 +17,7 @@ signal=$PCP_BINADM_DIR/pmsignal
|
||||
status=1
|
||||
done_clean=false
|
||||
LOCALHOST=`hostname`
|
||||
+LOGGING_DIR="$PCP_ARCHIVE_DIR"
|
||||
|
||||
_cleanup()
|
||||
{
|
||||
@@ -67,13 +68,7 @@ $sudo cp $tmp.tmp $PCP_PMCDCONF_PATH
|
||||
_writable_primary_logger
|
||||
_service pcp restart 2>&1 | _filter_pcp_start
|
||||
_wait_for_pmcd
|
||||
-if [ -d $PCP_LOG_DIR/pmlogger ]
|
||||
-then
|
||||
- LOGGING_DIR=$PCP_LOG_DIR/pmlogger
|
||||
-else
|
||||
- LOGGING_DIR=$PCP_LOG_DIR
|
||||
-fi
|
||||
-_wait_for_pmlogger -P $LOGGING_DIR/$LOCALHOST/pmlogger.log
|
||||
+_wait_for_pmlogger
|
||||
|
||||
# Reset pmlogger
|
||||
echo "log sample.dynamic.meta.metric"
|
||||
diff -Naurp pcp-5.3.5.orig/qa/common.check pcp-5.3.5/qa/common.check
|
||||
--- pcp-5.3.5.orig/qa/common.check 2021-11-05 09:54:05.000000000 +1100
|
||||
+++ pcp-5.3.5/qa/common.check 2022-01-21 10:55:30.288602138 +1100
|
||||
@@ -262,7 +262,7 @@ _service()
|
||||
# good reason for this)
|
||||
# ditto for pmlogger_daily and pmlogger_daily-poll
|
||||
#
|
||||
- for svc in pmlogger_check pmlogger_daily pmlogger_daily-poll
|
||||
+ for svc in pmlogger_check pmlogger_daily pmlogger_farm_check pmlogger_daily-poll
|
||||
do
|
||||
if systemctl show --property=ActiveState $svc.timer 2>&1 \
|
||||
| grep '=active$' >/dev/null
|
||||
@@ -1940,9 +1940,11 @@ _remove_job_scheduler()
|
||||
$rc_sudo rm -f $rc_cron_backup $rc_systemd_state
|
||||
|
||||
if systemctl cat pmie_daily.timer >/dev/null 2>&1; then
|
||||
- for i in pmie.service pmie_daily.timer pmie_check.timer pmlogger_daily.timer \
|
||||
+ for i in pmie.service pmie_daily.timer \
|
||||
+ pmie_check.timer pmie_farm_check.timer \
|
||||
pmlogger_daily_report.timer pmlogger_daily_report-poll.timer \
|
||||
- pmlogger_daily-poll.timer pmlogger_check.timer ; do
|
||||
+ pmlogger_daily-poll.timer pmlogger_daily.timer \
|
||||
+ pmlogger_check.timer pmlogger_farm_check.timer ; do
|
||||
$rc_sudo systemctl is-active "$i" > /dev/null || continue
|
||||
$rc_sudo systemctl stop $i >/dev/null
|
||||
echo "$i" >> $rc_systemd_state
|
||||
diff -Naurp pcp-5.3.5.orig/src/pmie/GNUmakefile pcp-5.3.5/src/pmie/GNUmakefile
|
||||
--- pcp-5.3.5.orig/src/pmie/GNUmakefile 2021-11-09 10:50:58.000000000 +1100
|
||||
+++ pcp-5.3.5/src/pmie/GNUmakefile 2021-12-15 16:51:51.306200748 +1100
|
||||
+++ pcp-5.3.5/src/pmie/GNUmakefile 2022-01-21 10:55:54.918186303 +1100
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
-# Copyright (c) 2013-2015,2020-2021 Red Hat.
|
||||
+# Copyright (c) 2013-2015,2020-2022 Red Hat.
|
||||
# Copyright (c) 2000,2004 Silicon Graphics, Inc. All Rights Reserved.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify it
|
||||
@@ -84,7 +84,6 @@ pmie.service : pmie.service.in
|
||||
|
||||
pmie_farm.service : pmie_farm.service.in
|
||||
@ -9,20 +526,71 @@ diff -Naurp pcp-5.3.5.orig/src/pmie/GNUmakefile pcp-5.3.5/src/pmie/GNUmakefile
|
||||
-e 's;@PCP_SYSCONFIG_DIR@;'$(PCP_SYSCONFIG_DIR)';' \
|
||||
-e 's;@PCP_BINADM_DIR@;'$(PCP_BINADM_DIR)';' \
|
||||
-e 's;@PCP_VAR_DIR@;'$(PCP_VAR_DIR)';' \
|
||||
@@ -95,7 +94,9 @@ pmie_farm.service : pmie_farm.service.in
|
||||
@@ -95,7 +94,10 @@ pmie_farm.service : pmie_farm.service.in
|
||||
|
||||
pmie_farm_check.service : pmie_farm_check.service.in
|
||||
$(SED) <$< >$@ \
|
||||
+ -e 's;@CRONTAB_PATH@;'$(CRONTAB_PATH)';' \
|
||||
-e 's;@PCP_BIN_DIR@;'$(PCP_BIN_DIR)';' \
|
||||
+ -e 's;@PCP_VAR_DIR@;'$(PCP_VAR_DIR)';' \
|
||||
+ -e 's;@SD_SERVICE_TYPE@;'$(SD_SERVICE_TYPE)';' \
|
||||
# END
|
||||
|
||||
pmie_check.service : pmie_check.service.in
|
||||
diff -Naurp pcp-5.3.5.orig/src/pmie/pmie_check.service.in pcp-5.3.5/src/pmie/pmie_check.service.in
|
||||
--- pcp-5.3.5.orig/src/pmie/pmie_check.service.in 2021-11-04 08:26:15.000000000 +1100
|
||||
+++ pcp-5.3.5/src/pmie/pmie_check.service.in 2022-01-21 10:55:30.288602138 +1100
|
||||
@@ -2,7 +2,6 @@
|
||||
Description=Check PMIE instances are running
|
||||
Documentation=man:pmie_check(1)
|
||||
ConditionPathExists=!@CRONTAB_PATH@
|
||||
-PartOf=pmie.service
|
||||
|
||||
[Service]
|
||||
Type=@SD_SERVICE_TYPE@
|
||||
@@ -15,6 +14,3 @@ ExecStart=@PCP_BINADM_DIR@/pmie_check $P
|
||||
WorkingDirectory=@PCP_VAR_DIR@
|
||||
Group=@PCP_GROUP@
|
||||
User=@PCP_USER@
|
||||
-
|
||||
-[Install]
|
||||
-RequiredBy=pmie.service
|
||||
diff -Naurp pcp-5.3.5.orig/src/pmie/pmie_check.timer pcp-5.3.5/src/pmie/pmie_check.timer
|
||||
--- pcp-5.3.5.orig/src/pmie/pmie_check.timer 2021-02-17 15:27:41.000000000 +1100
|
||||
+++ pcp-5.3.5/src/pmie/pmie_check.timer 2022-01-21 10:55:30.288602138 +1100
|
||||
@@ -1,6 +1,5 @@
|
||||
[Unit]
|
||||
Description=Half-hourly check of PMIE instances
|
||||
-PartOf=pmie.service
|
||||
|
||||
[Timer]
|
||||
# if enabled, runs 1m after boot and every half hour
|
||||
diff -Naurp pcp-5.3.5.orig/src/pmie/pmie_daily.service.in pcp-5.3.5/src/pmie/pmie_daily.service.in
|
||||
--- pcp-5.3.5.orig/src/pmie/pmie_daily.service.in 2021-10-07 14:28:56.000000000 +1100
|
||||
+++ pcp-5.3.5/src/pmie/pmie_daily.service.in 2022-01-21 10:55:30.288602138 +1100
|
||||
@@ -6,6 +6,7 @@ ConditionPathExists=!@CRONTAB_PATH@
|
||||
[Service]
|
||||
Type=@SD_SERVICE_TYPE@
|
||||
Restart=no
|
||||
+TimeoutStartSec=1h
|
||||
Environment="PMIE_DAILY_PARAMS=-X xz -x 3"
|
||||
EnvironmentFile=-@PCP_SYSCONFIG_DIR@/pmie_timers
|
||||
ExecStart=@PCP_BINADM_DIR@/pmie_daily $PMIE_DAILY_PARAMS
|
||||
diff -Naurp pcp-5.3.5.orig/src/pmie/pmie_daily.timer pcp-5.3.5/src/pmie/pmie_daily.timer
|
||||
--- pcp-5.3.5.orig/src/pmie/pmie_daily.timer 2019-02-20 18:03:00.000000000 +1100
|
||||
+++ pcp-5.3.5/src/pmie/pmie_daily.timer 2022-01-21 10:55:30.288602138 +1100
|
||||
@@ -2,6 +2,7 @@
|
||||
Description=Daily processing of PMIE logs
|
||||
|
||||
[Timer]
|
||||
+Persistent=true
|
||||
OnCalendar=*-*-* 00:08:00
|
||||
|
||||
[Install]
|
||||
diff -Naurp pcp-5.3.5.orig/src/pmie/pmie_farm_check.service.in pcp-5.3.5/src/pmie/pmie_farm_check.service.in
|
||||
--- pcp-5.3.5.orig/src/pmie/pmie_farm_check.service.in 2021-11-09 10:50:58.000000000 +1100
|
||||
+++ pcp-5.3.5/src/pmie/pmie_farm_check.service.in 2021-12-15 16:51:51.306200748 +1100
|
||||
@@ -1,7 +1,7 @@
|
||||
+++ pcp-5.3.5/src/pmie/pmie_farm_check.service.in 2022-01-21 10:55:54.918186303 +1100
|
||||
@@ -1,19 +1,15 @@
|
||||
[Unit]
|
||||
-Description=Check and migrate non-primary pmie instances to pmie_farm
|
||||
-Documentation=man:pmie_check(1)
|
||||
@ -32,8 +600,9 @@ diff -Naurp pcp-5.3.5.orig/src/pmie/pmie_farm_check.service.in pcp-5.3.5/src/pmi
|
||||
+ConditionPathExists=!@CRONTAB_PATH@
|
||||
|
||||
[Service]
|
||||
Type=exec
|
||||
@@ -9,8 +9,7 @@ Restart=no
|
||||
-Type=exec
|
||||
+Type=@SD_SERVICE_TYPE@
|
||||
Restart=no
|
||||
TimeoutStartSec=4h
|
||||
TimeoutStopSec=120
|
||||
ExecStart=@PCP_BIN_DIR@/pmiectl -m check
|
||||
@ -43,9 +612,12 @@ diff -Naurp pcp-5.3.5.orig/src/pmie/pmie_farm_check.service.in pcp-5.3.5/src/pmi
|
||||
# root so pmiectl can migrate pmie processes to the pmie_farm service
|
||||
Group=root
|
||||
User=root
|
||||
-
|
||||
-[Install]
|
||||
-RequiredBy=pmie_farm.service
|
||||
diff -Naurp pcp-5.3.5.orig/src/pmie/pmie_farm_check.timer pcp-5.3.5/src/pmie/pmie_farm_check.timer
|
||||
--- pcp-5.3.5.orig/src/pmie/pmie_farm_check.timer 2021-11-04 08:26:15.000000000 +1100
|
||||
+++ pcp-5.3.5/src/pmie/pmie_farm_check.timer 2021-12-15 16:51:49.649229430 +1100
|
||||
+++ pcp-5.3.5/src/pmie/pmie_farm_check.timer 2022-01-21 10:49:07.985980678 +1100
|
||||
@@ -1,10 +1,11 @@
|
||||
[Unit]
|
||||
-Description=5 minute check of pmie farm instances
|
||||
@ -63,8 +635,8 @@ diff -Naurp pcp-5.3.5.orig/src/pmie/pmie_farm_check.timer pcp-5.3.5/src/pmie/pmi
|
||||
WantedBy=timers.target
|
||||
diff -Naurp pcp-5.3.5.orig/src/pmie/pmie_farm.service.in pcp-5.3.5/src/pmie/pmie_farm.service.in
|
||||
--- pcp-5.3.5.orig/src/pmie/pmie_farm.service.in 2021-11-04 08:26:15.000000000 +1100
|
||||
+++ pcp-5.3.5/src/pmie/pmie_farm.service.in 2021-12-15 16:51:51.306200748 +1100
|
||||
@@ -1,9 +1,8 @@
|
||||
+++ pcp-5.3.5/src/pmie/pmie_farm.service.in 2022-01-21 10:49:07.986980661 +1100
|
||||
@@ -1,9 +1,9 @@
|
||||
[Unit]
|
||||
Description=pmie farm service
|
||||
-Documentation=man:pmie(1)
|
||||
@ -74,10 +646,11 @@ diff -Naurp pcp-5.3.5.orig/src/pmie/pmie_farm.service.in pcp-5.3.5/src/pmie/pmie
|
||||
+Documentation=man:pmie_check(1)
|
||||
+Before=pmie_farm_check.timer
|
||||
+BindsTo=pmie_farm_check.timer
|
||||
+PartOf=pmie.service
|
||||
|
||||
[Service]
|
||||
Type=@SD_SERVICE_TYPE@
|
||||
@@ -15,13 +14,9 @@ TimeoutStopSec=120
|
||||
@@ -15,13 +15,9 @@ TimeoutStopSec=120
|
||||
Environment="PMIE_CHECK_PARAMS=--skip-primary"
|
||||
EnvironmentFile=-@PCP_SYSCONFIG_DIR@/pmie_timers
|
||||
ExecStart=@PCP_BINADM_DIR@/pmie_farm $PMIE_CHECK_PARAMS
|
||||
@ -92,9 +665,44 @@ diff -Naurp pcp-5.3.5.orig/src/pmie/pmie_farm.service.in pcp-5.3.5/src/pmie/pmie
|
||||
-# This dependency will be removed in PCPv6.
|
||||
-WantedBy=pmie.service
|
||||
+RequiredBy=pmie.service
|
||||
diff -Naurp pcp-5.3.5.orig/src/pmie/pmie_farm.sh pcp-5.3.5/src/pmie/pmie_farm.sh
|
||||
--- pcp-5.3.5.orig/src/pmie/pmie_farm.sh 2021-11-05 17:02:47.000000000 +1100
|
||||
+++ pcp-5.3.5/src/pmie/pmie_farm.sh 2022-01-21 10:49:07.986980661 +1100
|
||||
@@ -12,8 +12,8 @@
|
||||
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# for more details.
|
||||
#
|
||||
-# Administrative script to start the pmlogger_farm service.
|
||||
-# All arguments to pmlogger_check are passed from pmlogger_farm.service.
|
||||
+# Administrative script to start the pmie_farm service.
|
||||
+# All arguments to pmie_check are passed from pmie_farm.service.
|
||||
#
|
||||
. $PCP_DIR/etc/pcp.env
|
||||
|
||||
diff -Naurp pcp-5.3.5.orig/src/pmie/pmie.service.in pcp-5.3.5/src/pmie/pmie.service.in
|
||||
--- pcp-5.3.5.orig/src/pmie/pmie.service.in 2021-02-22 11:32:05.000000000 +1100
|
||||
+++ pcp-5.3.5/src/pmie/pmie.service.in 2022-01-21 10:49:07.986980661 +1100
|
||||
@@ -2,8 +2,8 @@
|
||||
Description=Performance Metrics Inference Engine
|
||||
Documentation=man:pmie(1)
|
||||
After=network-online.target pmcd.service
|
||||
-Before=pmie_check.timer pmie_daily.timer
|
||||
-BindsTo=pmie_check.timer pmie_daily.timer
|
||||
+Before=pmie_farm.service pmie_check.timer pmie_daily.timer
|
||||
+BindsTo=pmie_farm.service pmie_check.timer pmie_daily.timer
|
||||
Wants=pmcd.service
|
||||
|
||||
[Service]
|
||||
diff -Naurp pcp-5.3.5.orig/src/pmlogger/GNUmakefile pcp-5.3.5/src/pmlogger/GNUmakefile
|
||||
--- pcp-5.3.5.orig/src/pmlogger/GNUmakefile 2021-11-09 09:08:40.000000000 +1100
|
||||
+++ pcp-5.3.5/src/pmlogger/GNUmakefile 2021-12-15 16:51:51.306200748 +1100
|
||||
+++ pcp-5.3.5/src/pmlogger/GNUmakefile 2022-01-21 10:55:54.918186303 +1100
|
||||
@@ -1,5 +1,5 @@
|
||||
#
|
||||
-# Copyright (c) 2013-2021 Red Hat.
|
||||
+# Copyright (c) 2013-2022 Red Hat.
|
||||
# Copyright (c) 2000,2004 Silicon Graphics, Inc. All Rights Reserved.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify it
|
||||
@@ -99,7 +99,6 @@ pmlogger.service : pmlogger.service.in
|
||||
|
||||
pmlogger_farm.service : pmlogger_farm.service.in
|
||||
@ -103,20 +711,41 @@ diff -Naurp pcp-5.3.5.orig/src/pmlogger/GNUmakefile pcp-5.3.5/src/pmlogger/GNUma
|
||||
-e 's;@PCP_SYSCONFIG_DIR@;'$(PCP_SYSCONFIG_DIR)';' \
|
||||
-e 's;@PCP_BINADM_DIR@;'$(PCP_BINADM_DIR)';' \
|
||||
-e 's;@PCP_VAR_DIR@;'$(PCP_VAR_DIR)';' \
|
||||
@@ -110,7 +109,9 @@ pmlogger_farm.service : pmlogger_farm.se
|
||||
@@ -110,7 +109,10 @@ pmlogger_farm.service : pmlogger_farm.se
|
||||
|
||||
pmlogger_farm_check.service : pmlogger_farm_check.service.in
|
||||
$(SED) <$< >$@ \
|
||||
+ -e 's;@CRONTAB_PATH@;'$(CRONTAB_PATH)';' \
|
||||
-e 's;@PCP_BIN_DIR@;'$(PCP_BIN_DIR)';' \
|
||||
+ -e 's;@PCP_VAR_DIR@;'$(PCP_VAR_DIR)';' \
|
||||
+ -e 's;@SD_SERVICE_TYPE@;'$(SD_SERVICE_TYPE)';' \
|
||||
# END
|
||||
|
||||
pmlogger_daily.service : pmlogger_daily.service.in
|
||||
diff -Naurp pcp-5.3.5.orig/src/pmlogger/pmlogger_check.service.in pcp-5.3.5/src/pmlogger/pmlogger_check.service.in
|
||||
--- pcp-5.3.5.orig/src/pmlogger/pmlogger_check.service.in 2021-11-04 08:26:15.000000000 +1100
|
||||
+++ pcp-5.3.5/src/pmlogger/pmlogger_check.service.in 2022-01-21 10:55:30.289602121 +1100
|
||||
@@ -15,6 +15,3 @@ ExecStart=@PCP_BINADM_DIR@/pmlogger_chec
|
||||
WorkingDirectory=@PCP_VAR_DIR@
|
||||
Group=@PCP_GROUP@
|
||||
User=@PCP_USER@
|
||||
-
|
||||
-[Install]
|
||||
-RequiredBy=pmlogger.service
|
||||
diff -Naurp pcp-5.3.5.orig/src/pmlogger/pmlogger_daily_report.service.in pcp-5.3.5/src/pmlogger/pmlogger_daily_report.service.in
|
||||
--- pcp-5.3.5.orig/src/pmlogger/pmlogger_daily_report.service.in 2021-10-07 14:28:56.000000000 +1100
|
||||
+++ pcp-5.3.5/src/pmlogger/pmlogger_daily_report.service.in 2022-01-21 10:55:30.289602121 +1100
|
||||
@@ -13,6 +13,3 @@ ExecStart=@PCP_BINADM_DIR@/pmlogger_dail
|
||||
WorkingDirectory=@PCP_VAR_DIR@
|
||||
Group=@PCP_GROUP@
|
||||
User=@PCP_USER@
|
||||
-
|
||||
-[Install]
|
||||
-WantedBy=pmlogger.service
|
||||
diff -Naurp pcp-5.3.5.orig/src/pmlogger/pmlogger_farm_check.service.in pcp-5.3.5/src/pmlogger/pmlogger_farm_check.service.in
|
||||
--- pcp-5.3.5.orig/src/pmlogger/pmlogger_farm_check.service.in 2021-11-09 09:08:40.000000000 +1100
|
||||
+++ pcp-5.3.5/src/pmlogger/pmlogger_farm_check.service.in 2021-12-15 16:51:51.307200731 +1100
|
||||
@@ -1,7 +1,7 @@
|
||||
+++ pcp-5.3.5/src/pmlogger/pmlogger_farm_check.service.in 2022-01-21 10:55:54.918186303 +1100
|
||||
@@ -1,19 +1,15 @@
|
||||
[Unit]
|
||||
-Description=Check and migrate non-primary pmlogger instances to pmlogger_farm
|
||||
-Documentation=man:pmlogger_check(1)
|
||||
@ -126,8 +755,9 @@ diff -Naurp pcp-5.3.5.orig/src/pmlogger/pmlogger_farm_check.service.in pcp-5.3.5
|
||||
+ConditionPathExists=!@CRONTAB_PATH@
|
||||
|
||||
[Service]
|
||||
Type=exec
|
||||
@@ -9,9 +9,8 @@ Restart=no
|
||||
-Type=exec
|
||||
+Type=@SD_SERVICE_TYPE@
|
||||
Restart=no
|
||||
TimeoutStartSec=4h
|
||||
TimeoutStopSec=120
|
||||
ExecStart=@PCP_BIN_DIR@/pmlogctl -m check
|
||||
@ -138,10 +768,12 @@ diff -Naurp pcp-5.3.5.orig/src/pmlogger/pmlogger_farm_check.service.in pcp-5.3.5
|
||||
+# root so pmlogctl can migrate pmlogger processes to the pmlogger_farm service
|
||||
Group=root
|
||||
User=root
|
||||
|
||||
-
|
||||
-[Install]
|
||||
-RequiredBy=pmlogger_farm.service
|
||||
diff -Naurp pcp-5.3.5.orig/src/pmlogger/pmlogger_farm_check.timer pcp-5.3.5/src/pmlogger/pmlogger_farm_check.timer
|
||||
--- pcp-5.3.5.orig/src/pmlogger/pmlogger_farm_check.timer 2021-11-04 08:26:15.000000000 +1100
|
||||
+++ pcp-5.3.5/src/pmlogger/pmlogger_farm_check.timer 2021-12-15 16:51:49.649229430 +1100
|
||||
+++ pcp-5.3.5/src/pmlogger/pmlogger_farm_check.timer 2022-01-21 10:49:07.986980661 +1100
|
||||
@@ -1,10 +1,11 @@
|
||||
[Unit]
|
||||
-Description=5 minute check of pmlogger farm instances
|
||||
@ -159,8 +791,8 @@ diff -Naurp pcp-5.3.5.orig/src/pmlogger/pmlogger_farm_check.timer pcp-5.3.5/src/
|
||||
WantedBy=timers.target
|
||||
diff -Naurp pcp-5.3.5.orig/src/pmlogger/pmlogger_farm.service.in pcp-5.3.5/src/pmlogger/pmlogger_farm.service.in
|
||||
--- pcp-5.3.5.orig/src/pmlogger/pmlogger_farm.service.in 2021-11-04 08:26:15.000000000 +1100
|
||||
+++ pcp-5.3.5/src/pmlogger/pmlogger_farm.service.in 2021-12-15 16:51:51.306200748 +1100
|
||||
@@ -1,9 +1,8 @@
|
||||
+++ pcp-5.3.5/src/pmlogger/pmlogger_farm.service.in 2022-01-21 10:55:30.289602121 +1100
|
||||
@@ -1,9 +1,9 @@
|
||||
[Unit]
|
||||
Description=pmlogger farm service
|
||||
-Documentation=man:pmlogger(1)
|
||||
@ -170,11 +802,16 @@ diff -Naurp pcp-5.3.5.orig/src/pmlogger/pmlogger_farm.service.in pcp-5.3.5/src/p
|
||||
+Documentation=man:pmlogger_check(1)
|
||||
+Before=pmlogger_farm_check.timer
|
||||
+BindsTo=pmlogger_farm_check.timer
|
||||
+PartOf=pmlogger.service
|
||||
|
||||
[Service]
|
||||
Type=@SD_SERVICE_TYPE@
|
||||
@@ -15,13 +14,9 @@ TimeoutStopSec=120
|
||||
Environment="PMLOGGER_CHECK_PARAMS=--skip-primary"
|
||||
@@ -12,16 +12,12 @@ Restart=always
|
||||
TimeoutStartSec=4h
|
||||
TimeoutStopSec=120
|
||||
# the pmlogger_farm service manages all pmloggers except the primary
|
||||
-Environment="PMLOGGER_CHECK_PARAMS=--skip-primary"
|
||||
+Environment="PMLOGGER_CHECK_PARAMS=--skip-primary --quick"
|
||||
EnvironmentFile=-@PCP_SYSCONFIG_DIR@/pmlogger_timers
|
||||
ExecStart=@PCP_BINADM_DIR@/pmlogger_farm $PMLOGGER_CHECK_PARAMS
|
||||
-
|
||||
@ -188,111 +825,9 @@ diff -Naurp pcp-5.3.5.orig/src/pmlogger/pmlogger_farm.service.in pcp-5.3.5/src/p
|
||||
-# This dependency will be removed in PCPv6.
|
||||
-WantedBy=pmlogger.service
|
||||
+RequiredBy=pmlogger.service
|
||||
commit 7d6e266d0a15ba0fd0894a059257a502f19b7fe9
|
||||
Author: Nathan Scott <nathans@redhat.com>
|
||||
Date: Thu Dec 16 17:38:33 2021 +1100
|
||||
|
||||
pmlogger/pmie farms: further consistency changes and hard dep fix
|
||||
|
||||
Several inconsistencies between various pmie/pmlogger systemd units
|
||||
resolved. Most importantly, add BindsTo lines to ensure the farms
|
||||
get started and stopped along with the underlying service, always.
|
||||
|
||||
diff --git a/src/pmie/pmie.service.in b/src/pmie/pmie.service.in
|
||||
index d234c8a5e5..d659c39c65 100644
|
||||
--- a/src/pmie/pmie.service.in
|
||||
+++ b/src/pmie/pmie.service.in
|
||||
@@ -2,8 +2,8 @@
|
||||
Description=Performance Metrics Inference Engine
|
||||
Documentation=man:pmie(1)
|
||||
After=network-online.target pmcd.service
|
||||
-Before=pmie_check.timer pmie_daily.timer
|
||||
-BindsTo=pmie_check.timer pmie_daily.timer
|
||||
+Before=pmie_farm.service pmie_check.timer pmie_daily.timer
|
||||
+BindsTo=pmie_farm.service pmie_check.timer pmie_daily.timer
|
||||
Wants=pmcd.service
|
||||
|
||||
[Service]
|
||||
diff --git a/src/pmie/pmie_daily.service.in b/src/pmie/pmie_daily.service.in
|
||||
index e93446ce83..ca49945905 100644
|
||||
--- a/src/pmie/pmie_daily.service.in
|
||||
+++ b/src/pmie/pmie_daily.service.in
|
||||
@@ -2,13 +2,18 @@
|
||||
Description=Process PMIE logs
|
||||
Documentation=man:pmie_daily(1)
|
||||
ConditionPathExists=!@CRONTAB_PATH@
|
||||
+PartOf=pmie.service
|
||||
|
||||
[Service]
|
||||
Type=@SD_SERVICE_TYPE@
|
||||
Restart=no
|
||||
+TimeoutStartSec=1h
|
||||
Environment="PMIE_DAILY_PARAMS=-X xz -x 3"
|
||||
EnvironmentFile=-@PCP_SYSCONFIG_DIR@/pmie_timers
|
||||
ExecStart=@PCP_BINADM_DIR@/pmie_daily $PMIE_DAILY_PARAMS
|
||||
WorkingDirectory=@PCP_VAR_DIR@
|
||||
Group=@PCP_GROUP@
|
||||
User=@PCP_USER@
|
||||
+
|
||||
+[Install]
|
||||
+RequiredBy=pmie.service
|
||||
diff --git a/src/pmie/pmie_daily.timer b/src/pmie/pmie_daily.timer
|
||||
index 42b86333be..67742a070e 100644
|
||||
--- a/src/pmie/pmie_daily.timer
|
||||
+++ b/src/pmie/pmie_daily.timer
|
||||
@@ -1,7 +1,9 @@
|
||||
[Unit]
|
||||
Description=Daily processing of PMIE logs
|
||||
+PartOf=pmie.service
|
||||
|
||||
[Timer]
|
||||
+Persistent=true
|
||||
OnCalendar=*-*-* 00:08:00
|
||||
|
||||
[Install]
|
||||
diff --git a/src/pmie/pmie_farm.service.in b/src/pmie/pmie_farm.service.in
|
||||
index 0f7e7e46b8..e119388b4b 100644
|
||||
--- a/src/pmie/pmie_farm.service.in
|
||||
+++ b/src/pmie/pmie_farm.service.in
|
||||
@@ -3,6 +3,7 @@ Description=pmie farm service
|
||||
Documentation=man:pmie_check(1)
|
||||
Before=pmie_farm_check.timer
|
||||
BindsTo=pmie_farm_check.timer
|
||||
+PartOf=pmie.service
|
||||
|
||||
[Service]
|
||||
Type=@SD_SERVICE_TYPE@
|
||||
diff --git a/src/pmie/pmie_farm.sh b/src/pmie/pmie_farm.sh
|
||||
index f2771ad43b..400e790cae 100644
|
||||
--- a/src/pmie/pmie_farm.sh
|
||||
+++ b/src/pmie/pmie_farm.sh
|
||||
@@ -12,8 +12,8 @@
|
||||
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
# for more details.
|
||||
#
|
||||
-# Administrative script to start the pmlogger_farm service.
|
||||
-# All arguments to pmlogger_check are passed from pmlogger_farm.service.
|
||||
+# Administrative script to start the pmie_farm service.
|
||||
+# All arguments to pmie_check are passed from pmie_farm.service.
|
||||
#
|
||||
. $PCP_DIR/etc/pcp.env
|
||||
|
||||
diff --git a/src/pmie/pmie_farm_check.service.in b/src/pmie/pmie_farm_check.service.in
|
||||
index 64f822ad53..01d83390a9 100644
|
||||
--- a/src/pmie/pmie_farm_check.service.in
|
||||
+++ b/src/pmie/pmie_farm_check.service.in
|
||||
@@ -2,6 +2,7 @@
|
||||
Description=Check and migrate non-primary pmie farm instances
|
||||
Documentation=man:pmiectl(1)
|
||||
ConditionPathExists=!@CRONTAB_PATH@
|
||||
+PartOf=pmie_farm.service
|
||||
|
||||
[Service]
|
||||
Type=exec
|
||||
diff --git a/src/pmlogger/pmlogger.service.in b/src/pmlogger/pmlogger.service.in
|
||||
index de0df29db1..b0d706027a 100644
|
||||
--- a/src/pmlogger/pmlogger.service.in
|
||||
+++ b/src/pmlogger/pmlogger.service.in
|
||||
diff -Naurp pcp-5.3.5.orig/src/pmlogger/pmlogger.service.in pcp-5.3.5/src/pmlogger/pmlogger.service.in
|
||||
--- pcp-5.3.5.orig/src/pmlogger/pmlogger.service.in 2021-11-04 08:26:15.000000000 +1100
|
||||
+++ pcp-5.3.5/src/pmlogger/pmlogger.service.in 2022-01-21 10:49:07.986980661 +1100
|
||||
@@ -2,8 +2,8 @@
|
||||
Description=Performance Metrics Archive Logger
|
||||
Documentation=man:pmlogger(1)
|
||||
@ -304,69 +839,3 @@ index de0df29db1..b0d706027a 100644
|
||||
Wants=pmcd.service
|
||||
|
||||
[Service]
|
||||
diff --git a/src/pmlogger/pmlogger_check.service.in b/src/pmlogger/pmlogger_check.service.in
|
||||
index 8fcef57e0f..db7edf0b0f 100644
|
||||
--- a/src/pmlogger/pmlogger_check.service.in
|
||||
+++ b/src/pmlogger/pmlogger_check.service.in
|
||||
@@ -2,6 +2,7 @@
|
||||
Description=Check pmlogger instances are running
|
||||
Documentation=man:pmlogger_check(1)
|
||||
ConditionPathExists=!@CRONTAB_PATH@
|
||||
+PartOf=pmlogger.service
|
||||
|
||||
[Service]
|
||||
Type=@SD_SERVICE_TYPE@
|
||||
diff --git a/src/pmlogger/pmlogger_check.timer b/src/pmlogger/pmlogger_check.timer
|
||||
index e3f3c4fc40..ddffc7584a 100644
|
||||
--- a/src/pmlogger/pmlogger_check.timer
|
||||
+++ b/src/pmlogger/pmlogger_check.timer
|
||||
@@ -1,5 +1,6 @@
|
||||
[Unit]
|
||||
Description=Half-hourly check of pmlogger instances
|
||||
+PartOf=pmlogger.service
|
||||
|
||||
[Timer]
|
||||
# if enabled, runs 1m after boot and every half hour
|
||||
diff --git a/src/pmlogger/pmlogger_daily.service.in b/src/pmlogger/pmlogger_daily.service.in
|
||||
index 8a07f5caa3..9a3cbf42b1 100644
|
||||
--- a/src/pmlogger/pmlogger_daily.service.in
|
||||
+++ b/src/pmlogger/pmlogger_daily.service.in
|
||||
@@ -2,6 +2,7 @@
|
||||
Description=Process archive logs
|
||||
Documentation=man:pmlogger_daily(1)
|
||||
ConditionPathExists=!@CRONTAB_PATH@
|
||||
+PartOf=pmlogger.service
|
||||
|
||||
[Service]
|
||||
Type=@SD_SERVICE_TYPE@
|
||||
@@ -13,3 +14,6 @@ ExecStart=@PCP_BINADM_DIR@/pmlogger_daily $PMLOGGER_DAILY_PARAMS
|
||||
WorkingDirectory=@PCP_VAR_DIR@
|
||||
Group=@PCP_GROUP@
|
||||
User=@PCP_USER@
|
||||
+
|
||||
+[Install]
|
||||
+RequiredBy=pmlogger.service
|
||||
diff --git a/src/pmlogger/pmlogger_farm.service.in b/src/pmlogger/pmlogger_farm.service.in
|
||||
index a194ac39c7..a67e25f312 100644
|
||||
--- a/src/pmlogger/pmlogger_farm.service.in
|
||||
+++ b/src/pmlogger/pmlogger_farm.service.in
|
||||
@@ -3,6 +3,7 @@ Description=pmlogger farm service
|
||||
Documentation=man:pmlogger_check(1)
|
||||
Before=pmlogger_farm_check.timer
|
||||
BindsTo=pmlogger_farm_check.timer
|
||||
+PartOf=pmlogger.service
|
||||
|
||||
[Service]
|
||||
Type=@SD_SERVICE_TYPE@
|
||||
diff --git a/src/pmlogger/pmlogger_farm_check.service.in b/src/pmlogger/pmlogger_farm_check.service.in
|
||||
index 2ec3a5446b..de5e59a7f5 100644
|
||||
--- a/src/pmlogger/pmlogger_farm_check.service.in
|
||||
+++ b/src/pmlogger/pmlogger_farm_check.service.in
|
||||
@@ -2,6 +2,7 @@
|
||||
Description=Check and migrate non-primary pmlogger farm instances
|
||||
Documentation=man:pmlogctl(1)
|
||||
ConditionPathExists=!@CRONTAB_PATH@
|
||||
+PartOf=pmlogger_farm.service
|
||||
|
||||
[Service]
|
||||
Type=exec
|
||||
|
Loading…
Reference in New Issue
Block a user