Bug 1668051

Summary: Canceling the install and then running the destroy cluster command fails due to being unable to find the resources
Product: OpenShift Container Platform Reporter: Eric Jones <erjones>
Component: InstallerAssignee: Alex Crawford <crawford>
Installer sub component: openshift-installer QA Contact: Johnny Liu <jialiu>
Status: CLOSED INSUFFICIENT_DATA Docs Contact:
Severity: unspecified    
Priority: unspecified CC: erjones, wking
Version: 4.1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-13 22:20:38 UTC Type: Bug
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:    
Bug Blocks: 1664187    
Attachments:
Description Flags
.openshift_install.log none

Description Eric Jones 2019-01-21 19:39:45 UTC
Created attachment 1522239 [details]
.openshift_install.log

Description of problem:
After a previous install failed and was properly deleted, I tried to start an install before finding [0] (to help fix the issue I encountered before). Once I found that I canceled the install (ctrl+c) and tried to run the destroy cluster command.

The destroy command hung after deleting the bucket. I canceled it as well and tried the command again while watching the .openshift_install.log file (tail -f .openshift_install.log) and saw it being unable to locate resources.

Version-Release number of selected component (if applicable):
> ./openshift-install version
./openshift-install v0.10.0

How reproducible:
100%

Steps to Reproduce:
1. Start install:
> ./openshift-install create cluster
2. Cancel install:
ctrl+c
3. Start to destroy cluster:
./openshift-install destroy cluster --dir .

Actual results:
destroy hangs indefinitely

Expected results:
destroy succeeds. Any resources it cannot locate simply skip and move to the next ones.

Additional info:
[0] https://access.redhat.com/solutions/3798711

Attached log

Comment 1 Alex Crawford 2019-01-22 22:49:35 UTC
We recently changed the way we destroy resources (https://github.com/openshift/installer/pull/1039). Can you try again with a version of the installer that has that patch?

Comment 2 W. Trevor King 2019-01-24 12:59:58 UTC
> Can you try again with a version of the installer that has that patch?

For example, 0.10.1 has the patch.

Comment 3 Alex Crawford 2019-02-13 22:20:38 UTC
Closing due to inactivity.

Comment 4 Eric Jones 2019-02-18 16:56:17 UTC
Hi,

My apologies, for some reason I did not see these updates.

I am currently trying to reproduce this with the latest available at the moment (v0.12.0) but instead am running into issues with creating the metadata.json file and therefore can't even begin to try this.

I will update and reopen if I am able to reproduce in the future, otherwise we can leave this as closed.