Repository navigation
Conversation
A container runtime creates a missing mount point for a validator_keys mask, often root owned, which made a later charon dkg fail with "data directory not clean". Remove it when empty and let the DKG create its own. A non-empty directory is still refused.
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4834 +/- ##
==========================================
+ Coverage 67.73% 67.78% +0.04%
==========================================
Files 255 255
Lines 33749 33762 +13
==========================================
+ Hits 22860 22885 +25
+ Misses 10888 10876 -12
Partials 1 1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



LCDVN and dv-pod now mask
.charon/validator_keysfrom the charon container. If that directory doesn't exist yet, the container runtime creates it as a mount point, often owned by root. A latercharon dkgthen refuses with "data directory not clean", even though the directory is empty.checkClearDataDirnow removes an emptyvalidator_keysdirectory and carries on.checkWritesthen creates a fresh one owned by the DKG user. Avalidator_keysdirectory with any entry, or avalidator_keysfile, is still refused.If the removal fails, the error says to remove the directory manually and retry.
Removing a root-owned empty directory works without root, because only write access to the parent
.charonis needed. The DKG runs in its own container, where the directory isn't a mount point.Testing
TestCheckClearDataDir:validator_keysdirectory is still refused;go test ./dkg/... -shortcategory: misc
ticket: none