Discussion:
AttributeError trying to delete Device Class
Katherine Daniels
2012-08-02 15:32:03 UTC
Permalink
Katherine Daniels [http://community.zenoss.org/people/katdaniels] created the discussion

"AttributeError trying to delete Device Class"

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

--------------------------------------------------------------
I'm running into errors trying to delete a device class from Zenoss 3.2.1.

The device class in question shows no devices in it in the Zenoss Core or Zope, however there is a count of (1) next to the device name in the Zenoss Infrastructure tab. When I try to delete the device class in either Zenoss or Zope, I get the following error:

AttributeError packables

Sure enough, there is no 'packables' object visible anywhere in zPort > dmd > [DeviceClass] in Zope. The only object in that particular class in Zope is a monitoring template that isn't present in Zenoss Core and cannot be deleted from Zope (it gives an error "Value: [TemplateName] does not exist").
...     if not isinstance(pmon, PerformanceConf): continue
...     for device in pmon.devices():
...         try:
...             bah = device.primaryAq()
...         except Exception:
...             print "Removing %s from %s" % (device.id, pmon.id)
...             pmon.devices._remove(device)
commit()
sync()
        if device.perfServer():
            perfServer = device.perfServer()
            if not perfServer.devices.hasobject( device ):
                perfServer.devices._add( device )
commit()
sync()
Which also completed successfully but I am still getting the same error afterwards trying to delete the device class. Same with this script here: http://community.zenoss.org/servlet/JiveServlet/download/2003-13132-47157-2585/zenfixit.py.txt.zip http://community.zenoss.org/servlet/JiveServlet/download/2003-13132-47157-2585/zenfixit.py.txt.zip

Does anyone have any information about how to deal with the 'packables' AttributeError and successfully delete this device class? I have exhausted my Zenoss/Zope knowledge at this point, so any information on how to fix this would be much appreciated. Thanks!
--------------------------------------------------------------

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

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