Bug 1918962

Summary: [IPI on vsphere] Executing 'openshift-installer destroy cluster' leaves installer tag categories in vsphere
Product: OpenShift Container Platform Reporter: Patrick Dillon <padillon>
Component: InstallerAssignee: aos-install
Installer sub component: openshift-installer QA Contact: jima
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: high CC: adahiya, antgarci, aos-install, gpei, jima, jstuever, mstaeble, nstielau
Version: 4.5   
Target Milestone: ---   
Target Release: 4.5.z   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 1918961 Environment:
Last Closed: 2021-03-03 04:40:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1918961    
Bug Blocks:    

Comment 1 Nick Stielau 2021-02-03 19:25:49 UTC
Doesn't seem like a 4.7 blocker

Comment 3 jima 2021-02-05 01:56:07 UTC
Verified on 4.5.0-0.nightly-2021-02-04-193735, and passed.

$ ./openshift-install destroy cluster --dir ipi_test --log-level debug
DEBUG OpenShift Installer 4.5.0-0.nightly-2021-02-04-193735 
DEBUG Built from commit e30ca92797532d9f0e0c56aac20aad27e594ab43 
DEBUG find attached objects on tag                 
DEBUG find VirtualMachine objects                  
DEBUG delete VirtualMachines                       
INFO Destroyed                                     VirtualMachine=jima0205-sq62j-rhcos
DEBUG Powered off                                   VirtualMachine=jima0205-sq62j-master-0
INFO Destroyed                                     VirtualMachine=jima0205-sq62j-master-0
DEBUG Powered off                                   VirtualMachine=jima0205-sq62j-master-2
INFO Destroyed                                     VirtualMachine=jima0205-sq62j-master-2
DEBUG Powered off                                   VirtualMachine=jima0205-sq62j-master-1
INFO Destroyed                                     VirtualMachine=jima0205-sq62j-master-1
DEBUG Powered off                                   VirtualMachine=jima0205-sq62j-worker-w4w4q
INFO Destroyed                                     VirtualMachine=jima0205-sq62j-worker-w4w4q
DEBUG Powered off                                   VirtualMachine=jima0205-sq62j-worker-hppjb
INFO Destroyed                                     VirtualMachine=jima0205-sq62j-worker-hppjb
DEBUG Powered off                                   VirtualMachine=jima0205-sq62j-worker-vj4fg
INFO Destroyed                                     VirtualMachine=jima0205-sq62j-worker-vj4fg
DEBUG find Folder objects                          
DEBUG delete Folder                                
INFO Destroyed                                     Folder=jima0205-sq62j

Also could not find tag category "openshift-jima0205-sq62j"on vsphere client any more.
$ govc tags.category.ls | grep jima0205-sq62j
$

Comment 6 errata-xmlrpc 2021-03-03 04:40:30 UTC
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.5.33 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-2021:0428