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

resource_aws_s3_bucket.go: retry NoSuchBucket when updating tags for s3 bucket #12418

Merged
merged 1 commit into from
Mar 17, 2020

Commits on Mar 17, 2020

  1. resource_aws_s3_bucket.go: retry NoSuchBucket when updating tags for …

    …s3 bucket
    
    The original retry was added in [1] but, in later refactor the retry was dropped [2]
    
    the causes failures like
    
    ```
    level=error msg="Error: error updating S3 Bucket (terraform-20200316104552904700000001) tags: error listing resource tags (terraform-20200316104552904700000001): NoSuchBucket: The specified bucket does not exist"
    level=error msg="\tstatus code: 404, request id: <REDACTED>, host id: <REDACTED>"
    level=error
    level=error msg="  on ../tmp/openshift-install-019032273/bootstrap/main.tf line 7, in resource \"aws_s3_bucket\" \"ignition\":"
    level=error msg="   7: resource \"aws_s3_bucket\" \"ignition\" {"
    level=error
    level=error
    ```
    
    debug error:
    ```
    time="2020-03-16T10:45:53Z" level=debug msg="2020-03-16T10:45:53.413Z [DEBUG] plugin.terraform-provider-aws: [DEBUG] [aws-sdk-go] DEBUG: Validate Response s3/GetBucketTagging failed, attempt 0/25, error NoSuchBucket: The specified bucket does not exist"
    time="2020-03-16T10:45:53Z" level=debug msg="2020-03-16T10:45:53.413Z [DEBUG] plugin.terraform-provider-aws: \tstatus code: 404, request id: <REDACTED>, host id: <REDACTED>"
    time="2020-03-16T10:45:53Z" level=debug msg="[DEBUG] module.bootstrap.aws_s3_bucket.ignition: apply errored, but we're indicating that via the Error pointer rather than returning it: error updating S3 Bucket (terraform-20200316104552904700000001) tags: error listing resource tags (terraform-20200316104552904700000001): NoSuchBucket: The specified bucket does not exist"
    ```
    
    [1]: hashicorp#10863
    [2]: hashicorp#11916
    abhinavdahiya committed Mar 17, 2020
    Configuration menu
    Copy the full SHA
    b51938a View commit details
    Browse the repository at this point in the history