![]() |
![]() |
Subject: | Zendisc fails on 4.2.5 SP203 "devices restricted to class Device. <Device> is class DeviceClass" |
Author: | Matt |
Posted: | 2014-09-22 16:42 |
Hey,
I'm currently testing the upgrade from Zenoss 4.2.4 to 4.2.5.
First thing I wanted to do is verify that all my ZenPacks are working just fine with the latest version.
But I didn't even get that far.
I'm not able to add any devices to Zenoss, because Zendisc always fails.
I already installed SP203, but this didn't help either.
Here is the error I get:
2014-09-22 17:10:16,758 ERROR zen.ZenDisc: Failed device discovery for '192.168.68.5'
Traceback (most recent call last):
File "/opt/zenoss/Products/DataCollector/zendisc.py", line 456, in inner
snmp_config = driver.next()
File "/opt/zenoss/Products/ZenUtils/Driver.py", line 63, in result
raise ex
RemoteException: : Traceback (most recent call last):
File "/opt/zenoss/Products/ZenHub/PBDaemon.py", line 97, in inner
return callable(*args, **kw)
File "/opt/zenoss/Products/ZenHub/services/DiscoverService.py", line 255, in remote_getSnmpConfig
devroot = self.dmd.Devices.createOrganizer(devicePath)
File "/opt/zenoss/Products/ZenModel/Organizer.py", line 341, in createOrganizer
path,self.__class__)
File "/opt/zenoss/Products/ZenModel/ZenModelBase.py", line 456, in createHierarchyObj
return createHierarchyObj(root, name, factory, relpath, alog)
File "/opt/zenoss/Products/ZenUtils/Utils.py", line 618, in createHierarchyObj
root._setObject(id, newobj)
File "/opt/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 128, in _setObject
self.addRelation(object)
File "/opt/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 118, in addRelation
ToManyRelationshipBase.addRelation(self, obj)
File "/opt/zenoss/Products/ZenRelations/RelationshipBase.py", line 91, in addRelation
obj.id, obj.__class__.__name__))
ZenSchemaError: devices restricted to class Device. TestServer.domain.local is class DeviceClass
:
So it looks like Zendisc thinks that the device is a DeviceClass That doesn't make any sense...
I'm not sure what I could have done wrong... I mean, this is not my first Zenoss installation and I never had such an issue before.
Hopefully someone can help me, or at least point me into the right direction.
Thanks.
Subject: | had same problem... here is patch that seems to work |
Author: | [Not Specified] |
Posted: | 2014-09-23 13:05 |
Sorry I am not "up" on actually submitting code fixes here- this is my first post, actually. But this seems to fix the issue by reverting to the 4.2.4 code in a small part of zendisc.py.
In /opt/zenoss/Product/DataCollector/zendisc.py starting at line 683 -
#broken 4.2.5 way
# devicePath = self.options.deviceclass + "/devices/" + deviceName
# yield self.discoverDevice(ip,
# devicepath=devicePath,
# prodState=self.options.productionState)
#old 4.2.4 way
yield self.discoverDevice(ip,
devicepath=self.options.deviceclass,
prodState=self.options.productionState)
#end broken fix
< |
Previous Where to place common code in a zenpack |
Next Windows Event Log Monitoring with Windows RM |
> |