Icinga / icingaweb2-module-director

The Director aims to be your new favourite Icinga config deployment tool. Director is designed for those who want to automate their configuration deployment and those who want to grant their “point & click” users easy access to the configuration.
https://icinga.com/docs/director/latest
GNU General Public License v2.0
413 stars 202 forks source link

editing multiple hosts removes template-choice imports #1203

Open vita2 opened 7 years ago

vita2 commented 7 years ago

Current Behavior

i've just edited several hosts with the multiedit form. after storing the changes my template-choices were removed from my host objects. it means the lines which imports the chosen templates are gone.

have a look at the following example with two hosts:

zones.d/hof/hosts.conf
object Host "adm.xyz" {
    import "generic-host"
    import "server-linux"
    import "LAN (low latency)"
    import "zone-hof"
...
zones.d/hof/hosts.conf
object Host "backup.xyz" {
    import "generic-host"
    import "server-linux"
    import "fields-smart"
    import "LAN (low latency)"
    import "zone-hof"
...

it becomes to:

zones.d/master/hosts.conf
object Host "adm.xyz" {
    import "generic-host"
    import "server-linux"
...
zones.d/master/hosts.conf
object Host "backup.xyz" {
    import "generic-host"
    import "server-linux"
    import "fields-smart"
...

LAN (low latency) and zone-hof are two of my template-choices.

as you can see the hosts will move to another zone. that is a side effect in cause of the missing zone settings which are included in the template named "zone-hof".

Context

the template-choices fields doesn't appear at the multiedit form:

multieditform-template-choices

Your Environment

vita2 commented 6 years ago

can you reproduce the behavior? unfortunately i hit this issue several times and had to correct the affected host-objects :disappointed_relieved: