-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
No such file or directory errors #83
Comments
@blackknight36 What versions of Puppet, Puppet server, and OS are we dealing with? Which version of the razorsedge/snmp module? |
@razorsedge We're running puppetserver 2.7.2 with puppet-agent 1.9.10 on CentOS 7.2. I've also seen this error on Fedora based systems. I believe the issue is that the snmp::client class attempts to create a config file before the /etc/snmp directory exists. This directory is provided by the net-snmp package so it may be possible to fix this by adding a package requirement on the file resource. |
@blackknight36 Odd. I'm looking at the latest code and the |
I'll have to set up a VM and run some more tests. The error only occurs on the first puppet run, once the /etc/snmp directory is created the error goes away. |
I believe I see the issue. $req is set to require the snmp-client package which does not create the /etc/snmp directory. /etc/snmp is provided by the net-snmp package on redhat based systems as shown by the rpm command. username@dev27:/etc/snmp$ rpm -qf . $req should most likely be changed to $snmp::params::package_name since that is the correct package which manages the directory. |
I've submitted PR #98 which should fix this on Redhat and Fedora based systems. |
I'm seeing this too. Since the PR has been merged, is there an ETA for when this can hit the forge? |
I hope to get this pushed to the Forge by this weekend. |
Closed by #98 |
3.8.0 has been pushed to the Forge. |
There appears to be an error when this module is first run that causes errors to show up in our puppet reports. For example, the following errors occur during the first puppet run on a new host.
The text was updated successfully, but these errors were encountered: