Bug 1674033 - install fails on VPC limitations prevents destroy from working
Summary: install fails on VPC limitations prevents destroy from working
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 4.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Alex Crawford
QA Contact: Johnny Liu
URL:
Whiteboard:
Depends On:
Blocks: 1664187
TreeView+ depends on / blocked
 
Reported: 2019-02-08 19:39 UTC by Eric Jones
Modified: 2019-03-12 14:24 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-02-13 22:29:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
install log file (444.13 KB, text/plain)
2019-02-08 19:39 UTC, Eric Jones
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3896661 0 None None None 2019-02-08 20:07:25 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.