Quantcast
Channel: Zenoss Community: Message List
Viewing all articles
Browse latest Browse all 1097

Fresh install, dmd and zendmd already broken

$
0
0

Hi Zenoss users,

 

My goal is to get Zenoss 3.2.1 running on an Ubuntu server. it's running Ubuntu 12.04.2 LTS:

 

zenoss@srv1$ uname -a

Linux srv1 3.5.0-34-generic #55~precise1-Ubuntu SMP Fri Jun 7 16:25:50 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

 

I'm using the stack installer zenoss-stack-3.2.1-linux-x64.bin

 

After successful installation, I can use it through the GUI, no visible problems. However, when I try to programmaticaly do stuff on it using dmd in python or zendmd, it badly breaks, with always the same error. Here an example when I use dmd.DeviceLoader.loadDevice(). About the same happens when using zendmd with a very simple set command, eg setGroup() on a device. I always end up with TypeError: ('Could not adapt',.......)

 

This is after a brand-new installation, with an empty database, without any Zenpack or patch or reconfiguration. This problem is new, I have other instances (albeit on 10.04) running my script fine. I have really no idea what's wrong, maybe something on the OS layer, or is 12.04 not supported ?

 

TIA,

Charles

 

Traceback (most recent call last):

  File "/opt/zenoss/zenoss/Products/ZenModel/ZDeviceLoader.py", line 327, in loadDevice

    priority=priority

  File "/opt/zenoss/zenoss/Products/ZenModel/ZDeviceLoader.py", line 127, in load_device

    **deviceProperties)

  File "/opt/zenoss/zenoss/Products/ZenModel/Device.py", line 138, in manage_createDevice

    device = deviceClass.createInstance(deviceName)

  File "/opt/zenoss/zenoss/Products/ZenModel/DeviceClass.py", line 166, in createInstance

    self.devices._setObject(id, dev)

  File "/opt/zenoss/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 125, in _setObject

    self.addRelation(object)

  File "/opt/zenoss/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 118, in addRelation

    notify(ObjectAddedEvent(obj, self, obj.getId()))

  File "/opt/zenoss/python/lib/python2.6/site-packages/zope.event-3.4.1-py2.6.egg/zope/event/__init__.py", line 23, in notify

    subscriber(event)

  File "/opt/zenoss/python/lib/python2.6/site-packages/zope.component-3.7.1-py2.6.egg/zope/component/event.py", line 26, in dispatch

    for ignored in zope.component.subscribers(event, None):

  File "/opt/zenoss/python/lib/python2.6/site-packages/zope.component-3.7.1-py2.6.egg/zope/component/_api.py", line 138, in subscribers

    return sitemanager.subscribers(objects, interface)

  File "/opt/zenoss/python/lib/python2.6/site-packages/zope.component-3.7.1-py2.6.egg/zope/component/registry.py", line 323, in subscribers

    return self.adapters.subscribers(objects, provided)

  File "/opt/zenoss/python/lib/python2.6/site-packages/zope.interface-3.5.2-py2.6-linux-x86_64.egg/zope/interface/adapter.py", line 579, in subscribers

    subscription(*objects)

  File "/opt/zenoss/python/lib/python2.6/site-packages/zope.component-3.7.1-py2.6.egg/zope/component/event.py", line 33, in objectEventNotify

    adapters = zope.component.subscribers((event.object, event), None)

  File "/opt/zenoss/python/lib/python2.6/site-packages/zope.component-3.7.1-py2.6.egg/zope/component/_api.py", line 138, in subscribers

    return sitemanager.subscribers(objects, interface)

  File "/opt/zenoss/python/lib/python2.6/site-packages/zope.component-3.7.1-py2.6.egg/zope/component/registry.py", line 323, in subscribers

    return self.adapters.subscribers(objects, provided)

  File "/opt/zenoss/python/lib/python2.6/site-packages/zope.interface-3.5.2-py2.6-linux-x86_64.egg/zope/interface/adapter.py", line 579, in subscribers

    subscription(*objects)

  File "/opt/zenoss/zenoss/Products/ZenModel/subscribers.py", line 32, in indexAfterAddOrMove

    ob.index_object()

  File "/opt/zenoss/zenoss/Products/ZenModel/Device.py", line 1967, in index_object

    super(Device, self).index_object(idxs)

  File "/opt/zenoss/zenoss/Products/ZenModel/ZenModelRM.py", line 353, in index_object

    cat.catalog_object(self, self.getPrimaryId(), idxs=idxs)

  File "/opt/zenoss/python/lib/python2.6/site-packages/Zope2-2.12.1-py2.6-linux-x86_64.egg/Products/ZCatalog/ZCatalog.py", line 529, in catalog_object

    update_metadata=update_metadata)

  File "/opt/zenoss/python/lib/python2.6/site-packages/Zope2-2.12.1-py2.6-linux-x86_64.egg/Products/ZCatalog/Catalog.py", line 339, in catalogObject

    index = self.updateMetadata(object, uid)

  File "/opt/zenoss/python/lib/python2.6/site-packages/Zope2-2.12.1-py2.6-linux-x86_64.egg/Products/ZCatalog/Catalog.py", line 278, in updateMetadata

    newDataRecord = self.recordify(object)

  File "/opt/zenoss/python/lib/python2.6/site-packages/Zope2-2.12.1-py2.6-linux-x86_64.egg/Products/ZCatalog/Catalog.py", line 417, in recordify

    if(attr is not MV and safe_callable(attr)): attr=attr()

  File "/opt/zenoss/zenoss/Products/ZenModel/Device.py", line 2303, in details

    dinfo = IInfo(self)

TypeError: ('Could not adapt', <Device at /zport/dmd/Devices/Network/Switch/Cisco/devices/switch-13.customer1.poc>, <InterfaceClass Products.Zuul.interfaces.info.IInfo>)

 


Viewing all articles
Browse latest Browse all 1097

Trending Articles