XiangJun Wu
2013-05-14 08:11:19 UTC
XiangJun Wu [http://community.zenoss.org/people/goafter1981] created the discussion
"A way to remove device forcely"
To view the discussion, visit: http://community.zenoss.org/message/73196#73196
--------------------------------------------------------------
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?
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/73196#73196]
Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"A way to remove device forcely"
To view the discussion, visit: http://community.zenoss.org/message/73196#73196
--------------------------------------------------------------
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?
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/73196#73196]
Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]