-
Problem report
-
Resolution: Unresolved
-
Trivial
-
None
-
7.0.21
-
None
-
Ubuntu server 22.04 LTS
Steps to reproduce:
- Locate a Host with templates and macros you would like to duplicate for a new host
- Open that host, click Clone. Give it new name, visible name, new ip, change macros, if needed.
- 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.
- 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.
- 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.