GetUpgradeStatus Added in v26.2

POST /redpanda.core.admin.v2.FeaturesService/GetUpgradeStatus

Reports observability for the upgrade-finalization lifecycle: the cluster's active logical version, the logical version each member reports (that is, what its binary supports), whether the cluster is eligible to finalize, the active version that a FinalizeUpgrade would produce, the releases involved, whether the upgrade skips a release, and whether finalizing takes an explicit FinalizeUpgrade. Read-only; intended to be polled before and after FinalizeUpgrade.

The response reflects the controller leader's view; the request is transparently redirected there.

Headers

  • Connect-Protocol-Version number Required

    Define the version of the Connect protocol

    Value is 1.

  • Connect-Timeout-Ms number

    Define the timeout, in ms

application/json

Body Required

object object

GetUpgradeStatusRequest takes no parameters.

Additional properties are NOT allowed.

Responses

  • 200 application/json

    Success

    Hide response attributes Show response attributes object
    • activeRelease string

      The release that introduced active_version, for example 26.2.1. Empty when the controller leader's binary does not know that logical version, such as a synthetic version used by tests.

    • activeVersion integer(int64) | string

      The cluster's current active logical version. This is also the downgrade floor: the cluster can still roll back to a binary that supports this version. When state is FINALIZATION_STATE_FINALIZED this equals version_after_finalization (no downgrade possible).

    • autoFinalizationEnabled boolean

      The features_auto_finalization cluster config. When true, the cluster advances the active version automatically once all members agree, except for an upgrade that skips a release, which is finalized only by an explicit FinalizeUpgrade and requires this to be false first. The upgrade skips a release when version_after_finalization exceeds active_version by more than one. When false, an explicit FinalizeUpgrade is always required.

    • explicitFinalizeRequired boolean

      True when finalizing takes an explicit FinalizeUpgrade: either features_auto_finalization is false, or the upgrade skips a release, which the controller never finalizes on its own.

    • finalizationBlockedReason string

      Why the cluster is ready to finalize but the controller will not do it on its own, and what to do about it. Empty when nothing is held. Set only when the upgrade skips a release while features_auto_finalization is true: set the property to false, then call FinalizeUpgrade.

    • members array[object]

      Per-member reported version state. Compare logical_version across members to see whether all nodes are on the same version (ready to finalize) or still differ (upgrade in progress). A rolling upgrade has at most two distinct versions present. More than two means brokers run three or more releases at once, for example after a roll was redirected to a newer release partway through. That is harmless, since every broker gates its behavior on active_version, but it is not a supported steady state: the cluster cannot finalize until every broker reports the same version.

      Hide members attributes Show members attributes object

      MemberVersion is one cluster member's reported version state, as seen by the controller leader.

      • alive boolean

        Liveness of this member per the controller leader's health monitor.

      • logicalVersion integer(int64) | string

        Latest logical version this member reports, that is, the highest version its binary supports. Meaningful only when version_known is true.

      • nodeId integer(int32)

        Broker / node id.

      • releaseVersion string

        Human-readable Redpanda release version (for example v25.2.1) reported by this member, when known. Distinct from logical_version: multiple releases can share one logical version.

      • versionKnown boolean

        False when the controller leader has not yet received a version report for this member (for example freshly added, or restarting).

    • releasesCrossed integer(int64) | string

      How many logical versions the upgrade crosses, from active_version to the highest version any member reports: 0 when no upgrade is in progress, 1 for an upgrade to the next release, 2 or more for an upgrade that skips a release. Every major release since 23.1 bumps the logical version exactly once. An upgrade between patch releases of the same major release crosses none.

    • state string

      High-level lifecycle state derived from the per-member versions below.

      Values are FINALIZATION_STATE_UNSPECIFIED, FINALIZATION_STATE_FINALIZED, FINALIZATION_STATE_READY_TO_FINALIZE, or FINALIZATION_STATE_UPGRADE_IN_PROGRESS.

    • targetRelease string

      The release that introduced the highest logical version any member reports, which is the version the cluster is heading to. Equal to active_release when no upgrade is in progress. Empty when the leader's binary does not know that version, for example while the leader still runs the older release.

    • versionAfterFinalization integer(int64) | string

      The active version that a FinalizeUpgrade would produce right now. Greater than active_version only when state is FINALIZATION_STATE_READY_TO_FINALIZE; otherwise equal to active_version (finalizing would be a no-op).

  • default application/json

    Error

    Hide response attributes Show response attributes object
    • code string

      The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].

      Values are canceled, unknown, invalid_argument, deadline_exceeded, not_found, already_exists, permission_denied, resource_exhausted, failed_precondition, aborted, out_of_range, unimplemented, internal, unavailable, data_loss, or unauthenticated.

    • details array[object]

      A list of messages that carry the error details. There is no limit on the number of messages.

      Hide details attributes Show details attributes object

      Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details.

      • debug object

        Detailed error information.

        Additional properties are allowed.

      • type string

        A URL that acts as a globally unique identifier for the type of the serialized message. For example: type.googleapis.com/google.rpc.ErrorInfo. This is used to determine the schema of the data in the value field and is the discriminator for the debug field.

      • value string(binary)

        The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the type field.

    • message string

      A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.

POST /redpanda.core.admin.v2.FeaturesService/GetUpgradeStatus
curl \
 --request POST 'http://localhost:9644/redpanda.core.admin.v2.FeaturesService/GetUpgradeStatus' \
 --header "Content-Type: application/json" \
 --header "Connect-Protocol-Version: 1" \
 --header "Connect-Timeout-Ms: 42.0"
Request examples
# Headers
Connect-Protocol-Version: 1
Connect-Timeout-Ms: 42.0

# Payload
{}
Response examples (200)
{
  "activeRelease": "string",
  "activeVersion": 42,
  "autoFinalizationEnabled": true,
  "explicitFinalizeRequired": true,
  "finalizationBlockedReason": "string",
  "members": [
    {
      "alive": true,
      "logicalVersion": 42,
      "nodeId": 42,
      "releaseVersion": "string",
      "versionKnown": true
    }
  ],
  "releasesCrossed": 42,
  "state": "FINALIZATION_STATE_UNSPECIFIED",
  "targetRelease": "string",
  "versionAfterFinalization": 42
}
Response examples (default)
{
  "code": "not_found",
  "details": [
    {
      "debug": {},
      "type": "string",
      "value": "@file"
    }
  ],
  "message": "string"
}