pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/53366: sysutils/salt is missing py-psutil dependency



>Number:         53366
>Category:       pkg
>Synopsis:       sysutils/salt is missing py-psutil dependency
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 15 07:20:00 +0000 2018
>Originator:     Travis Paul
>Release:        pkgsrc-current
>Organization:
>Environment:
NetBSD salt.local 7.1.2 NetBSD 7.1.2 (GENERIC.201803151611Z) amd64
>Description:
sysutils/salt needs py-psutil for beacon support.
>How-To-Repeat:
Attempt to use diskusage or memusage beacons. Example entry in /usr/pkg/etc/salt/minion.d/beacons.conf:

beacons:
  memusage:
    - percent: 75%
    - interval: 15
  diskusage:
    - interval: 15
    - /: 60%
    - /opt: 50%


before:
  2018-06-15 14:53:24,323 [salt.beacons :35  ][TRACE   ][23367] Beacon processing: diskusage
  2018-06-15 14:53:24,324 [salt.utils.lazy :100 ][DEBUG   ][23367] LazyLoaded diskusage.beacon
  2018-06-15 14:53:24,324 [salt.beacons :123 ][WARNING ][23367] Unable to process beacon diskusage
  ...
  2018-06-15 15:06:38,765 [salt.beacons :35  ][TRACE   ][24455] Beacon processing: memusage
  2018-06-15 15:06:38,765 [salt.utils.lazy :100 ][DEBUG   ][24455] LazyLoaded memusage.beacon
  2018-06-15 15:06:38,766 [salt.beacons :123 ][WARNING ][24455] Unable to process beacon memusage

after:
  2018-06-15 14:55:46,881 [salt.loaded.int.beacons.diskusage :103 ][INFO    ][5484] current_usage 47.0 
  2018-06-15 14:55:46,883 [salt.loaded.int.beacons.diskusage :103 ][INFO    ][5484] current_usage 47.0 
  2018-06-15 14:55:46,884 [salt.loaded.int.beacons.diskusage :103 ][INFO    ][5484] current_usage 47.0
  2018-06-15 14:55:46,884 [salt.loaded.int.beacons.diskusage :103 ][INFO    ][5484] current_usage 47.0
  2018-06-15 14:55:46,885 [salt.loaded.int.beacons.diskusage :103 ][INFO    ][5484] current_usage 47.0
  2018-06-15 14:55:46,886 [salt.loaded.int.beacons.diskusage :103 ][INFO    ][5484] current_usage 47.0
  2018-06-15 14:55:46,886 [salt.loaded.int.beacons.diskusage :103 ][INFO    ][5484] current_usage 15.1
  ...
  2018-06-15 15:13:20,997 [salt.beacons :35  ][TRACE   ][23702] Beacon processing: memusage

I also confirmed an event is sent on the Salt event bus when system values exceed configured values.
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/salt/Makefile,v
retrieving revision 1.60
diff -u -r1.60 Makefile
--- Makefile    12 May 2018 11:29:35 -0000      1.60
+++ Makefile    14 Jun 2018 06:04:31 -0000
@@ -16,6 +16,7 @@
 DEPENDS+=      ${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml
 DEPENDS+=      ${PYPKGPREFIX}-requests>=2.5.0:../../devel/py-requests
 DEPENDS+=      ${PYPKGPREFIX}-tornado>=4.3:../../www/py-tornado
+DEPENDS+=      ${PYPKGPREFIX}-psutil-[0-9]*:../../sysutils/py-psutil
 # zeromq transport requirements
 DEPENDS+=      ${PYPKGPREFIX}-cryptodome-[0-9]*:../../security/py-cryptodome
 DEPENDS+=      ${PYPKGPREFIX}-zmq>=2.2.0:../../net/py-zmq


Home | Main Index | Thread Index | Old Index