runpod / runpod-python

🐍 | Python library for RunPod API and serverless worker SDK.
https://pypi.org/project/runpod/
MIT License
174 stars 63 forks source link

Specifying a Template ID on "create_pod" will cause QueryError: There are no longer any instances available with enough disk space. #297

Open ChristophEndruschat opened 7 months ago

ChristophEndruschat commented 7 months ago

Describe the bug Whenever I try to start a pod over runpod-python specifying a custom template ID I will get the message: "runpod.error.QueryError: There are no longer any instances available with enough disk space."

This works as expected: runpod.create_pod("test-pod-1", "dhiaeddine23/alphapedia-app:v-1.0.12", "NVIDIA RTX A4000", cloud_type="COMMUNITY")

But this never works: runpod.create_pod("test-pod-1", "dhiaeddine23/alphapedia-app:v-1.0.12", "NVIDIA RTX A4000", cloud_type="COMMUNITY", template_id="ppny3n7iri")

To Reproduce Steps to reproduce the behavior:

  1. Import runpod-python package
  2. Set runpod.api_key for account
  3. Create custom template on that account
  4. Run runpod.create_pod using the custom template_id

Expected behavior RunPod should find the template by ID on my user account, then apply all parameters saved in the template to the pod created by the create_pod function.

Screenshots Here is my template with the ID on the website: image

And here the template configuration: image

Desktop:

cendruschat commented 7 months ago

Any solution in sight?

jaredsu commented 6 months ago

Specify the amount of gb in the container disk and it should work. Should look like this runpod.create_pod("test-pod-1", "dhiaeddine23/alphapedia-app:v-1.0.12", "NVIDIA RTX A4000", container_disk_in_gb=20, cloud_type="COMMUNITY", template_id="ppny3n7iri")

tdi commented 6 months ago

I confitm @jaredsu's sugestion. I stumbled upon the same problem. You need to give it at least some space. Also @justinmerrell why is there a need to specify image if it is specified in template ? I suggest maybe a new method create_pod_from_template where we prefill some of the fields from template already ?