[ZBX-13421] Cant save cloned host if template was unlinked Created: 2018 Jan 31  Updated: 2022 Mar 07

Status: Reopened
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 3.4.6
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Marcel Jäpel Assignee: Zabbix Development Team
Resolution: Unresolved Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Zabbix 3.4.6 on Ubuntu 14.04


Attachments: PNG File 1_clone_error.png     PNG File 2_template.png     PNG File 3_web_steps.png    
Issue Links:
Duplicate
is duplicated by ZBX-15214 Cannot clone with template unlink Closed
Sub-task
part of ZBX-13531 Cannot full clone a host due to graph... READY TO DEVELOP
Sprint: Sprint 29, Sprint 30, Sprint 31, Sprint 32, Sprint 33, Sprint 34, Sprint 35, Sprint 36, Sprint 37, Sprint 38, Sprint 39, Sprint 40, Sprint 41, Sprint 42, Sprint 43, Sprint 44, Sprint 45, Sprint 46, Nov 2018, Sprint 47, Dec 2018, Sprint 48, Jan 2019, Sprint 56 (Sep 2019), Sprint 55 (Aug 2019), Sprint 49 (Feb 2019), Sprint 50 (Mar 2019), Sprint 51 (Apr 2019), Sprint 52 (May 2019), Sprint 53 (Jun 2019), Sprint 54 (Jul 2019), Sprint 57 (Oct 2019), Sprint 58 (Nov 2019), Sprint 59 (Dec 2019), Sprint 60 (Jan 2020), Sprint 61 (Feb 2020), Sprint 62 (Mar 2020), Sprint 63 (Apr 2020), Sprint 64 (May 2020), Sprint 65 (Jun 2020), Sprint 66 (Jul 2020), Sprint 67 (Aug 2020), Sprint 68 (Sep 2020), Sprint 69 (Oct 2020), Sprint 70 (Nov 2020), Sprint 71 (Dec 2020), Sprint 72 (Jan 2021), Sprint 73 (Feb 2021), Sprint 74 (Mar 2021), Sprint 75 (Apr 2021)

 Description   

Steps to reproduce:

  1. Create a host with 2 templates linked (no dependency/relation between the templates needed!)
  2. Open the host and click "full clone"
  3. unlink one of the templates
  4. click on "add"

Result:

  • Error Can not add host
  • But Details of Error shows that all was successfull
  • Host is not added without details reason why

Expected:

  • Host should be added

Hint:
Full clone works fine if the template selection is the same like the source host.



 Comments   
Comment by Aleksejs Petrovs [ 2018 Feb 12 ]

Hello,

Could you please share the error message? So far I can't reproduce the issue.

Regards,
Aleksejs!

Comment by Marcel Jäpel [ 2018 Feb 13 ]

Hi,

There was much more templates at first try. So I removed the template one by one and try a full clone after each remove again.
This issue ocurs only if there is a template with web check linked as showed on screenshots.

So correct way to reproduce:

  1. Create a host with 2 templates linked
    • one template with a web check inside
    • one template with any other kind of check (e.g simple check / icmp ping)
  2. Open the host and click "full clone"
  3. unlink the non-web-check template
  4. click on "add"
Comment by Kaspars Mednis [ 2018 Mar 09 ]

Confirmed.
Everything works with clone button, host clone is created without removed templates correctly.
Error with the full clone button, even without web checks in templates
Steps to reproduce - see previous post.

Regards,
Kaspars

Comment by Andrejs Griščenko [ 2018 Mar 23 ]

(1) [F] No translation strings changes.

Comment by Andrejs Griščenko [ 2018 Mar 23 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-13421

Generated at Sun Apr 20 20:56:41 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.