[ZBX-13434] Incorrect trigger dependencies are set by copying triggers to multiple hosts Created: 2018 Feb 05  Updated: 2024 Apr 10  Resolved: 2018 Mar 02

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 3.0.14
Fix Version/s: 3.0.16rc1, 3.4.8rc1, 4.0.0alpha5, 4.0 (plan)

Type: Patch request Priority: Major
Reporter: Kotaro Miyashita Assignee: Ivo Kurzemnieks
Resolution: Fixed Votes: 0
Labels: frontend, trigger
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File zabbix-3.0.13-multiple_dep_trigger_copy.patch    
Team: Team B
Team: Team B
Sprint: Sprint 27, Sprint 28
Story Points: 3

 Description   

We met a problem when copying triggers which has trigger dependencies to multiple hosts.
All copied triggers have dependency on the same trigger of one of the hosts.

We made a patch and found out it resolved this problem.

How to reproduce the problem:

1. Prepare 4 hosts
orig_host
Host1
Host2
Host3

2. Create 2 triggers on orig_host.
TriggerA
TriggerB

3. Add dependency on TriggerB to TriggerA

TriggerA
Dependencies
orig_host: triggerB

4. Copy two triggers to other three hosts by using Mass editing options.
Mark the checkboxes of them and press copy button then select three hosts and press Copy button.

5. The result is as follows.

All TriggerA triggers existing on the hosts depend on Host1:TriggerB.

Host1
TriggerA
Depends on:
Host1: TriggerB

Host2
TriggerA
Depends on:
Host1: triggerB

Host3
TriggerA
Depends on:
Host1: triggerB

They should be set as follows.

Host1
TriggerA
Depends on:
Host1: TriggerB

Host2
TriggerA
Depends on:
Host2: triggerB

Host3
TriggerA
Depends on:
Host3: triggerB



 Comments   
Comment by Kaspars Mednis [ 2018 Feb 05 ]

Confirmed, with the copy option to multiple hosts, only on the first host trigger dependencies are set correctly.

On all other hosts, trigger dependencies are set to the first host.

Comment by Ivo Kurzemnieks [ 2018 Feb 20 ]

(1) No translation string changes.

sasha CLOSED

Comment by Ivo Kurzemnieks [ 2018 Feb 20 ]

RESOLVED in svn://svn.zabbix.com/branches/dev/ZBX-13434

Comment by Ivo Kurzemnieks [ 2018 Mar 01 ]

Fixed in:

  • pre-3.0.16rc1 r78189
  • pre-3.4.8rc1 r78191
  • pre-4.0.0alpha5 r78195
Generated at Tue Apr 16 11:28:36 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.