Problem Description
We've recently discovered an issue with Resource Manager 5.3.0 wherein upgrades of ZenPacks which provide MIBs raises a series of KeyError exceptions and ZenPack upgrades fail.
Customers who have downloaded 5.3.0 will be notified of this issue proactively.
This issue will be fixed in the 5.3.1 maintenance release.
Remediation Steps
To work around this problem, customers can apply a small code change and reindex the MIB catalog. To do that, follow these instructions:
-
On the serviced master, create a Zope shell and tag it:
serviced service shell -i -s mibfix zope
-
Open the file at /opt/zenoss/Products/ZenRelations/ImportRM.py
vi /opt/zenoss/Products/ZenRelations/ImportRM.py
-
Find line 220 and add four spaces to the beginning of it
Before:
old_oid.getParentNode()._delObject(old_oid.id)
After:
old_oid.getParentNode()._delObject(old_oid.id)
-
Save the file
-
Exit the container
exit
-
Commit the snapshot
serviced snapshot commit mibfix
-
Restart Zenoss.resmgr services
serviced service restart zenoss.resmgr
-
Attach to a Zope container
serviced service attach zope
-
Switch to the Zenoss user
su - zenoss
-
Launch zendmd
zendmd
-
Run the following commands:
dmd.Mibs.reIndex()
commit() -
Exit zendmd
exit()
-
Exit the container
exit
exit
Comments