I can not remove device from zendmd due to some zodb issue.
I want to remove it forcely. It is important for our ops.
zenoss@]$ ./zenoss-repairdevice.py
Checking P-TPU-176.34.146.X
ERROR:ZODB.Connection:Couldn't load state for 0x0cd469
Traceback (most recent call last):
File "/opt/zenoss/lib/python/ZODB/Connection.py", line 860, in setstate
self._setstate(obj)
File "/opt/zenoss/lib/python/ZODB/Connection.py", line 901, in _setstate
p, serial = self._storage.load(obj._p_oid, '')
File "/opt/zenoss/lib/python/relstorage/storage.py", line 476, in load
raise POSKeyError(oid)
POSKeyError: 0x0cd469
Traceback (most recent call last):
File "./zenoss-repairdevice.py", line 97, in <module>
processOneDevice(d)
File "/opt/zenoss/lib/python/ZODB/transact.py", line 44, in g
r = f(*args, **kwargs)
File "./zenoss-repairdevice.py", line 78, in processOneDevice
dev.checkRelations(repair=True)
File "/opt/zenoss/Products/ZenRelations/RelationshipManager.py", line 257, in checkRelations
rel.checkRelation(repair)
File "/opt/zenoss/Products/ZenRelations/ToManyRelationship.py", line 286, in checkRelation
if len(self._objects):
File "/opt/zenoss/lib/python2.7/UserList.py", line 30, in __len__
def __len__(self): return len(self.data)
File "/opt/zenoss/lib/python/ZODB/Connection.py", line 860, in setstate
self._setstate(obj)
File "/opt/zenoss/lib/python/ZODB/Connection.py", line 901, in _setstate
p, serial = self._storage.load(obj._p_oid, '')
File "/opt/zenoss/lib/python/relstorage/storage.py", line 476, in load
raise POSKeyError(oid)
ZODB.POSException.POSKeyError: 0x0cd469
Any comments?