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

Terraform crashing when creating bucket in MinIO #12701

Closed
aboutte opened this issue Apr 7, 2020 · 4 comments · Fixed by #13868
Closed

Terraform crashing when creating bucket in MinIO #12701

aboutte opened this issue Apr 7, 2020 · 4 comments · Fixed by #13868
Labels
bug Addresses a defect in current functionality. crash Results from or addresses a Terraform crash or kernel panic. service/s3 Issues and PRs that pertain to the s3 service.
Milestone

Comments

@aboutte
Copy link

aboutte commented Apr 7, 2020

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

Terraform v0.11.7

Terraform Configuration Files

provider "aws" {
  region                      = "us-east-1"
  skip_credentials_validation = true
  skip_requesting_account_id  = true
  s3_force_path_style         = true

  endpoints {
    s3 = "https://minio.example.com"
  }
}

resource "aws_s3_bucket" "b" {
  bucket = "my-tf-test-bucket"
}

Panic Output

https://gist.github.com/aboutte/0532c669df1d66c411f35eb9eadc33fa

Expected Behavior

  • terraform creates the bucket
  • bucket gets stored in state

Actual Behavior

  • terraform creates the bucket
  • terraform crashes when receiving response from Minio

Steps to Reproduce

  • deploy minio
  • review the steps and terraform provided in the gist above
@ghost ghost added the service/s3 Issues and PRs that pertain to the s3 service. label Apr 7, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Apr 7, 2020
@bflad bflad added bug Addresses a defect in current functionality. crash Results from or addresses a Terraform crash or kernel panic. and removed needs-triage Waiting for first response or review from a maintainer. labels Jul 7, 2020
@bflad
Copy link
Contributor

bflad commented Jul 7, 2020

This appears to relate to key-only tags and should be addressed by #13868.

Relevant portion of crash log:

panic: runtime error: invalid memory address or nil pointer dereference
2020-04-06T20:24:52.915-0500 [DEBUG] plugin.terraform-provider-aws_v2.56.0_x4: [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x44620da]
2020-04-06T20:24:52.915-0500 [DEBUG] plugin.terraform-provider-aws_v2.56.0_x4:
2020-04-06T20:24:52.915-0500 [DEBUG] plugin.terraform-provider-aws_v2.56.0_x4: goroutine 101 [running]:
2020-04-06T20:24:52.915-0500 [DEBUG] plugin.terraform-provider-aws_v2.56.0_x4: github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags.KeyValueTags.Map(0xc000d33680, 0xc000d33680)
2020-04-06T20:24:52.915-0500 [DEBUG] plugin.terraform-provider-aws_v2.56.0_x4: 	/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags/key_value_tags.go:138 +0xda
2020-04-06T20:24:52.915-0500 [DEBUG] plugin.terraform-provider-aws_v2.56.0_x4: github.com/terraform-providers/terraform-provider-aws/aws.resourceAwsS3BucketRead(0xc00044e380, 0x5a20720, 0xc000491900, 0x203000, 0x203000)
2020-04-06T20:24:52.915-0500 [DEBUG] plugin.terraform-provider-aws_v2.56.0_x4: 	/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_s3_bucket.go:1343 +0x3f63

@bflad
Copy link
Contributor

bflad commented Sep 1, 2020

The fix for this has been merged and will release later this week with version 3.5.0 of the Terraform AWS Provider.

@ghost
Copy link

ghost commented Sep 3, 2020

This has been released in version 3.5.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented Oct 1, 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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Oct 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. crash Results from or addresses a Terraform crash or kernel panic. service/s3 Issues and PRs that pertain to the s3 service.
Projects
None yet
2 participants