Description of problem: Can't upload image to different datacenter when in another datacenter template already exists. Using the same template_name Version-Release number of selected component (if applicable): rhv 4.2 oVirt.image-template (1.1.6) ansible-2.5.1-1.el7.noarch How reproducible: always Steps to Reproduce: 1. have environment with two datacenters 2. upload image to first datacenter (specified by cluster in first DC) will work 3. upload image to second datacenter (specified by cluster in second DC) will not work. Role recognizes that template with that name already existing in system
If I were to guess, I'd say the issue is @ https://github.com/oVirt/ovirt-ansible-image-template/blob/master/tasks/qcow2_image.yml#L61 Care to try and send a patch upstream?
It is not that easy (one line fix) - error is also in https://github.com/oVirt/ovirt-ansible-image-template/blob/4a41b4a9fa57fe08aede3dcee939d285e3f68c2e/tasks/qcow2_image.yml#L51 while fetching wrong storage domain (from wrong datacenter). It can't be filtered easily by pattern: "cluster={{template_cluster}}" while fetching storage domains because storage domain dictionary doesn't have clusters.
This bugzilla is included in oVirt 4.2.5 release, published on July 30th 2018. Since the problem described in this bug report should be resolved in oVirt 4.2.5 release, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report.