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

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 this issue Feb 12, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@ChristophEndruschat
Copy link

ChristophEndruschat commented Feb 12, 2024

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 happens for every custom template I tested it on. I was not able to test this on public templates, as I don't know how to find the template IDs for these.
  • This does not happen, when I start the exact same template manually over the website.
  • Using an invalid template_id will also cause the same error, but should indicate that the template_id is invalid, because problem is not disk space as message says.

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:

  • OS: Windows 11
  • Browser: Chrome (121.0.6167.161)
@ChristophEndruschat ChristophEndruschat added the bug Something isn't working label Feb 12, 2024
@cendruschat
Copy link

cendruschat commented Mar 7, 2024

Any solution in sight?

@jaredsu
Copy link

jaredsu commented Mar 26, 2024

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
Copy link

tdi commented Apr 6, 2024

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants