Repin a drifted rollout plan Unreleased: coming in v1.3
Apply an edit to spec.rollout or a RolloutPolicy to the active rollout run, keeping its progress, with the alpha kubectl ome rollout repin action.
When you edit a rollout's steps or analysis mid-run, a repin moves the run in progress onto the edited plan, and the run keeps its progress. Without a repin, a run keeps the plan it pinned when it started, and an edit to spec.rollout or a RolloutPolicy waits for the next run. kubectl ome rollout repin is the command for it, but it refuses every drifted run — a known bug that Step 2 explains — so this guide repins with the ome.io/rollout-repin annotation, which the bug doesn't affect. A repin works only on components that use OMENative: Deployment modes and OMENative shows which components use it by default and how to opt others in.
What a repin can change¶
A repin applies edits to a group's progression, whether the group sets it inline or takes it from a rollout policy. Edits to the groups' shape wait for the next run, and repin refuses them.
| Edit | Applies |
|---|---|
A group's canary block, including its steps, prometheus, scaleDownDelaySeconds and readyTimeout, or its blueGreen or rollingUpdate block |
Now, with a repin |
The number of groups, or a group's progression kind, components, order, soak or maintainRatio |
At the next run |
DRIFT tracks progressions and the number of groups, so an edit to a group's components, order, soak or maintainRatio alone leaves it False.
Removing spec.rollout entirely is the exception: no run opens once it's gone, so there's no next run to wait for, and a repin closes the run at once instead of moving it. The command refuses an empty plan, so that repin is annotation-only. See Close the run after removing spec.rollout.
The run keeps its ID, start time and target revisions. The canary keeps its step, or takes the last step if the new plan has fewer steps, and a canary that finished stays finished. When that step's traffic weight is higher than the weight OME recorded for the canary, the canary holds before the step until you release it.
Step 1: Confirm the drift¶
Check the rollout plan's conditions:
kubectl get inferenceservice chat -n prod -o custom-columns='PLAN-READY:.status.conditions[?(@.type=="RolloutPlanReady")].reason,DRIFT:.status.conditions[?(@.type=="RolloutPlanDrift")].reason'PLAN-READY DRIFT
Pinned SpecNewerThanRunPinned means a run is in progress. DRIFT is PolicyNewerThanRun if the group whose plan changed takes its progression from a rollout policy, and SpecNewerThanRun otherwise.
To compare the plans, run kubectl ome rollout explain chat -n prod. Effective is the plan the run follows, and Live is the plan that a repin pins. Output fields describes each row, including ISSUES EpochUnverifiable, which all services with rollout groups show.
Step 2: Repin the run¶
kubectl ome rollout repin is meant to do this step: check that a repin is safe, preview the ome.io/rollout-repin annotation it sets, and ask Confirm this exact action? [y/N]. On the current controller it never gets that far — it refuses every drifted run:
kubectl ome rollout repin chat -n proderror: rollout repin refused: controller plan evidence is missing, stale or inconsistentSet the annotation yourself instead, as Repin by annotation shows, then check the result in Step 3.
Step 3: Check the result¶
The controller removes the annotation when it acts on it, whatever the outcome. This prints nothing once it has:
kubectl get inferenceservice chat -n prod \
-o jsonpath='{.metadata.annotations.ome\.io/rollout-repin}'The controller also records the outcome as an event on the InferenceService. A repin that applied gives a Normal RolloutPlanRepinned event, with a message like run chat-0123456789ab repinned: rp1:56fe0ddd6edd -> rp1:1d153db2a5df. A Warning RolloutRepinRejected event means the controller rejected the repin.
Check that DRIFT is back to InSync:
kubectl get inferenceservice chat -n prod -o custom-columns='PLAN-READY:.status.conditions[?(@.type=="RolloutPlanReady")].reason,DRIFT:.status.conditions[?(@.type=="RolloutPlanDrift")].reason'PLAN-READY DRIFT
Pinned InSyncIf DRIFT is still True, the controller rejected the repin or hasn't acted on it yet: see The controller rejects the repin. Then explain the rollout again: the Effective view shows the new plan. The controller counts outcomes in the metric ome_rollout_repin_total, by namespace and outcome (applied or rejected).
Repin by annotation¶
While the command refuses every drifted run, setting the ome.io/rollout-repin annotation yourself, to the digest of the current plan, is the way to repin. It's also the way without the plugin, and for the plans the command's bounds never pass: more than three groups, or a group of more than three components. The controller re-renders the plan with no size bound, and only its digest check guards this path. First check that DRIFT is True, the groups kept their shape, and no promote or rollback waits. With more than one canary group, the controller fits only the first to its new steps, so another group's traffic weight can rise without a hold.
Get the digest the controller reports for each group, after the group's index:
kubectl get inferenceservice chat -n prod -o jsonpath='{range .status.rollout.groups[*]}{.index}{" "}{.observedDigest}{"\n"}{end}'0 rp1:bbbbbbbbbbbbA blank digest means one of two things. For a group that rolls out blue-green by default, because it sets no progression or policy, use rp1:cca45ec1fb0f. For a group whose rollout policy is missing, fix the policy first, or the controller rejects the repin.
Join the digests with |, in group order, and hash them. sha256sum works the same as shasum -a 256. For one group:
printf '%s' 'rp1:bbbbbbbbbbbb' | shasum -a 256 | cut -c1-121d153db2a5dfFor two groups, the input is like 'rp1:cca45ec1fb0f|rp1:bbbbbbbbbbbb'. Put rp1: in front of the result, and set the annotation:
kubectl annotate inferenceservice chat -n prod ome.io/rollout-repin=rp1:1d153db2a5dfinferenceservice.ome.io/chat annotatedTo replace a repin that still waits, add --overwrite. The value now in place of a digest skips the digest check, and the controller pins whatever the plan is when it acts. Then check the result as in Step 3.
Close the run after removing spec.rollout¶
Deleting spec.rollout mid-run doesn't end the run: it continues on the plan it recorded, and closes when that plan finishes or rolls back. The controller records a Warning RolloutGroupRemovedMidRun event, and DRIFT turns True/SpecNewerThanRun with the message spec.rollout removed mid-run; the run continues on its recorded plan and closes when that plan finishes or rolls back — end it sooner with ome.io/rollout-rollback, or close it at once with ome.io/rollout-repin.
With no groups left, the current plan is the empty plan, and a repin to it closes the run instead of moving it. kubectl ome rollout repin refuses an empty plan, so set the annotation yourself. There are no group digests to join, so use the value now:
kubectl annotate inferenceservice chat -n prod ome.io/rollout-repin=nowinferenceservice.ome.io/chat annotatedThe controller closes the run Superseded, records it in status.rollout.lastRun, removes the annotation, and gives a Normal RolloutRunClosed event with a message like run chat-0123456789ab closed by repin to an empty plan. The repin counts as applied in ome_rollout_repin_total. No run opens after the close, since the spec declares no groups. Check the conditions:
kubectl get inferenceservice chat -n prod -o custom-columns='PLAN-READY:.status.conditions[?(@.type=="RolloutPlanReady")].reason,DRIFT:.status.conditions[?(@.type=="RolloutPlanDrift")].reason'PLAN-READY DRIFT
NoActiveRun InSyncTroubleshooting¶
A refused repin changes nothing and exits 1, and a conflict exits 3. Refusals lists them all, and Guarded actions covers the errors that all actions share.
| Message | Cause | Fix |
|---|---|---|
rollout repin refused: controller plan evidence is missing, stale or inconsistent |
On a drifted run, always: the command accepts the RolloutPlanDrift condition's message only in the controller's old wording, differs from pinned, and the controller writes differs from recorded, so the check never passes — the known bug Step 2 explains. The same refusal covers a plan of more than three groups, or a group of more than three components, though the API allows four of each. |
Don't wait and retry: the refusal never clears. Repin by annotation instead. |
rollout repin refused: live and pinned rollout topology differ |
The edit changed the groups' shape. | Undo those changes to repin the rest now, or let the edit wait for the next run. |
rollout repin refused: a rollout action mailbox is already present |
A repin, promote or rollback annotation is on the InferenceService. | Wait for the controller to act on a repin or promote, and retry. Remove a rollback annotation yourself before you apply a fix, as Roll back the canary shows. |
rollout repin refused: the current plan is already pinned |
The run already follows the current plan. | If DRIFT is True, the live plan matches the pin again, as after undoing an edit, and the controller returns DRIFT to False/InSync on its next pass. Explain the rollout again. |
rollout repin refused: no active pinned run |
No rollout run is in progress. | None needed: the next run pins the current plan. |
rollout repin refused: empty live plans are not supported by this command |
spec.rollout is gone, or has no groups left. |
The command can't close a run. To close it at once, set the annotation yourself, as Close the run after removing spec.rollout shows. |
rollout repin refused: this command supports at most one canary group |
The spec has more than one canary group. | Let the edit wait for the next run. |
guarded annotation patch rejected; refresh rollout explain and retry explicitly |
The InferenceService changed after the command read it, for example in a status update. | Explain the rollout again, then run repin again. |
rollout repin request outcome unknown; do not replay, check rollout explain |
The API server may have stored the annotation. | Check the result as in Step 3 before you run repin again. |
required Kubernetes API request failed; check access and connectivity |
You lack get or patch, the InferenceService doesn't exist, or the API server is unreachable. |
Check Required RBAC, the name and your connection. |
The controller rejects the repin¶
A Warning RolloutRepinRejected event means the run kept its pinned plan. expected render digest ... (a concurrent edit landed; re-issue with the current digest) means the plan changed after you computed the digest. Explain the rollout, and repin again if you still want the current plan. the current source does not render names the problem, for example PolicyNotFound. Fix it, then repin again.
The canary holds after the repin¶
Explain shows HOLD CanaryPreStep, and kubectl ome rollout promote refuses: the new step's traffic weight is higher than the weight OME recorded for the canary. PHASE is Pending until the canary reaches the step's capacity, then Paused. Release the hold with the promote annotation, set to the canary revision that explain shows as target= in REVISIONS:
kubectl annotate inferenceservice chat -n prod ome.io/rollout-promote=bbbbbbbbinferenceservice.ome.io/chat annotatedThe controller ends the hold and records the step's weight, and the step's gate then applies as usual. To back out instead, roll the canary back.
Next steps¶
- kubectl ome rollout: the
repincommand in full. - Guarded actions: the contract every mutating kubectl-ome command follows.
- Promote or roll back a canary: move a canary through its steps.
- Rollout policy: share progressions between InferenceServices.
- Runtime revisions and pinning: the other pin, for runtime snapshots and
ome.io/runtime-sync.