Follow

Known Issue ZEN-28477: Resource Manager 5.3.0 - all ZenPack upgrades involving MIBs fail with a KeyError

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:

  1. On the serviced master, create a Zope shell and tag it:

    serviced service shell -i -s mibfix zope

  2. Open the file at /opt/zenoss/Products/ZenRelations/ImportRM.py

    vi /opt/zenoss/Products/ZenRelations/ImportRM.py

  3. 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)

  4. Save the file

  5. Exit the container

    exit

  6. Commit the snapshot

    serviced snapshot commit mibfix

  7. Restart Zenoss.resmgr services

    serviced service restart zenoss.resmgr

  8. Attach to a Zope container

    serviced service attach zope

  9. Switch to the Zenoss user

    su - zenoss

  10. Launch zendmd

    zendmd

  11. Run the following commands:

    dmd.Mibs.reIndex()
    commit()

  12. Exit zendmd

    exit()

  13. Exit the container

    exit
    exit

Was this article helpful?
0 out of 0 found this helpful

Comments

Powered by Zendesk