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

Fix missing paths from getPaths() issue (ZPS-1262) #450

Closed j053ph4 closed 7 years ago

j053ph4 commented 7 years ago

Two main issues are involved here. First, the various PathReporters used by ZPL proxy classes need to have their own getPaths() overrides like the one ZPL provides.

Second, the ComponentBase containing_relname method fails for proxy classes whose primary parents are OperatingSystem or Hardware, since these are only valid if the subclass has the same name as the parent class (like FileSystem). Otherwise, the device is directly related to the class.

j053ph4 commented 7 years ago

please review

j053ph4 commented 7 years ago

bump please

dougsyer commented 7 years ago

Right now im only using the hwcomponent to get the relation to the productkeys. I coukd just as easily usr a zplib component that just has that relaiom like what was there in 1.x.

Im not using proxies for anything else..

I could live without the proxies as they are today and truth be told they kinda scare me.

Im about to zenoss5ify everyting anyways.

Of course winzp is using them im assuming.

I do need to be able non containing rels to ipinterface and i should be using the os process classes for a couple projects..im sure i could deal with that using old spis

dougsyer commented 7 years ago

I dont think we can update to stock zplib 2.06 or 2.07+ without this fix or guidance on how to handle the issue with hwcomponent in zenpacklib not working as it did in zplib version 1.0.

dougsyer commented 7 years ago

the ComponentBase code broke the deletion of windows services and processes we think. we were able to finally reproduce it in our dev system. we applied this patch to 2.07 but did not apply the ComponentBase change and it seems like the modeling issue is fixed AND the windows services /processes problem is gone also...