On Sep 4, 2008, at 12:09 PM, jimmyatwork13 wrote:
The error below occurs when attempting to use zendeviceload on
version 2.2.3 against a zendevicedump output file from version 2.1.2:
$ zendeviceload -i /tmp/alldevs.xml
Build option infile
Traceback (most recent call last):
File "/home/zenoss/Products/ZenRelations/ImportDevices.py", line
170, in ?
im.loadDatabase()
File "/home/zenoss/Products/ZenRelations/ImportDevices.py", line
159, in loadDatabase
self.loadObjectFromXML()
File "/home/zenoss/Products/ZenRelations/ImportDevices.py", line
151, in loadObjectFromXML
self.handleDevices()
File "/home/zenoss/Products/ZenRelations/ImportDevices.py", line
96, in handleDevices
device.update(self.processLinks(dev))
File "/home/zenoss/Products/ZenRelations/ImportDevices.py", line
71, in processLinks
d['statusMonitors'].append(parse_objid(link.getAttribute('objid'),
KeyError: 'statusMonitors'
Does anyone have an idea as to why this may be happening?
This is happening because we've removed the differentiation of status/
performance monitors in 2.2 and removed statusMonitors completely.
I've opened a ticket to make zendeviceload in 2.2 take this into
account and still work if the statusMonitors exists in the XML file.
You can find the fix referenced in the ticket below.
Ticket #3700: zendeviceload in 2.2 can't load XML from 2.1 zendevicedump
http://dev.zenoss.org/trac/ticket/3700
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users