Description of problem: The destroy cluster command do not remove the template created during the OCP deploy. It keep consuming resource from oVirt. The issue is related to: https://github.com/openshift/installer/blob/85092be98f2e913e3ea9b45622b73c3bc44d6e98/pkg/destroy/ovirt/destroyer.go#L120 The search uses: "name=%s" but the template is created using: TAGNAME-rhcos making the search cmd fail.
(In reply to Douglas Schilling Landgraf from comment #0) > Description of problem: > > The destroy cluster command do not remove the template created during the > OCP deploy. It keep consuming resource from oVirt. > > The issue is related to: > https://github.com/openshift/installer/blob/ > 85092be98f2e913e3ea9b45622b73c3bc44d6e98/pkg/destroy/ovirt/destroyer.go#L120 > > The search uses: "name=%s" but the template is created using: TAGNAME-rhcos > making the search cmd fail. The template name ${cluster-id}-rhcos and the search is already a wildcard search. I think the real reason is a bug in pkg/asset/cluster/ovirt/ovirt.go which gzaidman sent a PR to not long ago but I don't see it for some reason.
my bad, the UI probably adds wildcards? from the sdk wildcard are not added.
Verified on: 4.6.0-0.nightly-2020-07-22-074636 Steps: 1. # openshift-install create cluster --log-level=debug --dir=resources 2. once it's install, destroy it: # openshift-install destroy cluster --dir=resources 3. check on engine UI is template is there (Compute -> Templates) Results: template created for ocp install deleted
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 (OpenShift Container Platform 4.6 GA Images), 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/RHBA-2020:4196