Windows agents assume parent nodes being in master zone
Open
@lippserd is already working on this.
Since Dec 5, 2022.
area/distributed
area/setup
area/windows
bug
needs feedback
ref/IP
TBD
- Dominant language
- C++
- Stars
- 2.2k
- Forks
- 616
- Avg merge
- 5d 6h
- Merged PRs (30d)
- 10
Description
To Reproduce
- Setup a master
- Setup a satellite
- Setup an agent, let it connect to the satellite
Describe the bug
Now zones.conf says:
/*
* Generated by Icinga 2 node setup commands
* on 2022-12-01 14:56:58 -0000
*/
object Endpoint "aklimov-43484-2.novalocal" {
host = "10.27.1.73"
port = "5665"
}
object Zone "master" { // <-- master zone WRONG
endpoints = [ "aklimov-43484-2.novalocal" ] // <-- satellite node
}
object Endpoint "desktop-il7pl8c" {
}
object Zone "desktop-il7pl8c" {
endpoints = [ "desktop-il7pl8c" ]
parent = "master" // <-- master zone WRONG
}
object Zone "global-templates" {
global = true
}
object Zone "director-global" {
global = true
}
Expected behavior
zones.conf correctly reflects the actual cluster subtree.
Substitute master with aklimov-43484-2.novalocal above.
Your Environment
- Version used (
icinga2 --version): 2.13.6 - Operating System and version: Windows 10
Additional context
ref/IP/43484
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.