I just remembered there is another way to reindex things from
zendmd. To do all zenoss indexes:
>>> index()
>>> commit()
To just do the Devices index:
>>> dmd.Devices.reIndex()
>>> commit()
-EAD
On Jan 31, 2007, at 2:54 PM, Erik A. Dahl wrote:
Allen,
I think you device index has gotten messed up. Not sure exactly
how. This is causing move of a device to fail because its failing
to find the correct device. Anyway can you try rebuilding the
index to see if it fixes the problem. Do the following:
Go to index through the ZMI:
http://tilde:8080/zport/dmd/Devices/deviceSearch/manage
Go to the Advanced tab and click on the "Update Catalog" button.
Then try searching for the device. If this works try the move.
BTW how did you get two devices with the same name into the database?
-EAD
On Jan 30, 2007, at 2:33 PM, Marc Irlandez wrote:
Allen,
We've created a ticket for this bug:
http://dev.zenoss.org/trac/ticket/940
We'll be fixing it shortly. Thanks for the info.
On Jan 30, 2007, at 10:25 AM, Allen Sanabria wrote:
These errors started happening when i started to use the dell oma
software and started to recollect the dell devices.
First thng I noticed was there was now duplicate devices for the
dell
devices. The duplicates would only show up if you did a search
for them
but not in the device tree.
So I decided to delete the dulpicates which in fact deleted the
original
and duplicate device. I recreated the device and tried putting the
device back into the proper tree after I created the device and
these
errors started to happen.
from the error logs
2007-01-30T10:12:53 WARNING zen.DeviceClass bad path
'/zport/dmd/Devices/Server/Linux/Dell/cbsstatic/devices/
ws2044.bc.cbsig.net' in index deviceSearch
------
2007-01-30T10:12:53 ERROR Zope.SiteErrorLog
http://ws2047.bc.cbsig.net:8080/zport/dmd/Devices/Server/Linux/
Dell/moveDevices
Traceback (most recent call last):
File "/opt/zenoss/lib/python/ZPublisher/Publish.py", line 114, in
publish
request, bind=1)
File "/opt/zenoss/lib/python/ZPublisher/mapply.py", line 88, in
mapply
if debug is not None: return debug(object,args,context)
File "/opt/zenoss/lib/python/ZPublisher/Publish.py", line 40, in
call_object
result=apply(object,args) # Type s<cr> to step into published
object.
File "/usr/opt/zenoss/Products/ZenModel/DeviceClass.py", line
223, in
moveDevices
source = dev.deviceClass()
AttributeError: 'NoneType' object has no attribute 'deviceClass'
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users