Skip to content

Unable to create GCP Cpu Instances #106

@khumairraj

Description

@khumairraj

Hi there, Thank you for the amazing tool.

I have been trying to use spotty to make a CPU instance on GCP.
Below is the spotty.yaml file which I am using.

project:
  name: spotty-heareval
  syncFilters:
    - exclude:
        - .idea/*
        - .git/*
        - '*/__pycache__/*'
        - _workdir/*
        - tasks/*
        - embeddings/*
        - .mypy_cache/*
        - lightning_logs/*
        - heareval.egg-info/*
        - pretrained/*
        - wandb/*

containers:
  - projectDir: /workspace/project
    image: alpine
    volumeMounts:
      - name: workspace
        mountPath: /workspace
    runtimeParameters: ['--shm-size', '20G']

instances:
  - name: spotty-heareval-dp-khumairraj
    provider: gcp
    parameters:
      zone: europe-west4-a
      machineType: n1-standard-1
      imageUri: projects/ml-images/global/images/c0-deeplearning-common-cpu-v20210818-debian-10
      volumes:
        - name: workspace
          parameters:
            size: 250
            mountDir: /workspace

The error that comes up is:

Waiting for the stack to be created...
  - launching the instance...
  - running the Docker container...
  Error:
  ------
  Deployment "spotty-instance-spotty-heareval-spotty-heareval-dp-khumairraj" failed.
  Error: {"ResourceType":"runtimeconfig.v1beta1.waiter","ResourceErrorCode":"412","ResourceErrorMessage":"Failure condition satisfied."}

Please let me know if I am missing something in the configuration, or a known solution.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions