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

workflows: retry GCP VM creation up to 3 times #17068

Merged
merged 1 commit into from
Aug 7, 2021

Commits on Aug 6, 2021

  1. workflows: retry GCP VM creation up to 3 times

    Fixes an issue where the GCP VM fails to create:
    
    ```
    Run gcloud compute instances create cilium-cilium-cli-1046557892-vm \
    WARNING: You have selected a disk size of under [200GB]. This may result in poor I/O performance. For more information, see: https://developers.google.com/compute/docs/disks#performance.
    ERROR: (gcloud.compute.instances.create) Could not fetch resource:
     - The resource 'projects/***/regions/us-west2/subnetworks/default' is not ready
    ```
    
    From GCP documentation, this comes from simultaneous resource operations
    (https://cloud.google.com/compute/docs/troubleshooting/troubleshooting-vm-creation)
    however we have no control over that. Their only recommendation is to
    add retries.
    
    Considering it's an infrastructure issue and it also is easily contained
    to the GCP VM creation step, this is acceptable.
    
    Picked up from cilium/cilium-cli#463.
    
    Fixes: #17063
    
    Signed-off-by: Nicolas Busseneau <nicolas@isovalent.com>
    nbusseneau committed Aug 6, 2021
    Configuration menu
    Copy the full SHA
    c0414ea View commit details
    Browse the repository at this point in the history