Hello everyone,
I'm having a problem with some of the devices that I have. I have create a custom property for all of my devices which is of type "string". Now for the majority of the devices that I have, I can safely set the value of the custom property and then click on "save" with no problems. For some of my devices however, I get the following stacktrace:
Type: <class 'zExceptions.BadRequest'>
Value: The property cHOSPPOSVersion does not exist
Traceback (most recent call last): File "/opt/zenoss/lib/python/ZPublisher/Publish.py", line 126, in publish request, bind=1) File "/opt/zenoss/lib/python/ZPublisher/mapply.py", line 77, in mapply if debug is not None: return debug(object,args,context) File "/opt/zenoss/lib/python/ZPublisher/Publish.py", line 46, in call_object result=apply(object,args) # Type s<cr> to step into published object. File "/opt/zenoss/Products/ZenModel/ZenModelBase.py", line 602, in saveCustProperties redirect = self.saveZenProperties(iscustprop, REQUEST) File "/opt/zenoss/Products/ZenRelations/ZenPropertyManager.py", line 450, in saveZenProperties self.setZenProperty(name, value) File "/opt/zenoss/Products/ZenRelations/ZenPropertyManager.py", line 426, in setZenProperty self._updateProperty(propname, propvalue) File "/opt/zenoss/Products/ZenRelations/ZenPropertyManager.py", line 316, in _updateProperty super(ZenPropertyManager, self)._updateProperty(id, value) File "/opt/zenoss/lib/python/OFS/PropertyManager.py", line 205, in _updateProperty raise BadRequest, 'The property %s does not exist' % escape(id) BadRequest: The property cHOSPPOSVersion does not exist
Now I think that my ZOPE DB contains some problems. I tried to do the following using zendmd:
reindex()
commit()
But this did not fix the problem. Can anyone please tell me how to solve it?
Thanks a lot in advance.
UPDATE:
Using Zendmd, I tried the following:
>>> device=dmd.Devices.findDevice("MSDEVICE");
>>> value=getattr(device,"cHOSPPOSVersion")
>>> print value
R4.7.5.0
As you can see, the property seems to be existent for the device, but it's as if Zenoss UI is out of sync with ZOPE.
Do you guys have any suggestions on how to fix this? Thanks.