cml
cml copied to clipboard
`cml runner launch` stopped working for GCP
Since this week, we have been unable to launch GCP runners using cml runner launch, and we suspect the following error might be the root cause:
***"level":"error","message":"terraform error: Error: Failed creating the machine: googleapi: Error 404: The resource 'projects/ubuntu-os-cloud/global/images/family/ubuntu-2004-lts' was not found, notFound"***
Ubuntu 20.04 LTS has reached end of support in May, and is therefore likely no longer available as a machine image in GCP.
Is there something we can do as a quick fix to force the use of 22.04 LTS or 24.04 LTS machine images?
You can use the option:
--cloud-image=ubuntu-os-cloud/ubuntu-2204-lts
For example:
...
- name: Deploy Runner on GCP
env:
REPO_TOKEN: ${{ secrets.PAT }}
run: |
cml runner launch \
--labels=my-label \
--single \
--idle-timeout=300 \
--token=${{ secrets.PAT_TODD }} \
--cloud=gcp \
--cloud-image=ubuntu-os-cloud/ubuntu-2204-lts \
...