Discussion:
Fresh install, dmd and zendmd already broken
zenorr
2013-07-26 18:14:41 UTC
Permalink
zenorr [http://community.zenoss.org/people/zenorr] created the discussion

"Fresh install, dmd and zendmd already broken"

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

--------------------------------------------------------------
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:

***@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
  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
  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>)
--------------------------------------------------------------

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

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
handsy
2013-07-29 09:18:44 UTC
Permalink
handsy [http://community.zenoss.org/people/handsy] created the discussion

"Re: Fresh install, dmd and zendmd already broken"

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

--------------------------------------------------------------
My first question would be "Why are you installing 3.2.1?".
The latest (and greatest) is 4.2.4 - and from my own experience is a massive step in performance improvement.

You can see from http://wiki.zenoss.org/Install_Zenoss this page, that installation on Ubuntu is not officially supported until some time late Q3 2013.


.............although if you http://community.zenoss.org/thread/18706 look here you may have your question answered!
--------------------------------------------------------------

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

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
zenorr
2013-07-29 09:33:30 UTC
Permalink
zenorr [http://community.zenoss.org/people/zenorr] created the discussion

"Re: Fresh install, dmd and zendmd already broken"

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

--------------------------------------------------------------
Thanks for your answer.

We have a lot of scripts interacting with Zenoss 3.x, and they will for sure need changes for 4.x.

Besides, the support for Ubuntu is recent and not yet official. Then, CentOS is not an option for our sysadmins, and lately, the budget to upgrade our 4 or so instances to 4.x is not there yet.

This is why we wanted to use 3.2.1 again, even if 4.x would be better for some cases.

Anyway, I think 3.2.1 is really broken on Ubuntu 12.04, even if I don't have precise reasons to why. This OO-Python/Zope code is two dimensions too complicated for my brain.
--------------------------------------------------------------

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

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
handsy
2013-07-29 10:09:43 UTC
Permalink
handsy [http://community.zenoss.org/people/handsy] created the discussion

"Re: Fresh install, dmd and zendmd already broken"

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

--------------------------------------------------------------
Ah, well if you're stuck with 3.2.1 then I don't think there is any scenario to getting it to work on Ubuntu 12.04. Sorry :|
--------------------------------------------------------------

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

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...