Ticket #3388 (closed defect: Fixed)

Opened 7 months ago

Last modified 3 months ago

ZenPack install/remove needs to reindex Events, Mibs and Manufacturers

Reported by: cluther Owned by: jstevens
Priority: 1 - Blocker Milestone: zenoss-2.3
Component: ZenModel Version: 2.2.0
Keywords: zenoss-2.2.3-verified Cc:
Community Patch Attached: Deployed @ Customer:
Installer: Maintenance Target:
Specific ZenPack: Maintenance Status:
Documentation Note?: Not required Regression:

Description

If a ZenPack contains event class mappings or products a reindex of dmd.Events or dmd.Manufacturers needs to be called after they are added or removed.

One example of what goes wrong currently without this behavior is as follows:

  1. I add a few hardware models and OS versions to the NetApp Manufacturer for the NetAppMonitor ZenPack.
  2. I install NetAppMonitor onto another Zenoss system.
  3. I add a NetApp device to this new Zenoss system.
  4. Even if the productKey from this NetApp device matches the one I installed with the ZenPack a new one with the same productKey will be created in the Unknown manufacturer.

The reason for this is that the findProduct method of ManufacturerRoot is being called, which uses the productKey catalog.

Attachments

ZenPacks.jason.test1-1.0-py2.4.egg (5.0 kB) - added by jstevens 6 months ago.
Trivial ZenPack including an Event class w/mapping, Product and mib

Change History

Changed 7 months ago by cluther

  • keywords zenoss-2.2.3-proposed added; zenoss-2.2.2-proposed removed

Changed 6 months ago by cluther

  • summary changed from ZenPack install/remove might need to reindex Events or Manufacturers to ZenPack install/remove needs to reindex Events, Mibs and Manufacturers

Changed 6 months ago by cluther

  • priority changed from high to blocker

Changed 6 months ago by edahl

  • owner changed from edahl to jstevens

Jason are you on this with a different ticket?

Changed 6 months ago by jstevens

  • status changed from new to assigned

Changed 6 months ago by jstevens

Trivial ZenPack including an Event class w/mapping, Product and mib

Changed 6 months ago by jstevens

I created the attached zenpack to test this. After installing the zenpack I confirmed the eventClassSearch and productSearch catalogs had been updated. I added an event manually to verify the mapping worked. This was all on my laptop after a zenwipe.sh.

I then installed the zenpack on zenosst with the same results.

Chet mentioned that DellMonitor might have exhibited this problem in the past. I installed ZenPacks.zenoss.DellMonitor on my laptop and confirmed that the productSearch catalog was updated.

Between my laptop and zenosst I think we've covered the basic clean install and upgraded install scenarios. If we encounter this problem again we should capture Data.fs (or a complete zenbackup) to help figure out what's going on.

Changed 6 months ago by jstevens

(In [9685]) refs #3388

  • indexing objects after they are imported via xml

Changed 6 months ago by jstevens

(In [9686]) refs #3388

  • patching 9685 into 2.2.x

Changed 6 months ago by jstevens

  • keywords zenoss-2.2.3-patched added; zenoss-2.2.3-proposed removed

Changed 6 months ago by jstevens

  • status changed from assigned to closed
  • resolution set to fixed

Changed 6 months ago by ecn

  • keywords zenoss-2.2.3-verified added; zenoss-2.2.3-patched removed

cent5 32 native rpm Build 24

Changed 3 months ago by bbibeault

  • reviewed set to 1
Note: See TracTickets for help on using tickets.