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 #12988] Satellite zone setup #523
Comments
Updated by mfrosch on 2016-10-26 14:56:33 +00:00
|
Updated by mfrosch on 2016-10-26 14:57:56 +00:00
|
Updated by mfrosch on 2016-10-26 14:58:01 +00:00
Yes this is currently a known problem, the Endpoint is actually written to the wrong zone. But we want to encourage you to define Zone and Endpoint outside of Director. Either way you see it, the cluster configuration can not be created by Director, but built on. See also #12778 There is also not a clean way to update "external" objects, like commands and pre-existing Zone data without re-kickstarting. There is #12183 for that |
Updated by kelemen on 2016-10-27 06:08:11 +00:00 Thank you for your reply, Markus! When you say
Could you provide some examples of such configuration? Thanks! |
Updated by mfrosch on 2016-10-27 06:38:48 +00:00 kelemen wrote:
Well, the problem with rolling out Zone/Endpoint configuration is, that you cannot configure all nodes with a proper config. They have to be configured, and connected before the Director can deploy config to them. Or else, the config sync would not be working. What we want to keep:
What you could do:
What is not possible:
What we want to recommend the user, is to take care of that configuration via config mgmt. So the director knows what zones exist, but does not actually manage the object configuration. |
Updated by kelemen on 2016-10-27 06:53:49 +00:00 Sorry for probably a dumb question, but, if I understood correctly, you recommend to configure the cluster with all the zones/endpoints and install/kickstart Director later. So all the zones will be imported as external objects that I will not be able to edit with Director. But what if I need to change something afterwards, how should I sync those changes with Director? |
Updated by mfrosch on 2016-10-27 07:08:07 +00:00 kelemen wrote:
Yes, that's something that is missing currently, or better, you would have to re-kickstart (which is possible now without breaking things).
We are still discussing how to do it. |
Updated by kelemen on 2016-10-27 07:33:24 +00:00 Thank you, Markus! May you explain the re-kickstart process in more detail please? How should I perform it? I am unable to find any info about it. |
Updated by log1c on 2016-10-27 14:53:20 +00:00 if I am not mistaken it should work like this: create kickstart.ini in /etc/icingaweb2/modules/director/
then run the following command
taken from here: https://github.com/Icinga/icingaweb2-module-director/blob/master/doc/03-Automation.md#kickstart-an-empty-director-database |
Updated by mfrosch on 2016-10-31 09:58:02 +00:00 There will be a new URL `/icingaweb2/director/kickstart` where you always can update external objects. |
Updated by tgelf on 2016-10-31 12:32:47 +00:00 mfrosch wrote:
The url is already available ; |
Updated by kelemen on 2016-10-31 12:34:06 +00:00 tgelf wrote:
Thanks! This looks very useful! |
Updated by tgelf on 2016-12-13 10:36:26 +00:00
Closing this as it seems to work, we'll try to get such things easier with the linked issues. |
This issue has been migrated from Redmine: https://dev.icinga.com/issues/12988
Created by kelemen on 2016-10-26 12:34:29 +00:00
Assignee: (none)
Status: Closed (closed on 2016-12-13 10:36:26 +00:00)
Target Version: (none)
Last Update: 2016-12-13 10:36:26 +00:00 (in Redmine)
Hi,
I have a "master" zone in director that has two servers.
The config looks like this:
Then I want to create a satellite zone named "nl", I do it with the director module (see nl-zone.jpg).
For some reason, director puts the zone config into the "master" zone file (see nl-zone-preview.jpg)
Then I create an endpoint (see icinga2-client01-endpoint.jpg).
Director puts the endpoint config to the "nl" endpoint file as expected (see icinga2-client01-endpoint-preview.jpg).
Then I go and manually set up the icinga2-client01.something.com server so it is able to communicate with master and receive the configuration files.
I want to keep all the zone/endpoint-related settings in the director, so I comment out the following line in /etc/icinga2/icinga2.conf once the configs have been synced:
Then I check the configuration in order to check that everything is fine:
Appears that there are no data about the "nl" zone in the synced configs.
Additionally, there are no info about "master" and it's endpoints.
How can I fix that?
I really want to keep all the zone/endpoint-related settings in the director.
I want to choose which zones will be synced with servers in "nl" zone. Is that possible? Am I missing something?
Thanks!
Attachments
Relations:
The text was updated successfully, but these errors were encountered: