-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2016.3.1 breaks diskusage beacon #33972
Comments
@morganwillcock I'm able to see beacon events from a centos7 minion while configuring beacons via pillar and minion config on centos7. What version of debian are you seeing this on? 7 or 8?
|
@Ch3LL Thanks for looking at this. I tried it on 7 and 8, but only checked the logs on 8. |
Just checked, the same error is logged on 7. |
Possibly fixed here? #33474 |
I've just tried applying that, but still have the same result. |
Sorry this was my fault. I had assumed that psutils was installed as standard dependency of the minion package, installing this lets the beacon process correctly. @cachedout I had to revert #33474 as I was getting a traceback with it applied. 2016-06-15 11:29:39,287 [salt.minion ][CRITICAL][20575] The beacon errored: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/salt/minion.py", line 2022, in handle_beacons beacons = self.process_beacons(self.functions) File "/usr/lib/python2.7/dist-packages/salt/minion.py", line 380, in process_beacons return self.beacons.process(b_conf) # pylint: disable=no-member File "/usr/lib/python2.7/dist-packages/salt/beacons/__init__.py", line 91, in process raw = self.beacons[fun_str](b_config[mod]) File "/usr/lib/python2.7/dist-packages/salt/beacons/diskusage.py", line 74, in beacon _current_usage = psutil.disk_usage(mount) File "/usr/lib/python2.7/dist-packages/psutil/__init__.py", line 1690, in disk_usage return _psplatform.disk_usage(path) File "/usr/lib/python2.7/dist-packages/psutil/_psposix.py", line 121, in disk_usage st = os.statvfs(path) TypeError: must be string, not dict |
@morganwillcock Thank you for you investigation and for the fix. Your PR has been merged, and I have back-ported your change in #34176 to the 2015.8 branch. Can this be closed now? |
Yes, thank you. |
The disk usage beacon is working on a Windows minion (no errors and events are fired) but doesn't seem to be working on a Debian minion (I've not tested any other platforms). To re-create the problem:
/srv/pillar/top.sls
/srv/pillar/beacons.sls
(I've also tried quoting the forward slash)
salt linuxminion saltutil.refresh_pillar
(I've also tried restarting the minion process)
Tested on 2016.3.0
The text was updated successfully, but these errors were encountered: