puppet-snmp icon indicating copy to clipboard operation
puppet-snmp copied to clipboard

fix for "error on subcontainer 'ia_addr' insert (-1)" messages in syslog

Open gittygoo opened this issue 6 years ago • 7 comments
trafficstars

Fix for https://bugs.launchpad.net/ubuntu/+source/net-snmp/+bug/1246347

gittygoo avatar Jun 13 '19 12:06 gittygoo

@gittygoo thanks for the contribution! This is failing because the spec tests also need to be updated to match your change.

Check out https://github.com/voxpupuli/puppet-snmp/blob/master/spec/classes/snmp_init_spec.rb#L615

ghoneycutt avatar Jun 13 '19 14:06 ghoneycutt

@ghoneycutt unfortunately i was a little bit too fast in the trigger, maybe you can help a bit extra also. Problem is that although this does change correctly on /etc/default/snmpd it is not changing for me on /lib/systemd/system/snmpd.service where else would i need to change for it to be applied there?

gittygoo avatar Jun 13 '19 16:06 gittygoo

hey @gittygoo . Is this change still requried? if so, could you please rebase against our latest master?

bastelfreak avatar Dec 02 '20 20:12 bastelfreak

This change should actually be made for all versions of Debian and Ubuntu (I have experienced this problem myself). So I've updated the patch. (This may apply to RedHat family too, but I don't use it these days, so don't know for sure.)

kenyon avatar Dec 05 '20 08:12 kenyon

@ghoneycutt unfortunately i was a little bit too fast in the trigger, maybe you can help a bit extra also. Problem is that although this does change correctly on /etc/default/snmpd it is not changing for me on /lib/systemd/system/snmpd.service where else would i need to change for it to be applied there?

@gittygoo for that you need to add a systemd drop-in file. https://forge.puppet.com/modules/camptocamp/systemd#drop-in-files

kenyon avatar Dec 07 '20 19:12 kenyon

@ghoneycutt unfortunately i was a little bit too fast in the trigger, maybe you can help a bit extra also. Problem is that although this does change correctly on /etc/default/snmpd it is not changing for me on /lib/systemd/system/snmpd.service where else would i need to change for it to be applied there?

@gittygoo for that you need to add a systemd drop-in file. forge.puppet.com/modules/camptocamp/systemd#drop-in-files

The systemd ones by default do not use an EnvironmentFile which is why it does not reflect as said above if you use a drop in with that it should work

elmobp avatar Dec 08 '20 00:12 elmobp

Dear @gittygoo, thanks for the PR!

This is Vox Pupuli Tasks, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase?

You can find my sourcecode at voxpupuli/vox-pupuli-tasks

vox-pupuli-tasks[bot] avatar Jun 21 '22 19:06 vox-pupuli-tasks[bot]