Discussion:
Error adding devices
jeff.thorne
2013-10-25 13:40:48 UTC
Permalink
jeff.thorne [http://community.zenoss.org/people/jeff.thorne] created the discussion

"Error adding devices"

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

--------------------------------------------------------------
I have tried to add one device and it keeps failing to add it. The log from adding device is below. I haven't changed anything to it all I have done has been updates to the server itself. We are running 4.2.3.

2013-10-25 08:17:06,730 INFO zen.Job: Job a485001e-1950-49d5-869e-00158bbe82ee (Products.ZenModel.ZDeviceLoader.DeviceCreationJob) received
2013-10-25 08:17:06,744 INFO zen.Job: Beginning job Add Device Products.ZenModel.ZDeviceLoader.DeviceCreationJob
2013-10-25 08:17:06,829 ERROR zen.Job: Encountered error. Rolling back initial device add.
Traceback (most recent call last):
File "/opt/zenoss/Products/ZenModel/ZDeviceLoader.py", line 231, in _run
createDevice()
File "/opt/zenoss/lib/python/ZODB/transact.py", line 44, in g
r = f(*args, **kwargs)
File "/opt/zenoss/Products/ZenModel/ZDeviceLoader.py", line 227, in createDevice
deviceProps)
File "/opt/zenoss/Products/ZenModel/ZDeviceLoader.py", line 135, in load_device
**deviceProperties)
File "/opt/zenoss/Products/ZenModel/Device.py", line 135, in manage_createDevice
checkDeviceExists(context, deviceName, manageIp, performanceMonitor)
File "/opt/zenoss/Products/ZenModel/Device.py", line 102, in checkDeviceExists
raise DeviceExistsError("Ip %s exists on %s" % (ip, dev.id),dev)
DeviceExistsError: Ip 172.16.0.236 exists on dc01.macc040.net
2013-10-25 08:17:06,831 ERROR zen.Job: Job a485001e-1950-49d5-869e-00158bbe82ee raised exception
2013-10-25 08:17:06,832 ERROR zen.Job: 
Traceback (most recent call last):
File "/opt/zenoss/Products/Jobber/zenjobs.py", line 23, in 
from celery.concurrency.processes.forking import freeze_support
--------------------------------------------------------------

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

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
jcurry
2013-10-25 13:53:24 UTC
Permalink
jcurry [http://community.zenoss.org/people/jcurry] created the discussion

"Re: Error adding devices"

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

--------------------------------------------------------------
The problem is that the device has already been added - look towards the end of the log where it says:

DeviceExistsError: Ip 172.16.0.236 exists on dc01.macc040.net

Perhaps you tried to add it before and maybe have not refreshed the GUI so it didn't appear, and then added it again?

Alternatively, if you are not trying to add the device dc01.macc040.net again, you are trying to add a device that has the same IP address as dc01.macc040.net - 172.16.0.236.

Cheers,
Jane
--------------------------------------------------------------

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

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
jeff.thorne
2013-10-25 13:58:05 UTC
Permalink
jeff.thorne [http://community.zenoss.org/people/jeff.thorne] created the discussion

"Re: Error adding devices"

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

--------------------------------------------------------------
Changed the IP on dc01 to the correct one and still trying to add 172.16.0.236. It keeps failing with the same error. Would it help if I just deleted dc01 and then add the 172.16.0.236. Could the IP be stuck somewhere in Zenoss even if it is not being used?
--------------------------------------------------------------

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

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
jcurry
2013-10-25 14:10:03 UTC
Permalink
jcurry [http://community.zenoss.org/people/jcurry] created the discussion

"Re: Error adding devices"

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

--------------------------------------------------------------
You might try modelling the dc01 device now that you have changed it's address.  Presumably it should not have 172.16.0.236 at all???  It may still have that as an interface address.  The modeler will get to it in the next 12 hours and update all the data for dc01, but I would model just that device - Action (gear) icon from the bottom of the left-hand menu when you are on the device's main page.  Check and see what interfaces it has afterwards.

Hopefully that should sort it out.  If not, I might delete the dc01 device, add your new one, and then re-discover dc01 again.

Cheers,
Jane
--------------------------------------------------------------

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

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
jeff.thorne
2013-10-25 14:14:03 UTC
Permalink
jeff.thorne [http://community.zenoss.org/people/jeff.thorne] created the discussion

"Re: Error adding devices"

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

--------------------------------------------------------------
Ok, will give that a try and sees what happens. Will let you know if that fixes the problem or not.

Thanks
--------------------------------------------------------------

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

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...