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

Fix "The resource is not ready" errors in CI #5044

Closed
3 tasks
teor2345 opened this issue Sep 2, 2022 · 3 comments · Fixed by #5696
Closed
3 tasks

Fix "The resource is not ready" errors in CI #5044

teor2345 opened this issue Sep 2, 2022 · 3 comments · Fixed by #5696
Assignees
Labels
A-devops Area: Pipelines, CI/CD and Dockerfiles C-bug Category: This is a bug I-integration-fail Continuous integration fails, including build and test failures

Comments

@teor2345
Copy link
Contributor

teor2345 commented Sep 2, 2022

Motivation

We've had multiple PRs fail with:

Run gcloud compute instances create-with-container "update-to-tip-5020-merge-5690565"
ERROR: (gcloud.compute.instances.create-with-container) Could not fetch resource:

  • The resource 'projects/zealous-zebra/global/images/zebrad-cache-main-bc7294f-v25-mainnet-tip-u-0901230920' is not ready

https://github.com/ZcashFoundation/zebra/runs/8146703881?check_suite_focus=true#step:7:77

Originally posted by @teor2345 in #5020 (comment)

Tasks

  • When selecting images for tests, add a status: READY filter
  • When selecting the 2 images to keep, add a status: READY filter
  • When selecting images to delete, do not add a status: READY filter, because we are already filtering out recent images
@teor2345 teor2345 added C-bug Category: This is a bug A-devops Area: Pipelines, CI/CD and Dockerfiles P-High 🔥 I-integration-fail Continuous integration fails, including build and test failures labels Sep 2, 2022
@teor2345
Copy link
Contributor Author

teor2345 commented Sep 7, 2022

I haven't seen these errors recently, I wonder if they are caused by rate-limiting, or they are more common under load?

We can fix this error by searching for images with status: READY whenever we list images:

$ gcloud compute images describe lwd-cache-4721-merge-823b8a9-v25-mainnet-tip-u-0901181806 
archiveSizeBytes: '172968691968'
creationTimestamp: '2022-09-01T11:18:09.904-07:00'
description: 'Created from commit 823b8a9 with height '
diskSizeGb: '200'
id: '6653236955544635791'
kind: compute#image
labelFingerprint: 42WmSpB8rSM=
name: lwd-cache-4721-merge-823b8a9-v25-mainnet-tip-u-0901181806
selfLink: https://www.googleapis.com/compute/v1/projects/zealous-zebra/global/images/lwd-cache-4721-merge-823b8a9-v25-mainnet-tip-u-0901181806
sourceDisk: https://www.googleapis.com/compute/v1/projects/zealous-zebra/zones/us-central1-a/disks/lwd-full-sync-823b8a9
sourceDiskId: '4921097591623342289'
sourceType: RAW
status: READY
storageLocations:
- us

@teor2345
Copy link
Contributor Author

teor2345 commented Sep 8, 2022

I saw this error again today:

ERROR: (gcloud.compute.instances.create-with-container) Could not fetch resource:

  • The resource 'projects/zealous-zebra/global/images/zebrad-cache-4870-merge-b5a7d9f-v25-mainnet-tip-u-0908213122' is not ready

https://github.com/ZcashFoundation/zebra/runs/8259255840?check_suite_focus=true#step:7:78

@teor2345
Copy link
Contributor Author

It looks like this is now less frequent than the other Google Cloud errors, but still important to fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-devops Area: Pipelines, CI/CD and Dockerfiles C-bug Category: This is a bug I-integration-fail Continuous integration fails, including build and test failures
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants