Skip to content

docs: Document pod runtime status and specific SSH not-ready reasons in the runpodctl reference - #758

Open
promptless[bot] wants to merge 2 commits into
mainfrom
promptless/runpodctl-pod-runtime-status
Open

docs: Document pod runtime status and specific SSH not-ready reasons in the runpodctl reference#758
promptless[bot] wants to merge 2 commits into
mainfrom
promptless/runpodctl-pod-runtime-status

Conversation

@promptless

@promptless promptless Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Open in Promptless

runpodctl pod get and runpodctl pod list now report a derived runtimeStatus (plus a runtimeStatusReason token and the raw lastStatusChange text) alongside desiredStatus, so users can tell a Pod that is still pulling its image apart from one that is actually running. runpodctl ssh info now names the specific reason a Pod is unreachable instead of a generic "pod not ready" message.

This adds a "Pod runtime status" section to the runpodctl pod reference documenting the five runtimeStatus values and the reason tokens, a worked JSON example, and guidance on polling to readiness. It updates the ssh reference with a table of the specific not-ready causes and their remedies — including a warning that runpodctl pod update --ports replaces the entire port list and can restart the container — and adds a discoverability cross-link from the Pods SSH troubleshooting guide. The pod list --status flag description now clarifies that it filters desiredStatus (RUNNING/EXITED, matched case-insensitively) and does not accept runtimeStatus values like initializing, which return no results — a distinction that matters now that the same page teaches the runtimeStatus vocabulary.

Files touched:

  • runpodctl/reference/runpodctl-pod.mdx
  • runpodctl/reference/runpodctl-ssh.mdx
  • pods/configuration/use-ssh.mdx

Source: runpodctl PR #315 (Linear CON-690).

Trigger Events


Tip: Use labels in the Promptless dashboard to categorize suggestions by release or team 🏷️

Add a Pod runtime status section to the runpodctl pod reference covering
the new runtimeStatus/runtimeStatusReason/lastStatusChange fields on
pod get and pod list, update the ssh reference with the specific
not-ready causes and the --ports remedy warning, and cross-link from the
SSH troubleshooting guide (runpodctl PR #315, CON-690).

## Pod runtime status

`runpodctl pod get` and `runpodctl pod list` now report a Pod's real runtime state in their JSON and YAML output, alongside the existing `desiredStatus`. `desiredStatus` is the state you asked for (for example, `RUNNING`), while `runtimeStatus` is what the Pod is actually doing. For example, a Pod still pulling a large image and a Pod that has been serving traffic for an hour both show `desiredStatus: RUNNING`, but their `runtimeStatus` values differ.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

desiredStatus vs runtimeStatus distinction (desiredStatus is what was requested, runtimeStatus is derived/actual) is documented verbatim in the podstate package comment, from open PR runpod/runpodctl#315 (CON-690, not yet merged).

Source: https://github.com/runpod/runpodctl/blob/ea017f65f5c6bc1bcaad506553ff4e08825a0356/internal/podstate/podstate.go#L1-L27


`runpodctl pod get` and `runpodctl pod list` now report a Pod's real runtime state in their JSON and YAML output, alongside the existing `desiredStatus`. `desiredStatus` is the state you asked for (for example, `RUNNING`), while `runtimeStatus` is what the Pod is actually doing. For example, a Pod still pulling a large image and a Pod that has been serving traffic for an hour both show `desiredStatus: RUNNING`, but their `runtimeStatus` values differ.

<ResponseField name="runtimeStatus" type="string">

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

podListOutput struct confirms runtimeStatus has no omitempty (always present); runtimeStatusReason and lastStatusChange both have omitempty. Same shape appears on pod get (cmd/pod/get.go response struct). From open PR runpodctl#315.

Source: https://github.com/runpod/runpodctl/blob/ea017f65f5c6bc1bcaad506553ff4e08825a0356/cmd/pod/list.go#L34-L53

@mintlify

mintlify Bot commented Aug 5, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
runpod-docs 🟢 Ready View Preview Aug 5, 2026, 1:29 PM

Present when available. The backend's raw status text (for example, `Exited by user: <date>` or `Outbid: <date>`).
</ResponseField>

For example, `runpodctl pod list --output json` returns entries like this for a running Pod:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JSON example field names (id, name, desiredStatus, runtimeStatus, imageName, gpuCount, costPerHr, createdAt, uptimeSeconds) all match real podListOutput fields populated in runList; no fabricated field names. --output flag consumed via cmd.Flag("output") (persistent flag, StringVarP "output"/"o", default "json"), so --output json is a valid invocation form.

Source: https://github.com/runpod/runpodctl/blob/ea017f65f5c6bc1bcaad506553ff4e08825a0356/cmd/pod/list.go#L182-L200


### Runtime status values

| Value | Meaning | What to do |

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Runtime status values table (running/initializing/stopped/terminated/unknown) matches the Status constants and doc comments exactly, including "does not imply a port is reachable" and the terminated pod's narrow drop-out-of-list window (getMyPods filters terminatedAt: null, see lines 77-81 of same file).

Source: https://github.com/runpod/runpodctl/blob/ea017f65f5c6bc1bcaad506553ff4e08825a0356/internal/podstate/podstate.go#L90-L120


### Runtime status reasons

| Token | Paired status | Meaning |

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Runtime status reasons table matches the eight Reason constants and their doc comments verbatim (awaiting_container, stopped/terminated_by_user, stopped/terminated_by_runpod, stopped/terminated_outbid, runtime_unavailable).

Source: https://github.com/runpod/runpodctl/blob/ea017f65f5c6bc1bcaad506553ff4e08825a0356/internal/podstate/podstate.go#L127-L165

</Tip>

<Note>
`runtimeStatus` and `desiredStatus` come from different sources, so a single command can briefly show them disagreeing (for example, `desiredStatus: RUNNING` next to `runtimeStatus: stopped`). When they disagree, trust `runtimeStatus`.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirms runtimeStatus is derived from the GraphQL snapshot while desiredStatus is REST's, and that the two surfaces can momentarily disagree (matches PR README language "when they disagree, trust runtimeStatus").

Source: https://github.com/runpod/runpodctl/blob/ea017f65f5c6bc1bcaad506553ff4e08825a0356/cmd/pod/list.go#L153-L180

`runtimeStatus` and `desiredStatus` come from different sources, so a single command can briefly show them disagreeing (for example, `desiredStatus: RUNNING` next to `runtimeStatus: stopped`). When they disagree, trust `runtimeStatus`.
</Note>

The `uptimeSeconds` field now reports the container's actual uptime and is omitted entirely when no container is reporting, instead of always showing `0`.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uptimeSeconds is set only when runtimeStatus is running and runtime telemetry exists; otherwise left nil, which the omitempty tag drops from output instead of always reporting 0.

Source: https://github.com/runpod/runpodctl/blob/ea017f65f5c6bc1bcaad506553ff4e08825a0356/cmd/pod/list.go#L176-L180

`runpodctl ssh info` explains which of the following cases applies. It also reports the Pod's `runtimeStatus`, so you can match a not-ready result to the runtime status vocabulary:

| Reason | Meaning | What to do |
| --- | --- | --- |

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not-ready reasons table (initializing/stopped/terminated via state.Explain; no port 22 published, no public IP, mapping not ready via sshPortDetail) matches NotReadyMessage/sshPortDetail exactly, including the three distinct running-pod SSH-unreachable causes.

Source: https://github.com/runpod/runpodctl/blob/ea017f65f5c6bc1bcaad506553ff4e08825a0356/internal/sshconnect/notready.go#L10-L50

| No public IP | Port 22 is mapped, but the machine has no publicly routable IP. This affects direct SSH over a public IP specifically; basic SSH (proxied through Runpod, no public IP required) may still work. | Use [Basic SSH](/pods/configuration/use-ssh#basic-ssh-with-key-authentication), which does not need a public IP. If you need direct SSH over a public IP, redeploy on a machine that provides one. |
| Mapping not ready yet | Port 22 is declared, but the host has not published the mapping yet. | Wait and try again. |

For the "No SSH port published" case, `runpodctl ssh info` gives you a ready-to-run command of the form `runpodctl pod update <pod-id> --ports <existing-ports>,22/tcp` that preserves your existing ports.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirms the exact remedy command form runpodctl pod update <pod-id> --ports <existing-ports>,22/tcp built by addSSHPortCommand, preserving existing declared ports before appending 22/tcp.

Source: https://github.com/runpod/runpodctl/blob/ea017f65f5c6bc1bcaad506553ff4e08825a0356/internal/sshconnect/notready.go#L52-L82


For the "No SSH port published" case, `runpodctl ssh info` gives you a ready-to-run command of the form `runpodctl pod update <pod-id> --ports <existing-ports>,22/tcp` that preserves your existing ports.

<Warning>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirms --ports is wholesale replacement (not additive like --env), sourced from cmd/pod/update.go setting req.Ports to exactly what was passed; changing ports bumps pod version (editJob increments version), which can trigger a container recreate/restart.

Source: https://github.com/runpod/runpodctl/blob/ea017f65f5c6bc1bcaad506553ff4e08825a0356/internal/sshconnect/notready.go#L52-L68


</Note>

`runpodctl ssh info` explains which of the following cases applies. It also reports the Pod's `runtimeStatus`, so you can match a not-ready result to the runtime status vocabulary:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirms runSSHInfoWithArgs includes a "runtimeStatus" key in the not-ready JSON/YAML output map alongside the error/id/name/status fields.

Source: https://github.com/runpod/runpodctl/blob/ea017f65f5c6bc1bcaad506553ff4e08825a0356/cmd/ssh.go#L191-L211

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Line 77)

Confirms Basic SSH is described elsewhere in this same file as proxied through Runpod's systems, supporting the runpodctl-ssh.mdx claim that basic SSH does not require a public IP.

Source:

All Pods provide a basic SSH connection that is proxied through Runpod's systems. This method does not support commands like SCP (Secure Copy Protocol) or SFTP (SSH File Transfer Protocol).

@promptless
promptless Bot marked this pull request as ready for review August 5, 2026 18:52
The --status flag matches desiredStatus (RUNNING/EXITED) case-insensitively
and does not accept runtimeStatus values like initializing, which now appear
on the same page. Reflects the merged --status help-text clarification from
runpodctl PR #315 (CON-690).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants