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

Requesting a pod for cpu via python sdk seems not possible #314

Open
Lhemamou opened this issue May 11, 2024 · 0 comments
Open

Requesting a pod for cpu via python sdk seems not possible #314

Lhemamou opened this issue May 11, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Lhemamou
Copy link

Lhemamou commented May 11, 2024

Describe the bug
When I want to create a only cpu pod, it's needed to choose a gpu_type_id but when i test all the gpu_type_id with gpu_count=0 , I have not access to any server.

To Reproduce
`list_gpus=[x['id'] for x in runpod.get_gpus()]

for gpu in list_gpus:
try:
runpod.create_pod(name="test_pod",image_name="docker/image",
gpu_count=0,gpu_type_id=gpu,
container_disk_in_gb=20,
min_vcpu_count=2,min_memory_in_gb=8,ports="8080/http;22/tcp")
break
except runpod.error.QueryError as e:
print(e)`

-> print statement :
There are no longer any instances available with the requested specifications. Please refresh and try again.

Expected behavior
A clear and concise description of what you expected to happen.
Expect to obtain a cpu only server

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]
    Ubuntu

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.
python==3.10.12
runpod==1.6.2

@Lhemamou Lhemamou added the bug Something isn't working label May 11, 2024
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

2 participants