NetBSD Problem Report #53366
From www@NetBSD.org Fri Jun 15 07:18:53 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 332D67A1F7
for <gnats-bugs@gnats.NetBSD.org>; Fri, 15 Jun 2018 07:18:53 +0000 (UTC)
Message-Id: <20180615071851.E42BE7A26C@mollari.NetBSD.org>
Date: Fri, 15 Jun 2018 07:18:51 +0000 (UTC)
From: tr@vispaul.me
Reply-To: tr@vispaul.me
To: gnats-bugs@NetBSD.org
Subject: sysutils/salt is missing py-psutil dependency
X-Send-Pr-Version: www-1.0
>Number: 53366
>Category: pkg
>Synopsis: sysutils/salt is missing py-psutil dependency
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bsiegert
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jun 15 07:20:00 +0000 2018
>Closed-Date: Sat Jun 16 14:17:47 +0000 2018
>Last-Modified: Sat Jun 16 14:20:01 +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
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->bsiegert
Responsible-Changed-By: bsiegert@NetBSD.org
Responsible-Changed-When: Sat, 16 Jun 2018 13:55:36 +0000
Responsible-Changed-Why:
take
State-Changed-From-To: open->closed
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Sat, 16 Jun 2018 14:17:47 +0000
State-Changed-Why:
Committed, thanks!
From: "Benny Siegert" <bsiegert@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/53366 CVS commit: pkgsrc/sysutils/salt
Date: Sat, 16 Jun 2018 14:17:21 +0000
Module Name: pkgsrc
Committed By: bsiegert
Date: Sat Jun 16 14:17:21 UTC 2018
Modified Files:
pkgsrc/sysutils/salt: Makefile
Log Message:
Add missing dependency on py-psutil.
From Travis Paul in PR pkg/53366.
To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 pkgsrc/sysutils/salt/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.