Skip to content

fix(k8s): leave lost+found out of the volume move compare - #7415

Merged
dan-petty merged 2 commits into
mainfrom
fix/7414-volume-move-lost-found
Nov 27, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/7414-volume-move-lost-found

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The compare of devops k8s volume move leaves out the top-level lost+found of each side. mkfs makes that directory on a new ext4 volume, such as one of the class longhorn, and a local-path volume, a directory on its node, has none. Before, the destination of a move from local-path to longhorn had one entry more and another metadata digest, so the move stopped at the compare and undid its steps.

Each find of the digest script prunes ./lost+found. A directory with that name lower in the tree still counts, and tar still copies a lost+found of the source.

Closes #7414

Change: openspec/changes/archive/2026-11-27-7414-volume-move-lost-found/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 27, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Live check on the homelab, 2026-11-27, with the branch build.

Check Result
Digest script of main on a real copy (738,097,738 bytes, from local-path to a new longhorn volume) source entries 2004, destination entries 2005, metadata digests differ; the path diff is only ./lost+found
Digest script of this branch on the same two volumes entries 2004 on each side, equal metadata and content digests; /dst/lost+found still there
Full move of a test claim (8 MiB, 2003 files) from local-path on a node without Longhorn to longhorn, first copy passed (no retry) The two sides are equal: 2005 entries, 2003 files, 8203860 bytes; claim Bound with class longhorn; pod Running on another storage node; sha256sum of all files the same; lost+found on the new volume
Local proof of the script, two folders with and without a top-level lost+found (holding a file) equal output; a nested sub/lost+found still counts

The test namespace and its volumes are deleted.

@dan-petty
dan-petty marked this pull request as ready for review November 27, 2026 14:07
@dan-petty
dan-petty merged commit a25ccaf into main Nov 27, 2026
27 checks passed
@dan-petty
dan-petty deleted the fix/7414-volume-move-lost-found branch November 27, 2026 14:15
dan-petty-release Bot added a commit that referenced this pull request Nov 27, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.225.1](v0.225.0...v0.225.1)
(2026-11-27)


### Bug Fixes

* **k8s:** leave lost+found out of the volume move compare
([#7415](#7415))
([a25ccaf](a25ccaf))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(k8s): leave lost+found out of the volume move compare

1 participant