ce2e8d3c5d
collect-engtools is updated to use python3 in upsteam commit: ``````````````````````````````````````````````` commit 9ec7cf4447f5333097065a35a7d8e1de05b0425c Author: Long Li <lilong-neu@neusoft.com> Date: Fri Mar 20 18:24:32 2020 +0800 Update engtools to use python3 Change spec and scripts to only use python3 explicitly Verification: 1. Regard as the README,in development docker environment, run ./patch-engtools.sh, it will generate the ENGTOOLS-20.01.patch if we scp the patch to controller, we could sw-patch upload and sw-apply it successfully. 2. The engtools-1.0-4.tis.noarch.rpm is not built into bootimage by default thus if we package it into bootimage when to verify it. 1). Run some bash script, such as ceph.sh, memstats.sh, netstats.sh and so on it will display the collect system resource information. 2). The service of collect-engtools.service could start and stop without problem 3). If we run the modified python which we have changed to python3. python3 buddyinfo.py it will deplay the resource information python3 live_stream.py the log of livestream.log will display collect information This package only be packaged into bootimage when we need it to collect system resource information. Story: 2007106 Task: 39112 Depends-on: https://review.opendev.org/#/c/712218/ Depends-on: https://review.opendev.org/#/c/714072/ Signed-off-by: Long Li <lilong-neu@neusoft.com> ``````````````````````````````````````````````` Story: 2008952 Task: 42576 Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Change-Id: I9061f483e354aa06cc1f6bacef1554c823af6ec1
72 lines
2.4 KiB
BlitzBasic
72 lines
2.4 KiB
BlitzBasic
DESCRIPTION = " \
|
|
This package contains data collection tools to monitor host performance. \
|
|
Tools are general purpose engineering and debugging related. Includes \
|
|
overall memory, cpu occupancy, per-task cpu, per-task scheduling, per-task \
|
|
io. \
|
|
"
|
|
SUMMARY = "Host performance data collection tools package"
|
|
|
|
require utilities-common.inc
|
|
SUBPATH0 = "tools/engtools/hostdata-collectors/scripts"
|
|
|
|
LICENSE = "Apache-2.0"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
|
|
|
SRC_URI += "file://collect-engtools-fix-service-name-binary-path.patch;striplevel=5"
|
|
|
|
RDEPENDS_collect-engtools += " \
|
|
iperf3 \
|
|
bash \
|
|
perl \
|
|
python3 \
|
|
python3-six \
|
|
python3-psutil \
|
|
"
|
|
|
|
inherit systemd
|
|
DISTRO_FEATURES_BACKFILL_CONSIDERED_remove = "sysvinit"
|
|
SYSTEMD_PACKAGES += "${PN}"
|
|
SYSTEMD_SERVICE_${PN} = " ${PN}.service"
|
|
SYSTEMD_AUTO_ENABLE_${PN} = "disable"
|
|
|
|
do_configure[noexec] = "1"
|
|
do_compile[noexec] = "1"
|
|
|
|
do_install_append() {
|
|
|
|
install -d -m0755 ${D}/${bindir}
|
|
install -m 755 buddyinfo.py ${D}/${bindir}
|
|
install -m 755 chewmem ${D}/${bindir}
|
|
install -m 755 ceph.sh ${D}/${bindir}
|
|
install -m 755 cleanup-engtools.sh ${D}/${bindir}
|
|
install -m 755 collect-engtools.sh ${D}/${bindir}
|
|
install -m 755 diskstats.sh ${D}/${bindir}
|
|
install -m 755 engtools_util.sh ${D}/${bindir}
|
|
install -m 755 filestats.sh ${D}/${bindir}
|
|
install -m 755 iostat.sh ${D}/${bindir}
|
|
install -m 755 linux_benchmark.sh ${D}/${bindir}
|
|
install -m 755 memstats.sh ${D}/${bindir}
|
|
install -m 755 netstats.sh ${D}/${bindir}
|
|
install -m 755 postgres.sh ${D}/${bindir}
|
|
install -m 755 rabbitmq.sh ${D}/${bindir}
|
|
install -m 755 remote/rbzip2-engtools.sh ${D}/${bindir}
|
|
install -m 755 remote/rstart-engtools.sh ${D}/${bindir}
|
|
install -m 755 remote/rstop-engtools.sh ${D}/${bindir}
|
|
install -m 755 remote/rsync-engtools-data.sh ${D}/${bindir}
|
|
install -m 755 slab.sh ${D}/${bindir}
|
|
install -m 755 ticker.sh ${D}/${bindir}
|
|
install -m 755 top.sh ${D}/${bindir}
|
|
install -m 755 vswitch.sh ${D}/${bindir}
|
|
install -m 755 live_stream.py ${D}/${bindir}
|
|
|
|
install -p -d -m0755 ${D}/${sysconfdir}/engtools/
|
|
install -m0644 -p cfg/engtools.conf ${D}/${sysconfdir}/engtools
|
|
install -d -m0755 ${D}/${sysconfdir}/init.d
|
|
install -m0755 init.d/collect-engtools.sh ${D}/${sysconfdir}/init.d
|
|
|
|
install -d -m0755 ${D}/${systemd_system_unitdir}
|
|
install -m0644 -p -D collect-engtools.service ${D}/${systemd_system_unitdir}
|
|
|
|
sed -i -e 's|/local/bin|/bin|g' ${D}/${sysconfdir}/init.d/collect-engtools.sh
|
|
}
|