Bug 1798596

Summary: take into consideration all instance states when deleting a machine
Product: OpenShift Container Platform Reporter: Alberto <agarcial>
Component: Cloud ComputeAssignee: Alberto <agarcial>
Cloud Compute sub component: Other Providers QA Contact: Jianwei Hou <jhou>
Status: CLOSED ERRATA Docs Contact:
Severity: urgent    
Priority: urgent CC: jhou, miyadav, vlaad
Version: 4.4   
Target Milestone: ---   
Target Release: 4.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1798597 1799034 1804596 (view as bug list) Environment:
Last Closed: 2020-05-15 16:02:13 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: 1798597, 1799034, 1804596    

Description Alberto 2020-02-05 15:51:41 UTC
Description of problem:
In aws instances with a provider state different than running might be leaked when deleting.

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


How reproducible:
100%

Steps to Reproduce:
Create a machineSet.
Delete the machineSet before the instances get to running.
Check aws console.

Actual results:
Instances are leaked if they don't get to running.

Expected results:
Instances are deleted

Additional info:

Comment 2 Milind Yadav 2020-02-07 08:58:09 UTC
Description of problem:
In aws instances with a provider state different than running might be leaked when deleting.

miyadav@miyadav bug1798596]$ oc get clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.4.0-0.nightly-2020-02-06-170203   True        False         8h      Cluster version is 4.4.0-0.nightly-2020-02-06-170203


Steps to Test:
Create a machineSet.
Delete the machineSet before the instances get to running.
Check aws console.

Actual results:
Instances gets terminated 

Expected results:
Instances are Terminated

Additional info: