Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-27226

Cloning a host with templates that have LLD elements fails with missing dependencies

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 7.0.21
    • Frontend (F)
    • None
    • Ubuntu server 22.04 LTS

      Steps to reproduce:

      1. Locate a Host with templates and macros you would like to duplicate for a new host
      2. Open that host, click Clone. Give it new name, visible name, new ip, change macros, if needed.
      3. Try to save. Receive an error about missing trigger dependencies. Even removing the template that the trigger would belong to doesn't resolve the issue.
      4. Only solution I have found so far is create a host from scratch and add templates manually to that, set up requires macros manually as well.
      5. It seems like the clone option is trying to include elements generated by LLD, instead of ignoring those as I would expect (they need to be rediscovered on the new host anyway)

      Result:
      Screenshot at point 3:

      Removing Docker template and trying again:


      I get the same issue if I remove the Docker template before trying to save, but natually after I press 'Clone', as I need it on the existing host.

      Expected:

      When cloning a host, all discovered elements via LLD should be discarded before trying to create the host. 
      Creating a host manually and adding the same templates as the host we wanted to clone had, works just fine, but takes several minutes versus a few seconds.

            zabbix.support Zabbix Support Team
            mmopwc Martin Møller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: