Archived community.zenoss.org | full text search
Skip navigation
Currently Being Moderated

zendmd copy templates,gui is error

VERSION 1 
Created on: Dec 27, 2010 2:31 AM by lt jiao - Last Modified:  Dec 27, 2010 2:33 AM by lt jiao

zenoss 3.0.3

centos 5.4

 

 

zendmd:
source_device = find("192.168.254.1")
template = getattr(source_device.rrdTemplates, 'Juniper')
source_device.JuniperInt._getOb('254')._setObject(template.id, template._getCopy(source_device.JuniperInt._getOb('254'))
commit()
but gui show is error
By gui not be delete
Is there a way to force delete the device(192.168.254.1)?
The server reported the following error:
KeyError 'dmd'
The system has encountered an error. Please reload the page.
see log:
==> event.log <==
------
2010-12-27T15:08:39 ERROR extdirect Cannot find "/dmd/Devices/Network/Switch/YoukuJuniper/devices/192.168.254.1". KeyError: 'dmd'
Traceback (most recent call last):
  File "/opt/zenoss/Products/ZenUtils/extdirect/router.py", line 128, in _processDirectRequest
    result = _targetfn(**data)
  File "/opt/zenoss/Products/Zuul/routers/device.py", line 359, in getUserCommands
    cmds = facade.getUserCommands(uid)
  File "/opt/zenoss/Products/Zuul/decorators.py", line 28, in inner
    return decorator_func(func, *args, **kwargs)
  File "/opt/zenoss/Products/Zuul/decorators.py", line 59, in info
    result = f(*args, **kwargs)
  File "/opt/zenoss/Products/Zuul/facades/devicefacade.py", line 191, in getUserCommands
    org = self._getObject(uid)
  File "/opt/zenoss/Products/Zuul/facades/__init__.py", line 88, in _getObject
    return super(TreeFacade, self)._getObject(uid)
  File "/opt/zenoss/Products/Zuul/facades/__init__.py", line 66, in _getObject
    raise Exception('Cannot find "%s". %s: %s' % args)
Exception: Cannot find "/dmd/Devices/Network/Switch/YoukuJuniper/devices/192.168.254.1". KeyError: 'dmd'
------
2010-12-27T15:08:39 ERROR extdirect 'dmd'
Traceback (most recent call last):
  File "/opt/zenoss/Products/ZenUtils/extdirect/router.py", line 128, in _processDirectRequest
    result = _targetfn(**data)
  File "/opt/zenoss/Products/Zuul/routers/nav.py", line 89, in getContextMenus
    ob = self.context.dmd.unrestrictedTraverse(uid)
  File "/opt/zenoss/lib/python/OFS/Traversable.py", line 278, in unrestrictedTraverse
    raise e
KeyError: 'dmd'
Comments (2)

More Like This

  • Retrieving data ...

More by lt jiao