Discussion:
Zenfixit for 4.2?
Exrace .
2013-04-14 19:43:05 UTC
Permalink
Exrace . [http://community.zenoss.org/people/exrace] created the discussion

"Zenfixit for 4.2?"

To view the discussion, visit: http://community.zenoss.org/message/72818#72818

--------------------------------------------------------------
I have been battling a device which continues to throw a POSKeyError when you try to edit or delete it.
It will thow this error on each refresh of the device detials page.
It is a Cisco switch stack
I have tried a zenfixit that has a modified date of 03/26/2010 but it looks to be for a earlier version.

It errors with the following:
[***@ehszenoss1 tmp]$ ./zenfixit.py
Cleaning up invalid entries from catalogs:
Traceback (most recent call last):
  File "./zenfixit.py", line 193, in <module>
    zfi.run()
  File "./zenfixit.py", line 13, in run
    self.fixCatalogs()
  File "./zenfixit.py", line 45, in fixCatalogs
    dmd.Devices.componentSearch,
AttributeError: componentSearch

I have tried removing the devices files from /opt/zenoss/perf/Devices
The dir recreates so the polling of the device is still working.
I read someone removing the zodb_sessiondb and recreating fixes POSKeyError.
I have yet to discover this with any other devices.

Any ideas?

--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/72818#72818]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Exrace .
2013-04-14 20:11:55 UTC
Permalink
Exrace . [http://community.zenoss.org/people/exrace] created the discussion

"Re: Zenfixit for 4.2?"

To view the discussion, visit: http://community.zenoss.org/message/72819#72819

--------------------------------------------------------------
I did try the zodb_sessiondb drop for mysql and it does not make any difference.
The error still persists.

--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/72819#72819]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Exrace .
2013-04-14 23:15:58 UTC
Permalink
Exrace . [http://community.zenoss.org/people/exrace] created the discussion

"Re: Zenfixit for 4.2?"

To view the discussion, visit: http://community.zenoss.org/message/72820#72820

--------------------------------------------------------------
I found this post:
http://wiki.zenoss.org/Fixing_ZODB_Integrity_Issues_Issues http://wiki.zenoss.org/Fixing_ZODB_Integrity_Issues_Issues

Takes a while to run last script.
I will report back if it fixes it.

--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/72820#72820]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Exrace .
2013-04-15 02:18:43 UTC
Permalink
Exrace . [http://community.zenoss.org/people/exrace] created the discussion

"Re: Zenfixit for 4.2?"

To view the discussion, visit: http://community.zenoss.org/message/72822#72822

--------------------------------------------------------------
Well the zenoss-repairdevice.py script died on db on a different device but this device has same issue as the other with the POSKey error.
Trying another run to see if it dies on same device...this time logging ssh session to a file.



--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/72822#72822]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Exrace .
2013-04-15 10:37:23 UTC
Permalink
Exrace . [http://community.zenoss.org/people/exrace] created the discussion

"Re: Zenfixit for 4.2?"

To view the discussion, visit: http://community.zenoss.org/message/72839#72839

--------------------------------------------------------------
Doesn't fix it.
Some sample output:
Checking ellsa2labws01.shine.org
Checking Device Class linkage for ellsa2labws01.shine.org
Checking Ips for myswitch.local
ERROR:ZODB.Connection:Couldn't load state for 0x080e20
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: 0x080e20
Traceback (most recent call last):
File "./zenoss-repairdevice.py", line 93, in <module>
processOneDevice(dev)
File "/opt/zenoss/lib/python/ZODB/transact.py", line 44, in g
r = f(*args, **kwargs)
File "./zenoss-repairdevice.py", line 82, in processOneDevice
checkIp(dev)
File "./zenoss-repairdevice.py", line 9, in checkIp
interface.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: 0x080e20
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/72839#72839]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...