Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provider/aws: Expose reason of EMR cluster termination #15117

Merged
merged 1 commit into from
Jun 6, 2017

Conversation

radeksimko
Copy link
Member

@radeksimko radeksimko commented Jun 6, 2017

This is related to the following test failure from today:

=== RUN   TestAccAWSAppautoScalingTarget_emrCluster
--- FAIL: TestAccAWSAppautoScalingTarget_emrCluster (652.43s)
    testing.go:280: Step 0 error: Error applying: 1 error(s) occurred:
        
        * aws_emr_cluster.tf-test-cluster: 1 error(s) occurred:
        
        * aws_emr_cluster.tf-test-cluster: [WARN] Error waiting for EMR Cluster state to be "WAITING" or "RUNNING": unexpected state 'TERMINATING', wanted target 'WAITING, RUNNING'. last error: %!s(<nil>)

Even though we cannot prevent failures like this we should at least expose the reason of the failure and fail faster.

Related: #13600

Before

(took about 9min 30secs to fail)

  • aws_emr_cluster.emr-test-cluster: 1 error(s) occurred:

  • aws_emr_cluster.emr-test-cluster: [WARN] Error waiting for EMR Cluster state to be "WAITING" or "RUNNING": unexpected state 'TERMINATING', wanted target 'WAITING, RUNNING'. last error: %!s()

After

(takes about 30sec to fail)

  • aws_emr_cluster.emr-test-cluster: 1 error(s) occurred:

  • aws_emr_cluster.emr-test-cluster: [WARN] Error waiting for EMR Cluster state to be "WAITING" or "RUNNING": EMR Cluster is terminating. VALIDATION_ERROR: The subnet configuration was invalid: No route to any external sources detected in Route Table for Subnet: subnet-8d91a7ea for VPC: vpc-012dc867

Copy link
Contributor

@stack72 stack72 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@radeksimko radeksimko merged commit 3f3664a into master Jun 6, 2017
@radeksimko radeksimko deleted the f-aws-emr-cluster-reason branch June 6, 2017 12:55
@ghost
Copy link

ghost commented Apr 11, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants