Discussion:
Wierd zenhub error
j053ph4
2012-10-24 16:42:00 UTC
Permalink
j053ph4 [http://community.zenoss.org/people/j053ph4] created the discussion

"Wierd zenhub error"

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

--------------------------------------------------------------
Anyone ever seen this error before?  I've tried to track it down several times over the last few months without success:

2012-10-24 11:38:35,586 INFO zen.ZenHub: Worker reports Unhandled error in Deferred:
Traceback (most recent call last):
  File "/opt/zenoss/Products/ZenHub/zenhubworker.py", line 116, in remote_execute
    return runOnce()
  File "/opt/zenoss/Products/ZenHub/zenhubworker.py", line 111, in runOnce
    res = m(*args, **kw)
  File "/opt/zenoss/Products/ZenHub/services/SnmpTrapConfig.py", line 108, in remote_createAllUsers
    self._create_user(device)
  File "/opt/zenoss/lib/python/twisted/internet/defer.py", line 822, in unwindGenerator
    return _inlineCallbacks(None, f(*args, **kwargs), Deferred())
--- <exception caught here> ---
  File "/opt/zenoss/lib/python/twisted/internet/defer.py", line 737, in _inlineCallbacks
    result = g.send(result)
  File "/opt/zenoss/Products/ZenHub/services/SnmpTrapConfig.py", line 80, in _create_user
    if obj.zSnmpVer == "v3":
exceptions.AttributeError: zSnmpVer


At first glance it looks like some device is missing the zSnmpVer property, but that doesn't seem to be the case (at least not from walking the DMD).

Hopefully someone has seen this? Zenoss version is 3.2.1

Thanks,
Joseph
--------------------------------------------------------------

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

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
pwarren
2012-10-24 21:31:22 UTC
Permalink
pwarren [http://community.zenoss.org/people/pwarren] created the discussion

"Re: Wierd zenhub error"

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

--------------------------------------------------------------
If you look at the latest 4.2 version of SnmpTrapConfig, this error has been fixed there:

http://dev.zenoss.com/trac/browser/trunk/Products/ZenHub/services/SnmpTrapConfig.py#L78 http://dev.zenoss.com/trac/browser/trunk/Products/ZenHub/services/SnmpTrapConfig.py#L78

If you change the line:

        if obj.zSnmpVer == "v3":

to:

        if obj.getProperty("zSnmpVer", None) == "v3":

in that file on line 80 it should resolve the issue you are seeing.

Thanks,

Philip Warren
--------------------------------------------------------------

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

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