-
Notifications
You must be signed in to change notification settings - Fork 580
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
Problem with zones after upgrading to 2.11 #7519
Comments
Hi, thanks for all the details. I'm trying to follow, so let's sum this up what I get:
It is a chicken egg problem. With the cluster config sync stages, one improvement was also made - to not include every directory automatically, but only those where Zone objects have been configured. Even this implementation required us to guess from config items (not objects) in advance, but tests have proven reliability. The problem you have - since the agent zone object hides in another zone, the config compiler only reads the satellite zone and all its content. At this stage it doesn't know about the config items/objects in there, excluding your agent Zone objects. They will never be synced. Configuring and syncing Zone objects via the zones.d directory inside the cluster config sync was never supported nor intended in its design. As said, chicken egg problem. If someone says - fix this, I frankly and honestly have no idea how. The easiest fix is to move the agent Zone objects out of zones.d into the zones.conf of both the masters and satellites. You can also do something like Disclaimer: That's only needed for agents which have their own zone for the cluster config sync. command_endpoint agents don't require this step. Cheers, |
I supposed that my setup was somewhat non-standard and hackish, but until now I followed the golden rule "if-it-works-don't-touch-it" :) |
I also have the same problem with icinga2 2.11. We use Director to configure Zone and Endpoint for master and satellite cluster and don't know how to fix with Director. |
I expected things to break with changing this, unfortunately the "other" issue had more importance for making troubleshooting tremendously hard with left-over zones and what not. If someone comes up with a better solution, or algorithm, feel free to share. My design thoughts are illustrated in detail in #6716 which should help understand the root cause and motivation. Thanks for your understanding, this helps with the always "bad" feedback after pushing a release. You are using an unsupported scenario unfortunately. While it sounds "easy" to use the Director infrastructure tab, and not care about Here's some collected infos on the matter: https://community.icinga.com/t/icinga-2-11-released/2255/2 Continue on the community forums please. |
@ctrlaltca We're discussing how we can avoid such short comings, we just were not aware that one can build it this way. With 2.11, we tried to be more strict following along for future features we plan to add. One thing definitely is making the Zone/Endpoint object handling easier. I'm not sure yet how, but rest assured we will be working on this in the future. Meanwhile we will be discussing next week, if we can "fix the fix", but this is somewhat a Zone inception, a really tough one. For now, I'd suggest rolling back to 2.10.x unfortunately - unless you have adjusted and fixed it already, and are in need of the more stable cluster itself. Have a nice weekend, |
Describe the bug
Hi, I have some problems after upgrading a 2.10 installation to 2.11.
I have one master, one satellite and a few agents; the configuration is top-bottom.
MASTER
The master defines the satellite endpoint and zone in the main zones.conf:
The directory
zones.d/srv06.foobar.local/
contains a hosts.conf file with the definition of the host srv06.foobar.local:The same directory
zones.d/srv06.foobar.local/
also contains a childs.conf file with the definition of the agent's endpoints and zones:Each agent then has its own directory, eg.
zones.d/srv01.foobar.local/
containing a hosts.conf file with the host definition:After upgrading to icinga 2.11, the configuration check spits some warnings:
As the warning implies, the directories containing the agent hosts definitions are skipped, and i noticed the agents failed the pre-reload config check.
I found this note in the "Upgrading to v2.11 - Config Sync":
I then tried to move the endpoint and zone definitions on the master from
zones.d/srv06.foobar.local/childs.conf
to the mainzones.conf
.The master now doesn't complain anymore (no warning about ignored directories), but these zones are not synced to the satellite anymore, as I can see in the satellite log:
Where should i put these zones in order for the master to correctly sync them to the satellite?
icinga2 --version
): 2.11.0-1icinga2 feature list
): api checker command ido-mysql mainlog notificationicinga2 daemon -C
): see abovezones.conf
file (oricinga2 object list --type Endpoint
andicinga2 object list --type Zone
) from all affected nodes.The text was updated successfully, but these errors were encountered: