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

Issue #459 - EBS information required during cluster config change #1131

Merged

Commits on Jul 12, 2017

  1. Issue hashicorp#459 - EBS information required during cluster configu…

    …ration change
    
    AWS demands to pass information about EBS volume during cluster configuration change like e.g. number of data nodes.
    
    Issue: hashicorp#459
    Debug data from issue:
    ```
      cluster_config.0.instance_count: "2" => "1"
    
    2017/07/12 12:47:01 [DEBUG] plugin: terraform-provider-aws: 2017/07/12 12:47:01 [DEBUG] [aws-sdk-go] DEBUG: Request es/UpdateElasticsearchDomainConfig Details:
    2017/07/12 12:47:01 [DEBUG] plugin: terraform-provider-aws: ---[ REQUEST POST-SIGN ]-----------------------------
    2017/07/12 12:47:01 [DEBUG] plugin: terraform-provider-aws: POST /2015-01-01/es/domain/daniel-test/config HTTP/1.1
    2017/07/12 12:47:01 [DEBUG] plugin: terraform-provider-aws: Host: es.us-east-1.amazonaws.com
    2017/07/12 12:47:01 [DEBUG] plugin: terraform-provider-aws: User-Agent: aws-sdk-go/1.10.8 (go1.8.1; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.9.8
    2017/07/12 12:47:01 [DEBUG] plugin: terraform-provider-aws: Content-Length: 150
    2017/07/12 12:47:01 [DEBUG] plugin: terraform-provider-aws: Authorization: AWS4-HMAC-SHA256 Credential=/20170712/us-east-1/es/aws4_request, SignedHeaders=content-length;host;x-amz-date, Signature=
    2017/07/12 12:47:01 [DEBUG] plugin: terraform-provider-aws: X-Amz-Date: 20170712T114701Z
    2017/07/12 12:47:01 [DEBUG] plugin: terraform-provider-aws: Accept-Encoding: gzip
    2017/07/12 12:47:01 [DEBUG] plugin: terraform-provider-aws:
    2017/07/12 12:47:01 [DEBUG] plugin: terraform-provider-aws: {"ElasticsearchClusterConfig":{"DedicatedMasterEnabled":false,"InstanceCount":2,"InstanceType":"t2.small.elasticsearch","ZoneAwarenessEnabled":false}}
    2017/07/12 12:47:01 [DEBUG] plugin: terraform-provider-aws: -----------------------------------------------------
    2017/07/12 12:47:02 [DEBUG] plugin: terraform-provider-aws: 2017/07/12 12:47:02 [DEBUG] [aws-sdk-go] DEBUG: Response es/UpdateElasticsearchDomainConfig Details:
    2017/07/12 12:47:02 [DEBUG] plugin: terraform-provider-aws: ---[ RESPONSE ]--------------------------------------
    2017/07/12 12:47:02 [DEBUG] plugin: terraform-provider-aws: HTTP/1.1 400 Bad Request
    2017/07/12 12:47:02 [DEBUG] plugin: terraform-provider-aws: Content-Length: 188
    2017/07/12 12:47:02 [DEBUG] plugin: terraform-provider-aws: Content-Type: application/json
    2017/07/12 12:47:02 [DEBUG] plugin: terraform-provider-aws: Date: Wed, 12 Jul 2017 11:47:01 GMT
    2017/07/12 12:47:02 [DEBUG] plugin: terraform-provider-aws: X-Amzn-Errortype: ValidationException
    2017/07/12 12:47:02 [DEBUG] plugin: terraform-provider-aws: X-Amzn-Requestid:
    2017/07/12 12:47:02 [DEBUG] plugin: terraform-provider-aws:
    2017/07/12 12:47:02 [DEBUG] plugin: terraform-provider-aws:
    2017/07/12 12:47:02 [DEBUG] plugin: terraform-provider-aws: -----------------------------------------------------
    2017/07/12 12:47:02 [DEBUG] plugin: terraform-provider-aws: 2017/07/12 12:47:02 [DEBUG] [aws-sdk-go] {"message":"New cluster configuration has insufficient storage capacity for your current data. The new configuration only supports up to 0.0GB. Your current Elasticsearch usage is 0.00GB"}
    ```
    
    Debug data after fix:
    ```
    cluster_config.0.instance_count: "2" => "1"
    2017/07/12 13:42:35 [DEBUG] plugin: terraform-provider-aws: 2017/07/12 13:42:35 [DEBUG] [aws-sdk-go] DEBUG: Request es/UpdateElasticsearchDomainConfig Details:
    2017/07/12 13:42:35 [DEBUG] plugin: terraform-provider-aws: ---[ REQUEST POST-SIGN ]-----------------------------
    2017/07/12 13:42:35 [DEBUG] plugin: terraform-provider-aws: POST /2015-01-01/es/domain/daniel-test/config HTTP/1.1
    2017/07/12 13:42:35 [DEBUG] plugin: terraform-provider-aws: Host: es.us-east-1.amazonaws.com
    2017/07/12 13:42:35 [DEBUG] plugin: terraform-provider-aws: User-Agent: aws-sdk-go/1.10.8 (go1.8.1; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.9.8
    2017/07/12 13:42:35 [DEBUG] plugin: terraform-provider-aws: Content-Length: 218
    2017/07/12 13:42:35 [DEBUG] plugin: terraform-provider-aws: Authorization: AWS4-HMAC-SHA256 Credential=/20170712/us-east-1/es/aws4_request, SignedHeaders=content-length;host;x-amz-date, Signature=
    2017/07/12 13:42:35 [DEBUG] plugin: terraform-provider-aws: X-Amz-Date: 20170712T124235Z
    2017/07/12 13:42:35 [DEBUG] plugin: terraform-provider-aws: Accept-Encoding: gzip
    2017/07/12 13:42:35 [DEBUG] plugin: terraform-provider-aws:
    2017/07/12 13:42:35 [DEBUG] plugin: terraform-provider-aws: {"EBSOptions":{"EBSEnabled":true,"VolumeSize":10,"VolumeType":"gp2"},"ElasticsearchClusterConfig":{"DedicatedMasterEnabled":false,"InstanceCount":1,"InstanceType":"t2.small.elasticsearch","ZoneAwarenessEnabled":false}}
    2017/07/12 13:42:35 [DEBUG] plugin: terraform-provider-aws: -----------------------------------------------------
    2017/07/12 13:42:36 [DEBUG] plugin: terraform-provider-aws: 2017/07/12 13:42:36 [DEBUG] [aws-sdk-go] DEBUG: Response es/UpdateElasticsearchDomainConfig Details:
    2017/07/12 13:42:36 [DEBUG] plugin: terraform-provider-aws: ---[ RESPONSE ]--------------------------------------
    2017/07/12 13:42:36 [DEBUG] plugin: terraform-provider-aws: HTTP/1.1 200 OK
    2017/07/12 13:42:36 [DEBUG] plugin: terraform-provider-aws: Content-Length: 1355
    2017/07/12 13:42:36 [DEBUG] plugin: terraform-provider-aws: Content-Type: application/json
    2017/07/12 13:42:36 [DEBUG] plugin: terraform-provider-aws: Date: Wed, 12 Jul 2017 12:42:36 GMT
    2017/07/12 13:42:36 [DEBUG] plugin: terraform-provider-aws: X-Amzn-Requestid:
    2017/07/12 13:42:36 [DEBUG] plugin: terraform-provider-aws:
    2017/07/12 13:42:36 [DEBUG] plugin: terraform-provider-aws:
    2017/07/12 13:42:36 [DEBUG] plugin: terraform-provider-aws: -----------------------------------------------------
    2017/07/12 13:42:36 [DEBUG] plugin: terraform-provider-aws: 2017/07/12 13:42:36 [DEBUG] [aws-sdk-go] {"DomainConfig":{"AccessPo...<CUT>
    ```
    
    Please verify.
    Thanks
    Daniel Salbert committed Jul 12, 2017
    Configuration menu
    Copy the full SHA
    b0a8352 View commit details
    Browse the repository at this point in the history
  2. fix formatting

    Daniel Salbert committed Jul 12, 2017
    Configuration menu
    Copy the full SHA
    40a82fe View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2017

  1. add test for hashicorp#459

    Simple test, just to check if number of instances is correct.
    Daniel Salbert committed Jul 26, 2017
    Configuration menu
    Copy the full SHA
    7071e77 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2017

  1. fix and adjust testing method

    Daniel Salbert committed Jul 31, 2017
    Configuration menu
    Copy the full SHA
    268a455 View commit details
    Browse the repository at this point in the history
  2. fix function name for as an entrypoint for Config

    Daniel Salbert committed Jul 31, 2017
    Configuration menu
    Copy the full SHA
    eaa9795 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d94f173 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b24b01a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    53ccd7c View commit details
    Browse the repository at this point in the history
  6. test: Fix test functions

    radeksimko committed Jul 31, 2017
    Configuration menu
    Copy the full SHA
    700bb88 View commit details
    Browse the repository at this point in the history
  7. Fix tests

    radeksimko committed Jul 31, 2017
    Configuration menu
    Copy the full SHA
    9a41771 View commit details
    Browse the repository at this point in the history