zenoss / ZenPacks.zenoss.ZenPackLib

This is a helper library for zenpacks.
http://zenpacklib.zenoss.com/
GNU General Public License v2.0
15 stars 17 forks source link

Ensure device class removal in certain scenarios (ZPS-3906) #536

Closed j053ph4 closed 6 years ago

j053ph4 commented 6 years ago

Attribute "zpl_managed" was not set on device classes prior to 2.1.0. The attribute is checked prior to device class removal during ZenPack uninstallation, so this check fails unless ZenPackLib 2.1.0 is installed prior to fresh installation of any dependent ZenPacks. Since the check fails, device classes can be left behind, which means that devices within them will also be left undeleted. This in turn can cause Zope object/model catalog issues since class dependency removal will break these objects.