Repository navigation
Description
Steps to reproduce
-
Configure the
nebiusbackend. Nebius must have no on-demand capacity for the instance at that moment; on 24 Nov 2026 that wasgpu-rtx6000inus-central1. -
Create a fleet with
dstack apply -f fleet.dstack.yml -y:type: fleet name: nebius nodes: 0..1 backends: [nebius]
-
Submit this task with
dstack apply -f task.dstack.yml -y -d:type: task name: nebius-no-capacity fleets: [nebius] commands: - nvidia-smi regions: [us-central1] resources: gpu: RTXPRO6000:1 spot_policy: on-demand retry: false
Actual behaviour
Nebius accepts the request and starts the VM, then stops it 5 minutes later, because it has no capacity. dstack doesn't notice: the run stays provisioning until the 10-minute limit and then fails with waiting runner limit exceeded.
$ dstack event --within-run nebius-no-capacity
[2026-11-24 21:26:40] [👤admin] [run nebius-no-capacity] Run submitted. Status: SUBMITTED
[2026-11-24 21:26:40] [job nebius-no-capacity-0-0] Job created on run submission. Status: SUBMITTED
[2026-11-24 21:26:40] [instance nebius-0, job nebius-no-capacity-0-0] Instance created for job. Instance status: PENDING
[2026-11-24 21:27:04] [job nebius-no-capacity-0-0] Job status changed SUBMITTED -> PROVISIONING
[2026-11-24 21:27:04] [instance nebius-0, job nebius-no-capacity-0-0] Instance provisioned for job. Instance status: PROVISIONING
[2026-11-24 21:27:05] [run nebius-no-capacity] Run status changed SUBMITTED -> PROVISIONING
[2026-11-24 21:36:54] [job nebius-no-capacity-0-0] Job status changed PROVISIONING -> TERMINATING. Termination reason: WAITING_RUNNER_LIMIT_EXCEEDED (Runner did not become available within 600.0s. Job submission age: 614.253259s))
[2026-11-24 21:36:59] [run nebius-no-capacity] Run status changed PROVISIONING -> TERMINATING. Termination reason: JOB_FAILED
[2026-11-24 21:37:05] [job nebius-no-capacity-0-0] Job status changed TERMINATING -> FAILED
[2026-11-24 21:37:05] [instance nebius-0] Instance status changed PROVISIONING -> TERMINATING. Termination reason: JOB_FINISHED
[2026-11-24 21:37:05] [job nebius-no-capacity-0-0, instance nebius-0] Job unassigned from instance. Instance blocks: 0/1 busy
[2026-11-24 21:37:09] [run nebius-no-capacity] Run status changed TERMINATING -> FAILED
[2026-11-24 21:37:44] [instance nebius-0] Instance status changed TERMINATING -> TERMINATED
$ dstack ps -a -v
NAME BACKEND RESOURCES INSTANCE TYPE PRICE STATUS PROBES SUBMITTED ERROR
nebius-no-capacity nebius (us-central1) cpu=x86:24 mem=218GB disk=100GB gpu=RTXPRO6000:96GB:1 gpu-rtx6000 1gpu-24vcpu-218gb $1.8 error 11 mins ago waiting runner limit exceeded
The VM during that run, read from the Nebius API every second (same clock):
| Time | Instance | Create Instance operation |
|---|---|---|
| 21:26:53 | STOPPED, reconciling, no address |
running |
| 21:27:01 | STARTING, reconciling, address assigned |
running |
| 21:32:16 | STOPPED, not reconciling |
failed with RESOURCE_EXHAUSTED and an empty message |
Expected behaviour
The run fails when Nebius stops the VM.
dstack version
master (ba7686f); 0.22.8 has the same code.
Server logs
DEBUG job(7c6b3f)nebius-no-capacity-0-0: process provisioning job with shim, age=0:09:56.840999
DEBUG job(7c6b3f)nebius-no-capacity-0-0: shim is unreachable: failed to open an SSH connection
INFO Emitting event: Job status changed PROVISIONING -> TERMINATING. Termination reason: WAITING_RUNNER_LIMIT_EXCEEDED (Runner did not become available within 600.0s. Job submission age: 614.253259s)). Event targets: job(7c6b3f)nebius-no-capacity-0-0. Actor: system
Additional information
Root cause: NebiusCompute.update_provisioning_data() sets the hostname as soon as the VM has an address, without reading its state, and Nebius assigns the address while the VM is still STARTING. Once an instance has a hostname, the server doesn't ask the backend about it again. So nothing sees the VM stop, and only the runner limit ends the wait. create_instance() waits for the VM only until it is STARTING, for up to 30 s, which catches the failures that Nebius reports at once.
Possible fix: read the VM's state in update_provisioning_data(): fail provisioning when the VM is STOPPED with no operation running on it, and set the hostname only when the VM is RUNNING (#4523). Failing the run as no capacity, so that retry applies and the next offer is tried, needs a way for a backend to report no capacity after create_instance() has returned (#2977).
Workaround: capacity_advisor: true in the backend configuration (#4430). With it dstack marked this offer as not available and didn't try it. The advice can be up to 13 minutes old, so the wait can still happen.
Reproduced on an isolated dstack server from source. Nebius documents the behaviour as Not enough resources.
Activity
[-][Bug]: A run stays `provisioning` for 10 minutes when Nebius can't start the VM[/-][+][Bug]: Nebius runs stay in `provisioning` for 10 minutes when the VM fails to start[/+]