Skip to content

Allow restore and wipe workers to mount bound local volumes on the authorized tainted game pool #969

Open

Description

@Baylem

A game can run on the documented dedicated pool with an exact NoSchedule toleration, then become impossible to restore in place. Its bound local PersistentVolume selects the game worker. The restore Job lacks the pool toleration, and the operator has already stopped the target. The same placement helper is used for wipe Jobs.

Audited master 7c71eca7bcdf20c2a3f634277d0005e2b9221ea0. This finding was traced through the source. The cluster scenario below is a proposed regression test.

A Restic restore builds a PodSpec, calls placeFirstVolumeConsumer, prepares the recovery worker and creates the Job. The helper assigns both tolerations and selectors only for an unbound/missing claim. The ordinary restore Pod has no inherited tolerations. Named recovery adds a token, mount and readiness probe without changing placement. By comparison, a prepared backup worker already copies the observed source's tolerations. Restore Job creation · Bound-volume branch · Named restore preparation · Wipe Job · Prepared backup worker

Reproduce on a disposable cluster

  1. Create a dedicated worker labeled and tainted gameplane.local/pool=games:NoSchedule. Configure the corresponding authorized game worker policy. Start a game with a local-path or local PV confined to that worker and wait until its claim is bound.
  2. Make a Restic backup and request an in-place restore. Inspect the stopped target, the restore Job's PodSpec and the scheduler's taint and PV topology diagnostics.
  3. Independently request a wipe on a disposable game with the same storage and placement. Compare with a first consumer of a previously unbound claim.

Acceptance criteria

  • Restore and wipe workers on bound claims can tolerate the administrator-approved pool taint. Leave PV topology in control of node selection. Do not import a new pool selector or game-executable architecture into recovery of an older bound volume.
  • Specify how an administrator authorizes recovery from a differently tainted historical pool. Preserve existing source tolerations on prepared backup workers and avoid wildcard grants.
  • An integration test restores a known file with its original contents and verifies a wipe on separate disposable data. Cover a bound local PV on a tainted worker and a legacy volume outside the current pool. Retain the existing first-consumer placement checks.

#875/#903 implemented the game worker policy. #958 added maintenance placement on unbound volumes. #717 covered live RWO backup workers. This case starts with a stopped target and an already-bound volume.

Activity

  1. added
    type: fix
    area: operator
    area: e2e
    on Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: e2earea: operatortype: fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions