Failed to delete infraEnv, existing hosts bound and not installed

Solution Verified - Updated -

Issue

  • Argocd is unable to delete the infraenv due to the stale entry of the host in the assisted-installer database.
  • When I tried to deprovision that cluster, the following error appeared in the assisted-installer logs:

    msg="failed to run pre-deletion cleanup for finalizer infraenv.agent-install.openshift.io/ai-deprovision on resource cluster-test cluster-test" func="github.com/openshift/assisted-service/internal/controller/controllers.(*InfraEnvReconciler).Reconcile" file="/assisted-service/internal/controller/controllers/infraenv_controller.go:133" error="Failed to delete infraEnv, existing hosts bound and not installed"
    

Environment

  • Red Hat Advanced Cluster Management 2.12
  • OpenShift Container Platform 4.16

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content