Guest User

Untitled

a guest
Jan 22nd, 2016
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 KB | None | 0 0
  1. I have then tried to readd the device, but now I get a KeyError. I've tried to add the device with a new name (that was not in DNS) and then reset the IP to the IP of the old device, and apparently it is the IP that is causing the error.
  2.  
  3. I've seen this in the event.log:
  4.  
  5. 2016-01-21T11:07:45 ERROR zen.Zuul 'hostname'
  6. Traceback (most recent call last):
  7. File "/opt/zenoss/Products/Zuul/routers/device.py", line 651, in resetIp
  8. info.ipAddress = ip # Set to empty causes DNS lookup
  9. File "/opt/zenoss/Products/Zuul/infos/device.py", line 200, in setIpAddress
  10. msg = self._object.setManageIp(ip)
  11. File "/opt/zenoss/Products/ZenModel/Device.py", line 950, in setManageIp
  12. if self._isDuplicateIp(ip):
  13. File "/opt/zenoss/Products/ZenModel/Device.py", line 906, in _isDuplicateIp
  14. dev = ipMatch.device()
  15. File "/opt/zenoss/Products/ZenModel/IpAddress.py", line 234, in device
  16. if iface: return iface.device()
  17. File "/opt/zenoss/Products/ZenModel/OSComponent.py", line 46, in device
  18. if os: return os.device()
  19. File "/opt/zenoss/Products/ZenModel/OperatingSystem.py", line 158, in device
  20. return self.getPrimaryParent()
  21. File "/opt/zenoss/Products/ZenRelations/PrimaryPathObjectManager.py", line 83, in getPrimaryParent
  22. return self.__primary_parent__.primaryAq()
  23. File "/opt/zenoss/Products/ZenRelations/PrimaryPathObjectManager.py", line 78, in primaryAq
  24. raise KeyError(self.id)
  25. KeyError: 'hostname'
  26. I've tried to navigate to the IP in question (via Infrastructure -> Networks) and I then get a yellow popup with "KeyError 'hostname'"
  27.  
  28. Even with the device deleted and no device named "hostname" am I able to browse the subnet.
  29.  
  30. I've run zodbscan, it doesn't throw any errors regarding this.
  31.  
  32. I've run zennetworkclean, and it says all networks are fine
  33.  
  34. I've run findposkeyerror and it doesn't say that there are any errors.
  35.  
  36. I tried via zendmd to:
  37.  
  38. >>> d=find('hostname-on-same-subnet-as-defective-ip')
  39. >>> ipMatch = d.getNetworkRoot().findIp("defective-ip")
  40. >>> ipMatch.device()
  41. Traceback (most recent call last):
  42. File "<console>", line 1, in <module>
  43. File "/opt/zenoss/Products/ZenModel/IpAddress.py", line 234, in device
  44. if iface: return iface.device()
  45. File "/opt/zenoss/Products/ZenModel/OSComponent.py", line 46, in device
  46. if os: return os.device()
  47. File "/opt/zenoss/Products/ZenModel/OperatingSystem.py", line 158, in device
  48. return self.getPrimaryParent()
  49. File "/opt/zenoss/Products/ZenRelations/PrimaryPathObjectManager.py", line 83, in getPrimaryParent
  50. return self.__primary_parent__.primaryAq()
  51. File "/opt/zenoss/Products/ZenRelations/PrimaryPathObjectManager.py", line 78, in primaryAq
  52. raise KeyError(self.id)
  53. KeyError: 'hostname'
  54.  
  55.  
  56. Somebody has hints to how I can cleanup the IPs so I can reuse this particular IP?
Advertisement
Add Comment
Please, Sign In to add comment