TECHZEN Zenoss User Community ARCHIVE  

unable to delete a device

Subject: unable to delete a device
Author: [Not Specified]
Posted: 2015-04-28 12:45

I am unable to delete a device. I keep getting the POSkey error for this device on the UI.
i tried using the zenoss toolbox and running the findposkeyerror script which couldnt fix the issue.
I tried various suggestions getting in to the zendmd to delete the device. All of my efforts have seem to have failed.
running the reindex on zendmd gives me this output.
> reindex()
Traceback (most recent call last):
File "", line 1, in
File "/opt/zenoss/Products/ZenModel/zendmd.py", line 142, in reindex
dmd.Devices.reIndex()
File "/opt/zenoss/Products/ZenModel/DeviceClass.py", line 807, in reIndex
dev._create_componentSearch()
File "/opt/zenoss/Products/ZenModel/Device.py", line 559, in _create_componentSearch
for c in self.getDeviceComponentsNoIndexGen():
File "/opt/zenoss/Products/ZenModel/Device.py", line 602, in getDeviceComponentsNoIndexGen
for rel in baseObject.getRelationships():
AttributeError: 'str' object has no attribute 'getRelationships'

I need some help in deleting this device. I would appreciate any suggestions on this.

Thanks,



Subject: I recommend trying the Zenoss
Author: [Not Specified]
Posted: 2015-04-28 13:47

I recommend trying the Zenoss Toolbox :

https://github.com/zenoss/zenoss.toolbox

It does a very good job resolving issues like this. Zencatalogscan is probably what you need (docs: https://support.zenoss.com/hc/en-us/articles/203118075)



Subject: Sorry, didn't see at first
Author: [Not Specified]
Posted: 2015-04-29 01:07

Sorry, didn't see at first that you'd already tried that.



Subject: Did you by any chance remove
Author: Daniel Rich
Posted: 2015-05-05 13:41

Did you by any chance remove a zenpack that defined a device class that included that device Your problem is almost exactly the same as what I saw when I did that on 4.2 some time ago.

You may be able to delete the device via. zenoss and the use the toolbox to clean up the dangling reference in the zodb. Just make sure you have a full backup first, as it is possible to make a complete mess of your database this way.



< Previous
Upgrade Zenoss 5?
  Next
I am running zenoss core (free version) 4.2.5. How can I 1) Log into a web si ...
>