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

AWS tests failing with "Error creating S3 bucket: TooManyBuckets" #35369

Closed
elasticmachine opened this issue May 7, 2023 · 8 comments
Closed
Assignees
Labels
automation build-failures Build failures in the CI. ci-reported Issues that have been automatically reported from the CI Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team

Comments

@elasticmachine
Copy link
Collaborator

💔 Build Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2023-05-07T02:39:59.262+0000

  • Duration: 65 min 5 sec

Test stats 🧪

Test Results
Failed 0
Passed 2886
Skipped 181
Total 3067

Steps errors 3

Expand to view the steps failures

Terraform Apply on x-pack/metricbeat/module/aws
  • Took 4 min 50 sec . View more details here
  • Description: terraform apply -auto-approve
Terraform Apply on x-pack/metricbeat/module/aws
  • Took 0 min 15 sec . View more details here
  • Description: terraform apply -auto-approve
Error signal
  • Took 0 min 0 sec . View more details here
  • Description: startCloudTestEnv: terraform apply failed.

@elasticmachine elasticmachine added automation ci-reported Issues that have been automatically reported from the CI build-failures Build failures in the CI. Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team labels May 7, 2023
@elasticmachine
Copy link
Collaborator Author

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@cmacknz
Copy link
Member

cmacknz commented May 8, 2023

[2023-05-07T02:58:46.611Z] │ Error: Error creating S3 bucket: TooManyBuckets: You have attempted to create more buckets than allowed
[2023-05-07T02:58:46.611Z] │ 	status code: 400, request id: AGZ2469TZCZQCJ5W, host id: umaCViHD/oClxR0bv29MIjK6kdZffE8Ydw/Wz5rdJ+VlRRDyxEaO3GLNhnOVZ6Yvt3G2jJemrOY=
[2023-05-07T02:58:46.611Z] │ 
[2023-05-07T02:58:46.611Z] │   with aws_s3_bucket.test,
[2023-05-07T02:58:46.611Z] │   on terraform.tf line 43, in resource "aws_s3_bucket" "test":
[2023-05-07T02:58:46.611Z] │   43: resource "aws_s3_bucket" "test" {

@cmacknz
Copy link
Member

cmacknz commented May 8, 2023

@jsoriano looks like you added the Terraform file here a long time ago, any idea how to fix this? #17480

CC @v1v

@cmacknz cmacknz closed this as completed May 8, 2023
@cmacknz cmacknz reopened this May 8, 2023
@cmacknz cmacknz changed the title Build 1488 for main with status FAILURE AWS tests failing with "Error creating S3 bucket: TooManyBuckets" May 8, 2023
@jsoriano
Copy link
Member

jsoriano commented May 9, 2023

TooManyBuckets

Umm, I barely remember this, but is it possible that buckets are not being correctly cleaned up?

@v1v
Copy link
Member

v1v commented May 9, 2023

There is a last resort automation we built to delete cloud resources as long as they are tagged, @amannocci , can you confirm whether those s3 buckets are deleted with the existing cloud-reaper? Otherwise they are a good candidate for being added

@v1v
Copy link
Member

v1v commented May 9, 2023

Additionally, it is possible to request a higher quota, or at least we have done a similar kind of requests for some other aws resources, that's something everyone with admin request can request, just in case you wanna give a go, otherwise we can request it sometime tomorrow

@amannocci
Copy link
Contributor

There is a last resort automation we built to delete cloud resources as long as they are tagged, @amannocci , can you confirm whether those s3 buckets are deleted with the existing cloud-reaper? Otherwise they are a good candidate for being added

We have automation in place to delete orphan S3 buckets related to Beats CI.
We reached the limit of 100 buckets on this AWS account. It seems related to various manual bucket creation.
I will reach out to the owners to check if they are all needed. However, we can ask for a raise of the quota.

@v1v
Copy link
Member

v1v commented May 10, 2023

Thanks @amannocci.

I just deleted some old S3 buckets manually and requested some higher quota. Unfortunately, mostly all of the existing S3 buckets don't have any TAGs or meaningful names so we can know who to ask whether those S3 buckets are needed or not :/

@cmacknz cmacknz closed this as completed May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation build-failures Build failures in the CI. ci-reported Issues that have been automatically reported from the CI Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team
Projects
None yet
Development

No branches or pull requests

5 participants