New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dev.icinga.com #11618] problems with deleting API objects w/ Classic UI #4132
Comments
Updated by kowallix on 2016-04-20 15:22:54 +00:00 After restarting icinga2 both UI show the correct configuration.
But then I then repeat the procedure:
and I'm back at the initial problem. |
Updated by mfriedrich on 2016-04-22 08:09:22 +00:00
|
Updated by kowallix on 2016-04-22 13:18:19 +00:00 problem does not go away when we deactivate WebUI (actually the IDO Modul) It is possible to delete a host and all it's services using cascade and then recreate the host and the services we want to keep. |
Updated by mfriedrich on 2016-05-09 11:31:48 +00:00
The status files read by the Classic UI are not updated when those objects are added/deleted but in a given interval by the StatusDataWriter feature (when the objects cache is invalidated). In case you restart the daemon, the files are purged and rewritten. |
Updated by kowallix on 2016-05-30 11:20:48 +00:00 I can confirm the restart part. objects.cache is updated when I delete a service - but the service is still present in objects.cache config for the stastusdatawriter is all default: cat /etc/icinga2/features-enabled/statusdata.conf
library "compat" object StatusDataWriter "status" { } |
Updated by kowallix on 2016-06-14 08:35:45 +00:00 when I delete the service the icinga touches the object.cache file - according to mtime |
Updated by mfriedrich on 2016-08-08 15:29:29 +00:00
|
Updated by mfriedrich on 2016-08-08 16:50:02 +00:00
I'm not able to reproduce this. My StatusDataWriter config is the default without any modifications. Tested on Fedora 24. Put
Delete
I'm therefore closing this issue. |
Updated by mfriedrich on 2016-08-08 16:51:00 +00:00
|
Updated by kowallix on 2016-08-09 08:54:30 +00:00 My problem is that I can't delete a service belonging to the host object (deleting the host itself works) curl -k -s -u icinga:icinga -H 'Accept: application/json' -X PUT 'https://monitoring.something.de:5665/v1/objects/hosts/host.something.de' -d '{attrs but the service is still present in classic UI |
This issue has been migrated from Redmine: https://dev.icinga.com/issues/11618
Created by kowallix on 2016-04-19 11:49:04 +00:00
Assignee: (none)
Status: Rejected (closed on 2016-08-08 16:50:01 +00:00)
Target Version: (none)
Last Update: 2016-08-09 08:54:30 +00:00 (in Redmine)
I have several problems when deleting objects.
I can't delete a host object without using cascade
I have a host with several services. Then I delete the services. Then I try to delete the host itself.
Response is:
"Object cannot be deleted because other objects depend on it. Use cascading delete to delete it anyway"
But there are no other objects which depend on it. (according to API and Web2 UI - Classic UI still has host and services - see problem 1)
When I delete a host using cascade and then recreate it, it doesn't show up in Web2 UI
Result: Host is visible in ClassicUI but not in the Web2UI
The text was updated successfully, but these errors were encountered: