Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-26515

[vsphere] IPI destroy cluster failed to delete TagCategory

XMLWordPrintable

    • No
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, after you issued the `openshift-install destroy cluster` command to remove a cluster that you deployed on a VMware vSphere instance with installer-provisioned infrastructure, a `TagCategory` resource persisted on your VMware vSphere instance. Now, this issued is fixed so that the `TagCategory` resource no longer persists when you delete a cluster by using the command. (link:https://issues.redhat.com/browse/OCPBUGS-26515[*OCPBUGS-26515*]).
      Show
      * Previously, after you issued the `openshift-install destroy cluster` command to remove a cluster that you deployed on a VMware vSphere instance with installer-provisioned infrastructure, a `TagCategory` resource persisted on your VMware vSphere instance. Now, this issued is fixed so that the `TagCategory` resource no longer persists when you delete a cluster by using the command. (link: https://issues.redhat.com/browse/OCPBUGS-26515 [* OCPBUGS-26515 *]).
    • Bug Fix
    • Done
    • Install

      This is a clone of issue OCPBUGS-25841. The following is the description of the original issue:

      Description of problem:

      After running ./openshift-install destroy cluster, TagCategory still exist
      
      # ./openshift-install destroy cluster --dir cluster --log-level debug
      DEBUG OpenShift Installer 4.15.0-0.nightly-2023-12-18-220750
      DEBUG Built from commit 2b894776f1653ab818e368fa625019a6de82a8c7
      DEBUG Power Off Virtual Machines
      DEBUG Powered off                                   VirtualMachine=sgao-devqe-spn2w-master-2
      DEBUG Powered off                                   VirtualMachine=sgao-devqe-spn2w-master-1
      DEBUG Powered off                                   VirtualMachine=sgao-devqe-spn2w-master-0
      DEBUG Powered off                                   VirtualMachine=sgao-devqe-spn2w-worker-0-kpg46
      DEBUG Powered off                                   VirtualMachine=sgao-devqe-spn2w-worker-0-w5rrn
      DEBUG Delete Virtual Machines
      INFO Destroyed                                     VirtualMachine=sgao-devqe-spn2w-rhcos-generated-region-generated-zone
      INFO Destroyed                                     VirtualMachine=sgao-devqe-spn2w-master-2
      INFO Destroyed                                     VirtualMachine=sgao-devqe-spn2w-master-1
      INFO Destroyed                                     VirtualMachine=sgao-devqe-spn2w-master-0
      INFO Destroyed                                     VirtualMachine=sgao-devqe-spn2w-worker-0-kpg46
      INFO Destroyed                                     VirtualMachine=sgao-devqe-spn2w-worker-0-w5rrn
      DEBUG Delete Folder
      INFO Destroyed                                     Folder=sgao-devqe-spn2w
      DEBUG Delete                                        StoragePolicy=openshift-storage-policy-sgao-devqe-spn2w
      INFO Destroyed                                     StoragePolicy=openshift-storage-policy-sgao-devqe-spn2w
      DEBUG Delete                                        Tag=sgao-devqe-spn2w
      INFO Deleted                                       Tag=sgao-devqe-spn2w
      DEBUG Delete                                        TagCategory=openshift-sgao-devqe-spn2w
      INFO Deleted                                       TagCategory=openshift-sgao-devqe-spn2w
      DEBUG Purging asset "Metadata" from disk
      DEBUG Purging asset "Master Ignition Customization Check" from disk
      DEBUG Purging asset "Worker Ignition Customization Check" from disk
      DEBUG Purging asset "Terraform Variables" from disk
      DEBUG Purging asset "Kubeconfig Admin Client" from disk
      DEBUG Purging asset "Kubeadmin Password" from disk
      DEBUG Purging asset "Certificate (journal-gatewayd)" from disk
      DEBUG Purging asset "Cluster" from disk
      INFO Time elapsed: 29s
      INFO Uninstallation complete!
      
      # govc tags.category.ls | grep sgao
      openshift-sgao-devqe-spn2w

      Version-Release number of selected component (if applicable):

          4.15.0-0.nightly-2023-12-18-220750
      

      How reproducible:

          always

      Steps to Reproduce:

          1. IPI install OCP on vSphere
          2. Destroy cluster installed, check TagCategory
      

      Actual results:

          TagCategory still exist

      Expected results:

          TagCategory should be deleted

      Additional info:

          Also reproduced in openshift-install-linux-4.14.0-0.nightly-2023-12-20-184526,4.13.0-0.nightly-2023-12-21-194724, while 4.12.0-0.nightly-2023-12-21-162946 have not this issue

            rhn-support-rvanderp Richard Vanderpool
            openshift-crt-jira-prow OpenShift Prow Bot
            Shang Gao Shang Gao
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: