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

editing multiple hosts removes template-choice imports #1203

Open
vita2 opened this issue Sep 25, 2017 · 1 comment
Open

editing multiple hosts removes template-choice imports #1203

vita2 opened this issue Sep 25, 2017 · 1 comment

Comments

@vita2
Copy link
Contributor

vita2 commented Sep 25, 2017

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

  • Director version (System - About): commit 6c80a20
  • Icinga Web 2 version and modules (System - About): 2.4.2
  • Icinga 2 version (icinga2 --version): r2.7.1-1
  • Operating System and version: Debian Jessie 8.9 (3.16.0-4-amd64)
  • Webserver, PHP versions: nginx 1.6.2-5 + php5-fpm 5.6.30
@vita2
Copy link
Contributor Author

vita2 commented Oct 26, 2017

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

arjanoosting added a commit to arjanoosting/icingaweb2-module-director that referenced this issue Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant