panoptician
2012-12-13 23:05:20 UTC
panoptician [http://community.zenoss.org/people/panoptician] created the discussion
"Problems deleting devices via REST"
To view the discussion, visit: http://community.zenoss.org/message/70525#70525
--------------------------------------------------------------
I recently decided to try automating adds/deletions using REST calls. I was successful art first, but after crawling my infrastructure to load devices, something seems to have gone wrong with deletions. I was successfully using this URL at first:
http://admin:***@zenoss:8080/zport/dmd/Devices/Server/Linux/devices/10.189.183.116/deleteDevice http://admin:***@zenoss:8080/zport/dmd/Devices/Server/Linux/devices/10.189.183.116/deleteDevice
but now when I run that against a device, I no longer receive any output and the device is left in limbo. It's no longer visible from the web UI, but trying to re-add it via REST gives the error that the device already exists. Running a second deleteDevice gives output, claiming that the device DOESN'T exist.
I found that I'm able to re-add the device using the web UI, so apparently there are different checks on if a device does or does not exist. Besides any cruft that may be getting created in the database, my primary worry is the inability to get output from the initial deleteDevice command so that I can test the successfulness. Might anyone hazard to guess what's going wrong here? I've tried doing a zencatalog --reindex so far without luck.
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70525#70525]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"Problems deleting devices via REST"
To view the discussion, visit: http://community.zenoss.org/message/70525#70525
--------------------------------------------------------------
I recently decided to try automating adds/deletions using REST calls. I was successful art first, but after crawling my infrastructure to load devices, something seems to have gone wrong with deletions. I was successfully using this URL at first:
http://admin:***@zenoss:8080/zport/dmd/Devices/Server/Linux/devices/10.189.183.116/deleteDevice http://admin:***@zenoss:8080/zport/dmd/Devices/Server/Linux/devices/10.189.183.116/deleteDevice
but now when I run that against a device, I no longer receive any output and the device is left in limbo. It's no longer visible from the web UI, but trying to re-add it via REST gives the error that the device already exists. Running a second deleteDevice gives output, claiming that the device DOESN'T exist.
I found that I'm able to re-add the device using the web UI, so apparently there are different checks on if a device does or does not exist. Besides any cruft that may be getting created in the database, my primary worry is the inability to get output from the initial deleteDevice command so that I can test the successfulness. Might anyone hazard to guess what's going wrong here? I've tried doing a zencatalog --reindex so far without luck.
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/70525#70525]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]