Move kube-save-var-lib under vault#5745
Conversation
|
Can someone add stable label? |
3118513 to
e8f11e4
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #5745 +/- ##
==========================================
+ Coverage 19.52% 24.36% +4.83%
==========================================
Files 19 24 +5
Lines 3021 5314 +2293
==========================================
+ Hits 590 1295 +705
- Misses 2310 3799 +1489
- Partials 121 220 +99 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Hold on this merge, seeing an issue in testing. |
e8f11e4 to
d0c10db
Compare
b6008d1 to
625ec66
Compare
In kube service container startup (setup_prereqs), after vault is ready begin migrating kube-save-var-lib with the same process used to snapshot and restore it currently. Cannot perform a simple rename as src and dest can be on separate fs. Copy with archive to preserve mode, ownership and timestamps. Signed-off-by: Andrew Durbin <andrewd@zededa.com>
625ec66 to
ae227de
Compare
|
Moved this to a migration function in the kube service container to simplify |
eriknordmark
left a comment
There was a problem hiding this comment.
Can't this be done using pkg/pillar/cmd/upgradeconverter?
Also, there is a list of path names in /persist/ we use for 1) reporting memory usage and 2) freeing up space to avoid failing to boot.
Is the new directory in those lists? (First one is in zedagent or volumemgr, second one in one of the scripts - I think storage-init).
I had an attempt at implementing it in the upgradeconverter and ended up reimplementing a lot of copy path to handle the odd files in the save-var-lib bundle like some sockets and ownership/permissions. cp -a was one line instead. I see your point about the directory paths to report space, I will look into that. |
In kube service container startup (setup_prereqs), after vault is ready begin
migrating kube-save-var-lib with the same process used to snapshot and restore
it currently.
Cannot perform a simple rename as src and dest can be on separate fs.
Copy with archive to preserve mode, ownership and timestamps.
PR dependencies
None
How to test and validate this PR
eve enter kube)Changelog notes
PR Backports
Checklist
And the last but not least:
check them.
Please, check the boxes above after submitting the PR in interactive mode.