Description of problem: When running `openshift-install create cluster` I get the following error: ~~~ ERROR Error: your query returned no results, please change your search criteria and try again ERROR ERROR on ../../../../tmp/openshift-install-530802440/template/main.tf line 11, in data "ovirt_templates" "osImage": ERROR 11: data "ovirt_templates" "osImage" { ~~~ Looking at `data/data/ovirt/template/main.tf`[1] we can see it is looking for a template named `name=${var.openstack_base_image_name}` OR `name=Blank` I don't have a template named Blank, in my environment mine is named Blank1 and this is not captured in the above search criteria. Changing `name=Blank` to `name=Blank*` captures my template name and allows the install to complete. I believe the template named `Blank` is the default in Ovirt, I am not sure how mine ended up as 'Blank1' but it seems to be a pretty easy issue to mitigate. [1]https://github.com/openshift/installer/blob/30682e748f91c47b2f612fee65cc19926ca59965/data/data/ovirt/template/main.tf#L11-L16 Version-Release number of the following components: ~~~ $ openshift-install version openshift-install 4.5.0-0.okd-2020-07-14-153706-ga [root@ovirt ~]# rpm -q ansible ansible-2.9.10-1.el7.noarch [root@ovirt ~]# ansible --version ansible 2.9.10 [root@ovirt ~]# rpm -q ovirt-engine ovirt-engine-4.3.10.4-1.el7.noarch ~~~ How reproducible: Every time. It can be manually worked around by creating a template called "Blank" in Ovirt.
Douglas is not available, re-assigning and re-evaluating for upcoming sprint.
due to capacity constraints we will be revisiting this bug in the upcoming sprint
Need to understand in what situation make sense to not have blank template around.
Moving back to NEW, no relevant patch open for this bug.
due to capacity constraints, we will be revisiting this bug in the upcoming sprint
Still an issue, will be fixed when we switch to the new client library and add template finding logic.
(In reply to Janos Pasztor from comment #14) > Still an issue, will be fixed when we switch to the new client library and > add template finding logic. Will be fixed by https://github.com/openshift/installer/pull/5034
Added a PR in go-ovirt-client that attempts to resolve this issue by scanning templates if they are truly blank.
Fixed in 2082283
(In reply to Janos Bonic from comment #21) > Fixed in 2082283 Fixed in bz 2082283
The issue is gone. Such terraform errors no longer visible in the installer. Also important to state that it's no longer possible to delete the 'Blank' Template from the RHV manager. It is possible to change the name to 'Blank1' or to any other name. Edit the the template's description and comment. Installation with blank template called 'Blank1' is successful now. Verified on - 4.11.0-0.nightly-2022-06-22-235234 and rhvm-4.5.1.2-0.11.el8ev.noarch
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: OpenShift Container Platform 4.11.0 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:5069