Skip to content
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

If a zone managed via the API endpoint package is emptied, it still stays in the synchronized directory on second master #9175

Open
dgoetz opened this issue Jan 14, 2022 · 2 comments
Labels
area/distributed Distributed monitoring (master, satellites, clients) bug Something isn't working

Comments

@dgoetz
Copy link
Contributor

dgoetz commented Jan 14, 2022

Describe the bug

A customer is reporting this bug and a similar issue was report as Icinga/icingaweb2-module-director#2149, but assumed to be fixed with the latest rework on the zones / cluster sync. So it could be not fixed as I do not the this scenario listed in #6716.

To Reproduce

The goal was to move one last host from a satellite zone to another as the monitoring infrastructure was changed.

  1. Cluster zone of the host was changed in the Director
  2. Change was deployed
  3. Deployment on master one is fine
  4. Reload after synchronization on master two fails as the host is duplicated in both zones
  5. Deleting the old zone or the host file from the old zone manually fixed the problem so the reload works

Expected behavior

The described scenario works without a manual intervention.

Your Environment

  • Version used (icinga2 --version): 2.13.1
@Al2Klimov
Copy link
Member

OK... what's the problem here? That the empty dir is still there? Or that you can't move Objects across zones smoothly?

@michaelimfeld
Copy link

The problem is:

4. Reload after synchronization on master two fails as the host is duplicated in both zones

.. the reload on master-1 fails as well.

The host including all its associated objects still exists in the old zone / is not removed from that zone. This only happens if the host object is the last remaining object of its parent satellite zone.

@Al2Klimov Al2Klimov added the area/distributed Distributed monitoring (master, satellites, clients) label Apr 12, 2022
@Al2Klimov Al2Klimov added the bug Something isn't working label May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/distributed Distributed monitoring (master, satellites, clients) bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants