TECHZEN Zenoss User Community ARCHIVE  

Broken Device - Completely unable to remove and cannot install zenpack

Subject: Broken Device - Completely unable to remove and cannot install zenpack
Author: Paul Manno
Posted: 2017-10-11 15:01

Device in /zport/dmd/Devices/Server/Linux/devices
I can see it in Zope, but when I try to delete it I receive an error:
Type: <class 'zExceptions.BadRequest'>
Value: 10.5.0.50 does not exist
Traceback (most recent call last):
File "/opt/zenoss/lib/python/ZPublisher/Publish.py", line 126, in publish
request, bind=1)
File "/opt/zenoss/lib/python/ZPublisher/mapply.py", line 77, in mapply
if debug is not None: return debug(object,args,context)
File "/opt/zenoss/lib/python/ZPublisher/Publish.py", line 46, in call_object
result=apply(object,args) # Type s<cr> to step into published object.
File "/opt/zenoss/lib/python/OFS/ObjectManager.py", line 533, in manage_delObjects
raise BadRequest, '%s does not exist' % escape(ids[-1])
BadRequest: 10.5.0.50 does not exist


I have run zodbscan which produces:
[2017-10-11 13:39:20] Initializing zodbscan v2.0.0 (detailed log at /opt/zenoss/log/toolbox/zodbscan.log)
[2017-10-11 13:39:26] Examining 1172172 items in the 'zodb' database:
[2017-10-11 13:45:45] Verified [==================================================] 100%
[2017-10-11 13:45:45] Execution finished in 0:06:24


Next I run findposkeyerror:
[2017-10-11 13:46:37] Initializing findposkeyerror v2.0.0 (detailed log at /opt/zenoss/log/toolbox/findposkeyerror.log)
[2017-10-11 13:46:44] Examining items under the '/' path (<Application at >):
[2017-10-11 13:48:29] Cycle 1 | Items Scanned: 552415 | Errors: 0 |
[2017-10-11 13:48:29] Execution finished in 0:01:51

Then zenrelationscan which outputs:
[2017-10-11 13:52:17] Initializing zenrelationscan v2.0.0 (detailed log at /opt/zenoss/log/toolbox/zenrelationscan.log)
[2017-10-11 13:52:22] Examining ZenRelations...
[2017-10-11 13:52:26] | Items Scanned: 1654 | Errors: 0 |
#################################################################
CRITICAL: Exception encountered - aborting. Please see log file.
#################################################################
[2017-10-11 13:52:26] Execution finished in 0:00:08

The zenrelationsscan.log file has this error in it:
2017-10-11 13:53:48,010 ERROR zenrelationscan: 'dmd' is not in list
Traceback (most recent call last):
File "/opt/zenoss/lib/python2.7/site-packages/zenoss.toolbox-2.1.0-py2.7.egg/zenoss/toolbox/zenrelationscan.py", line 96, in scan_relationships
object = relationships_to_check.next()
File "/opt/zenoss/Products/ZenUtils/Utils.py", line 509, in getSubObjectsMemo
for x in getSubObjectsMemo(obj, filter, descend, memo):
File "/opt/zenoss/Products/ZenUtils/Utils.py", line 509, in getSubObjectsMemo
for x in getSubObjectsMemo(obj, filter, descend, memo):
File "/opt/zenoss/Products/ZenUtils/Utils.py", line 509, in getSubObjectsMemo
for x in getSubObjectsMemo(obj, filter, descend, memo):
File "/opt/zenoss/Products/ZenUtils/Utils.py", line 509, in getSubObjectsMemo
for x in getSubObjectsMemo(obj, filter, descend, memo):
File "/opt/zenoss/Products/ZenUtils/Utils.py", line 504, in getSubObjectsMemo
not obj.getPrimaryDmdId().startswith(base.getPrimaryDmdId())):
File "/opt/zenoss/Products/ZenModel/ZenModelBase.py", line 426, in getPrimaryDmdId
path = path[path.index(rootName)+1:]
ValueError: 'dmd' is not in list

I can't see to find a way to get rid of this thing, and I'm trying to install the Microsoft.Widows ZenPack but that's erroring on the device in question.  Any ideas on how I can kill this thing?

Thanks,
Paul

------------------------------
Paul Manno
Ravenswood Kinowerks, Inc.
------------------------------


Subject: RE: Broken Device - Completely unable to remove and cannot install zenpack
Author: Mohammed Irshad
Posted: 2017-10-13 17:47

Hi,

Which version of Zenoss are you using?

Please paste the error you get while installing the zenpack. The device you are talking about is a linux device and should not bother the zenpack installation. Also paste the error you are getting while you delete the device if you want to know.

------------------------------
Irshad
------------------------------


< Previous
Docker container getting hanged frequently
  Next
Deleting device properties that cause poskeyerrors
>