TECHZEN Zenoss User Community ARCHIVE  

Issue with uninstall zenpack

Subject: Issue with uninstall zenpack
Author: Giriraj Thiagarajan
Posted: 2018-02-20 01:13

My Zenoss public endpoint was working fine until i installed a zenpack "ZenPacks.community.deviceAdvDetail-2.9.0.egg". I am now trying to remove the zenpack and it but its failing. Could you please provide some directions on this?


Below is the error while trying to list the zenpack.


[root@mytime-zen-cc ZenPacks]# serviced service run zope zenpack list
time="2018-02-14T08:48:48Z" level=info msg="Loaded delegate keys from file" keyfile="/etc/serviced/delegate.keys" location="localkeys.go:320" logger=auth
ERROR:zen.ZenPackCmd:zenpack command failed
Traceback (most recent call last):
File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 910, in <module>
zp = ZenPackCmd()
File "/opt/zenoss/Products/ZenUtils/ZenScriptBase.py", line 36, in __init__
CmdBase.__init__(self, noopts)
File "/opt/zenoss/Products/ZenUtils/CmdBase.py", line 108, in __init__
zcml.load_site()
File "/opt/zenoss/lib/python2.7/site-packages/Zope2/App/zcml.py", line 46, in load_site
_context = xmlconfig.file(site_zcml)
File "/opt/zenoss/lib/python2.7/site-packages/zope/configuration/xmlconfig.py", line 649, in file
include(context, name, package)
File "/opt/zenoss/lib/python2.7/site-packages/zope/configuration/xmlconfig.py", line 548, in include
processxmlfile(f, context)
File "/opt/zenoss/lib/python2.7/site-packages/zope/configuration/xmlconfig.py", line 380, in processxmlfile
parser.parse(src)
File "/opt/zenoss/lib/python2.7/site-packages/_xmlplus/sax/expatreader.py", line 109, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/opt/zenoss/lib/python2.7/site-packages/_xmlplus/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/opt/zenoss/lib/python2.7/site-packages/_xmlplus/sax/expatreader.py", line 216, in feed
self._parser.Parse(data, isFinal)
File "/opt/zenoss/lib/python2.7/site-packages/_xmlplus/sax/expatreader.py", line 364, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/opt/zenoss/lib/python2.7/site-packages/zope/configuration/xmlconfig.py", line 359, in endElementNS
self.context.end()
File "/opt/zenoss/lib/python2.7/site-packages/zope/configuration/config.py", line 558, in end
self.stack.pop().finish()
File "/opt/zenoss/lib/python2.7/site-packages/zope/configuration/config.py", line 706, in finish
actions = self.handler(context, **args)
File "/opt/zenoss/lib/python2.7/site-packages/OFS/metaconfigure.py", line 46, in loadProducts
xmlconfig.include(_context, zcml, package=product)
File "/opt/zenoss/lib/python2.7/site-packages/zope/configuration/xmlconfig.py", line 548, in include
processxmlfile(f, context)
File "/opt/zenoss/lib/python2.7/site-packages/zope/configuration/xmlconfig.py", line 380, in processxmlfile
parser.parse(src)
File "/opt/zenoss/lib/python2.7/site-packages/_xmlplus/sax/expatreader.py", line 109, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/opt/zenoss/lib/python2.7/site-packages/_xmlplus/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/opt/zenoss/lib/python2.7/site-packages/_xmlplus/sax/expatreader.py", line 216, in feed
self._parser.Parse(data, isFinal)
File "/opt/zenoss/lib/python2.7/site-packages/_xmlplus/sax/expatreader.py", line 364, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/opt/zenoss/lib/python2.7/site-packages/zope/configuration/xmlconfig.py", line 359, in endElementNS
self.context.end()
File "/opt/zenoss/lib/python2.7/site-packages/zope/configuration/config.py", line 558, in end
self.stack.pop().finish()
File "/opt/zenoss/lib/python2.7/site-packages/zope/configuration/config.py", line 705, in finish
args = toargs(context, *self.argdata)
File "/opt/zenoss/lib/python2.7/site-packages/zope/configuration/config.py", line 1397, in toargs
args[str(name)] = field.fromUnicode(s)
File "/opt/zenoss/lib/python2.7/site-packages/zope/configuration/fields.py", line 227, in fromUnicode
v = vt.fromUnicode(s)
File "/opt/zenoss/lib/python2.7/site-packages/zope/configuration/fields.py", line 137, in fromUnicode
value = self.context.resolve(name)
File "/opt/zenoss/lib/python2.7/site-packages/zope/configuration/config.py", line 179, in resolve
mod = __import__(mname, *_import_chickens)
File "/opt/zenoss/ZenPacks/ZenPacks.community.deviceAdvDetail-2.9.0.egg/ZenPacks/community/deviceAdvDetail/thresholds/StatusThreshold.py", line 19, in <module>
import rrdtool
ZopeXMLConfigurationError: File "/opt/zenoss/etc/site.zcml", line 16.2-16.23
ZopeXMLConfigurationError: File "/opt/zenoss/ZenPacks/ZenPacks.community.deviceAdvDetail-2.9.0.egg/ZenPacks/community/deviceAdvDetail/configure.zcml", line 9.8-12.19
ImportError: No module named rrdtool
Command returned non-zero exit code 3.

------------------------------
Giriraj Thiagarajan
Seattle WA
206.740.3891
------------------------------


Subject: RE: Issue with uninstall zenpack
Author: Doug Syer
Posted: 2018-02-20 17:46

unless the developer has updated that recently that zenpack is super old.  most likely is it adds support for a status threshold that most likely is using old rrd based commands.

I know that zp pretty well along with hp/dell community zenpacks.  those also have some issues with some old code styles, i know of at least two things that break in later versions of Z4.x and 5/6.

we have newer versions internally developed that do similar things but i used to use those zenpacks and had them running and updated for years.

doug

------------------------------
Doug Syer
NWN Corporation
Waltham MA
------------------------------


Subject: RE: Issue with uninstall zenpack
Author: Andy Fleming
Posted: 2018-02-23 17:00

Doug, any chance you are willing to share your internally built versions?  I know I'd like to use the EQL zenpack, but it requires the Advance Device Details Zenpack and as this thread has already spoken to that zenpack has not be updated to be compatible.

------------------------------
Andy Fleming
KanREN - Kansas Research and Education Network
KS
------------------------------


< Previous
Windows Monitoring
  Next
Json API Issue
>