Skip to content

test(k8s): run volume move copy reliability measure live #3953

Open

Description

@devops-cli-service

Split from #3701.

Problem: The harness from #3701 defines the 20-copy measure and checks its report offline, but the new copy path has not been measured on a real two-node cluster. Why deferred: The implement job has no Kubernetes token (CONTEXT.md:142) and the runner image has no kubectl (Dockerfile:51). A person or an agent with cluster access must run the harness after #3701 merges. Acceptance criteria: Run 20 copies of 100 MiB of random data through the new copy path (_copy_argv in src/devops_cli/k8s/volume_move.py) on two nodes. At least 20 copies complete. The SHA-256 content digest of each copy matches its source. Record 20/20 complete copies and 20/20 digest matches in the pull request or a comment.

Proposed design

Problem statement

Run the #3701 live measure after the merge. The harness defines the 20-copy measure and checks its report offline. Nobody has run the measure on a real two-node cluster, so the new copy path has no live reliability result. The implement job cannot run it: its pod holds no Kubernetes token and its image holds no kubectl. A person or an agent with cluster access must run the harness and record the counts.

Acceptance criteria

Requirement: Pending a person after the merge

After the merge, a person or an agent with cluster access SHALL run 20 copies of 100 MiB of random data through copy_argv on a two-node cluster.

Scenario: Twenty copies complete

Requirement: Two different nodes

The live measure MUST run the source copy pod and the destination copy pod on two different nodes.

Scenario: The copy pods name different nodes

  • WHEN The person or agent reads the node of each copy pod with kubectl get pod -o wide -n <namespace>.
  • THEN The NODE column shows different nodes for the source copy pod and the destination copy pod, and the recorded result states both node names.

Requirement: Content digest matches

Each of the 20 copies MUST have the same content digest as its source.

Scenario: Every content digest matches

  • WHEN The person or agent compares the content field of each source CopyDigest with the content field of its destination CopyDigest.
  • THEN The recorded result states 20 content digest matches and 0 differences.

Requirement: Recorded counts

The run MUST record the complete-copy count and the digest-match count, each out of 20, in an issue comment or a pull request body.

Scenario: Both counts are recorded

  • WHEN The live run ends and the person or agent writes the result with devops gh issue comment or in the pull request body.
  • THEN The issue comment or the pull request body states 20/20 complete copies and 20/20 content digest matches.

Existing Tool Considered

No alternatives check has run. The need is a live 20-copy measure across two nodes, with a content digest for each copy. The #3701 harness in src/devops_cli/k8s/volume_move_measure.py covers it. The harness drives kubectl (Apache-2.0) for the two exec streams, GNU tar (GPL-3.0) to pack and to extract, and GNU sha256sum (GPL-3.0) for the digest. No open, maintained tool measures the reliability of a copy path across two Kubernetes nodes: such a tool needs a scheduler and a cluster, and the person or agent supplies both. This item writes no transfer, count or digest code, so it has no build cost.

Key questions

  • Does the test(k8s): measure volume move copy reliability live #3701 harness exist at the commit being refined?: Yes. src/devops_cli/k8s/volume_move_measure.py exists and calls copy_argv. tests/k8s/test_k8s_volume_measure.py checks its report offline. The file is in the tree, so test(k8s): measure volume move copy reliability live #3701 has merged and this item has no dependency on it. [sources: src/devops_cli/k8s/volume_move_measure.py, tests/k8s/test_k8s_volume_measure.py]
  • Which function does the live measure exercise?: copy_argv, not _copy_argv as the issue body writes it. copy_argv at src/devops_cli/k8s/volume_move.py:329 builds one bash -o pipefail program. That program streams GNU tar from the source pod into GNU tar in the destination pod through two kubectl exec -i streams. [sources: src/devops_cli/k8s/volume_move.py:329, src/devops_cli/k8s/volume_move_measure.py]
  • How does the copy path show that a copy is correct?: CopyDigest at src/devops_cli/k8s/volume_move.py:134 holds entries, files, bytes, metadata and content. The content field carries the content digest of the copy. An equal content value on both sides shows equal data. [sources: src/devops_cli/k8s/volume_move.py:134, src/devops_cli/k8s/volume_move_measure.py]
  • Why can the implement job not run the live measure?: The runner pod mounts no Kubernetes ServiceAccount token, and the runner image holds no kubectl. The implement job therefore cannot reach a cluster. [sources: CONTEXT.md, k8s/devops/cronjob-runner.yaml]
  • Which cluster does the live measure need?: A real cluster with at least two nodes. The source copy pod mounts the old claim on the old node. The destination copy pod selects the target node by its hostname label. The stream therefore crosses the node network. (best practice) [sources: src/devops_cli/k8s/volume_move.py]
    • Chosen: Two-node cluster. The stream crosses the node network, which is the path that the copy change affects. Only this case measures that path.
    • Rejected: Single-node cluster. Both copy pods run on one node. The stream never crosses the node network, so the measure shows nothing new.
    • Rejected: Mock of the API server. test(k8s): measure volume move copy reliability live #3701 already checks the report offline. A mock cannot show the end of a stream under a real API server.
  • Who runs the live measure?: A person or an agent with kubectl access and a two-node cluster runs the test(k8s): measure volume move copy reliability live #3701 harness after the merge. The implement job cannot: its pod holds no Kubernetes token and its image holds no kubectl. (best practice) [sources: CONTEXT.md, k8s/devops/cronjob-runner.yaml]
    • Chosen: A person or an agent with cluster access. Only an actor with a kubeconfig reaches a real two-node cluster. The runner pod holds no Kubernetes token.
    • Rejected: The implement job in the runner. The runner pod mounts no Kubernetes token and the runner image holds no kubectl, so the job cannot reach a cluster.
  • How does the plan record the live proof?: The plan records the live proof as an acceptance criterion named Pending a person after the merge. The criterion states the run and the recorded counts. The plan does not ask a person question, because the run is a post-delivery step and no design choice remains. (best practice) [sources: CONTEXT.md, src/devops_cli/k8s/volume_move_measure.py]
    • Chosen: Post-merge acceptance criterion. The run happens after the merge, so the plan records it as a criterion named Pending a person after the merge.
    • Rejected: Defer the whole item. This item is already the deferred live run from test(k8s): measure volume move copy reliability live #3701. A second deferral files the same work again.
    • Rejected: Person question. The run needs no design choice. A person question would ask what the plan already states.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/test
    scope/k8s
    status/new
    value/medium
    effort/low
    on Nov 7, 2026
  2. devops-cli-service commented on Nov 7, 2026

    @devops-cli-service
    ContributorAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/test. The test prefix of the title gives the type.
    • Scope: scope/k8s. The (k8s) scope of the title gives the scope.
    • Priority: P2-Medium. The measure confirms the copy fix on a real cluster, but it does not block other work.
    • Value: Medium. The result gives evidence that the new copy path is reliable, and users get no direct change.
    • Effort: Low. A person with cluster access runs the existing harness and records the numbers.
    • Possible duplicate: test(k8s): measure volume move copy reliability live #3701, which may ask for the same change. The model names a live measure of 20 copies of 100 MiB through the new volume move copy path on two nodes, with the digest check and the recorded result as the change that both ask for. Item 3701 gives the same acceptance criteria: 20 copies of 100 MiB on two nodes, digest matches, and recorded numbers. A person closes one of the two if that is so.
  3. devops-cli-service commented on Nov 8, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at 7935fba while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.

    The next refine round also looks at the item again when a commit on the default branch changes one of these files: CONTEXT.md.

  4. devops-cli-service commented on Nov 8, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at aa772d6 while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.

    The next refine round also looks at the item again when a commit on the default branch changes one of these files: k8s/devops/cronjob-runner.yaml.

  5. devops-cli-service commented on Nov 9, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at 28356ed while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.

    The next refine round also looks at the item again when a commit on the default branch changes one of these files: k8s/devops/cronjob-runner.yaml.

  6. devops-cli-service commented on Nov 11, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at 9087b39 while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.

    The next refine round also looks at the item again when a commit on the default branch changes one of these files: k8s/devops/cronjob-runner.yaml.

  7. dan-petty commented on Nov 14, 2026

    @dan-petty
    Owner

    Blocked on a live cluster and a person: this item is the live run of the #3701 harness, and #3701 is returned because no agent session can reach a two-node cluster or record real digest results. The runner pod has no Kubernetes token and its image holds no kubectl (k8s/devops/cronjob-runner.yaml:33, Dockerfile:51), so the 20-copy measure and its k8s/README.md record cannot be produced or verified offline.

  8. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at 6d21b5b while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.

    The next refine round also looks at the item again when a commit on the default branch changes one of these files: k8s/devops/cronjob-runner.yaml.

  9. added a commit that references this issue on Nov 16, 2026
  10. devops-cli-service commented on Nov 16, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at b1c4892 while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.

  11. devops-cli-service commented on Nov 16, 2026

    @devops-cli-service
    ContributorAuthor

    Owner question: A person or an agent with cluster access must run the #3701 harness on a real two-node cluster. The implement job has no Kubernetes token and no kubectl.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

    The next refine round also looks at the item again when a commit on the default branch changes one of these files: k8s/devops/cronjob-runner.yaml.

  12. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    ContributorAuthor

    Owner question: A person or an agent with cluster access must run the #3701 harness on a real two-node cluster. The implement job has no Kubernetes token and no kubectl.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  13. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    ContributorAuthor

    Owner question: See Suspected block and Watched files in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  14. devops-cli-service commented on Nov 21, 2026

    @devops-cli-service
    ContributorAuthor

    Owner question: See the first point of Open questions and Watched files in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  15. devops-cli-service commented on Nov 21, 2026

    @devops-cli-service
    ContributorAuthor

    Owner question: See Suspected block and Watched files in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  16. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    ContributorAuthor

    Owner question: See Suspected block and Watched files in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  17. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    ContributorAuthor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

  18. dan-petty commented on Nov 28, 2026

    @dan-petty
    Owner

    Replacement check for #7498 (PR #7518, which replaces the volume move copy with pv-migrate): this item becomes obsolete when PR #7518 merges. The PR deletes src/devops_cli/k8s/volume_move_measure.py and its tests: the measure ran the tar pipe of copy_argv and the bash digest, and the move no longer has either. The copy is pv-migrate, whose own integration tests run real migrations across two kind clusters (integration/integration_test.go at v3.8.0). After the merge, this item can close as not planned.

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

    effort/lowpriority/p2-mediumscope/k8ssource/agentstatus/newtype/testvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions