Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1674033

Summary: install fails on VPC limitations prevents destroy from working
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 CURRENTRELEASE Docs Contact:
Severity: unspecified    
Priority: unspecified    
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:29:33 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
install log file none

Description Eric Jones 2019-02-08 19:39:56 UTC
Created attachment 1528205 [details]
install log file

Description of problem:
If the installer fails on VPC issues (as seen in error [0]) the destroy cluster command does not work as the metadata.json file that is created does not get created.

Version:
> ./openshift-install version
./openshift-install v0.12.0

Additional Info:
Uploading .openshift_install.log shortly

[0]
> ./openshift-install create cluster
? SSH Public Key /home/erjones/.ssh/id_rsa.pub
? Platform aws
? Region us-east-1
? Base Domain rhcee.support
? Cluster Name erjones
? Pull Secret [? for help] *********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
INFO Creating cluster...                          
ERROR                                              
ERROR Error: Error applying plan:                  
ERROR                                              
ERROR 1 error occurred:                            
ERROR 	* module.vpc.aws_vpc_endpoint.s3: 1 error occurred: 
ERROR 	* aws_vpc_endpoint.s3: Error creating VPC Endpoint: VpcEndpointLimitExceeded: The maximum number of VPC endpoints has been reached. 
ERROR 	status code: 400, request id: fd53c1a1-f07c-4978-83ab-c5c51a4e10cd 
ERROR                                              
ERROR                                              
ERROR                                              
ERROR                                              
ERROR                                              
ERROR Terraform does not automatically rollback in the face of errors. 
ERROR Instead, your Terraform state file has been partially updated with 
ERROR any resources that successfully completed. Please address the error 
ERROR above and apply again to incrementally change your infrastructure. 
ERROR                                              
ERROR                                              
FATAL failed to fetch Cluster: failed to generate asset "Cluster": failed to create cluster: failed to apply using Terraform

Comment 2 Eric Jones 2019-02-08 20:03:42 UTC
Apologies, I forgot to include the error message from the delete attempt:

> ./openshift-install destroy cluster --dir .
FATAL Failed while preparing to destroy cluster: open metadata.json: no such file or directory

Comment 4 Alex Crawford 2019-02-13 22:29:33 UTC
This was fixed by https://github.com/openshift/installer/pull/1199 which will make it into the next release.