[node-patches] Change in ovirt-node[master]: Persist all of /var/lib/net-snmp instead of just snmpd.conf

rbarry at redhat.com rbarry at redhat.com
Tue Nov 17 16:53:14 UTC 2015


Ryan Barry has posted comments on this change.

Change subject: Persist all of /var/lib/net-snmp instead of just snmpd.conf
......................................................................


Patch Set 3:

(1 comment)

https://gerrit.ovirt.org/#/c/46533/3/src/ovirt/node/setup/snmp/snmp_model.py
File src/ovirt/node/setup/snmp/snmp_model.py:

Line 68:     process.check_call(["cp", "/etc/snmp/snmpd.conf", "/tmp"])
Line 69:     process.check_call("sed -c -ie '/^createUser root/d' %s" % snmp_conf,
Line 70:                        shell=True)
Line 71:     configs = [snmp_conf, old_conf]
Line 72:     [fs.Config().unpersist(c) for c in configs if fs.Config().exists(c)]
> Same question as above
This is desirable since upgraded systems will have the old configs persisted, and we'll want to unpersist them so snmpd can rename them/etc.
Line 73: 
Line 74: 
Line 75: class SNMP(NodeConfigFileSection):
Line 76:     """Configure SNMP


-- 
To view, visit https://gerrit.ovirt.org/46533
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Ifef49615cca8eae9107d3ea409db30f71c2815ae
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Ryan Barry <rbarry at redhat.com>
Gerrit-Reviewer: Fabian Deutsch <fabiand at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Ryan Barry <rbarry at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>
Gerrit-HasComments: Yes



More information about the node-patches mailing list