Repository navigation
Assign volume to additional disk - #978
Merged
Merged
Conversation
mrmarkuz
approved these changes
Nov 11, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR implements volume assignment to additional disks, allowing application data to be stored on separate filesystems. The implementation extends module installation, cloning, and restoration actions with optional volume mapping, provides a configuration file for default assignments, and includes a helper command to manage these settings.
Key Changes:
- Added optional
volumesparameter toadd-module,clone-module, andrestore-moduleactions for explicit volume-to-mountpoint mappings - Implemented
/etc/nethserver/volumes.confconfiguration file for default volume assignments per application type - Created
volumectlcommand-line tool to manage volume configurations and list available disks
Reviewed Changes
Copilot reviewed 17 out of 18 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/modules/volumes.md | New documentation explaining volume types, assignment to additional disks, and volumectl usage |
| docs/modules/images.md | Added reference to new org.nethserver.volumes label |
| core/imageroot/var/lib/nethserver/node/actions/list-mountpoints/validate-output.json | JSON schema for list-mountpoints action output |
| core/imageroot/var/lib/nethserver/node/actions/list-mountpoints/50list_mountpoints | Implementation of list-mountpoints action |
| core/imageroot/var/lib/nethserver/node/actions/add-module/validate-input.json | Extended schema with volumes parameter |
| core/imageroot/var/lib/nethserver/node/actions/add-module/50update | Creates base paths for module volumes during installation |
| core/imageroot/var/lib/nethserver/cluster/actions/restore-module/validate-input.json | Extended schema with volumes parameter |
| core/imageroot/var/lib/nethserver/cluster/actions/restore-module/50restore_module | Passes volumes parameter to add-module action |
| core/imageroot/var/lib/nethserver/cluster/actions/clone-module/validate-input.json | Extended schema with volumes parameter |
| core/imageroot/var/lib/nethserver/cluster/actions/clone-module/50clone_module | Passes volumes parameter to add-module action |
| core/imageroot/var/lib/nethserver/cluster/actions/add-module/validate-input.json | Extended schema with volumes parameter |
| core/imageroot/var/lib/nethserver/cluster/actions/add-module/50update | Validates mountpoint paths and passes volumes to node add-module action |
| core/imageroot/usr/local/bin/volumectl | CLI tool for managing volumes.conf and listing available disks |
| core/imageroot/usr/local/agent/pypkg/agent/volumes.py | Core volume management library with configuration parsing and mountpoint detection |
| core/imageroot/usr/local/agent/actions/create-module/validate-input.json | Extended schema with volumes parameter |
| core/imageroot/usr/local/agent/actions/create-module/05pullimages | Removed duplicated set_weight call |
| core/imageroot/usr/local/agent/actions/create-module/05create_volumes | Creates podman volumes with bind mounts to configured paths |
| core/imageroot/etc/profile.d/volumectl.sh | Bash completion for volumectl command |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
gsanchietti
reviewed
Nov 12, 2025
gsanchietti
reviewed
Nov 12, 2025
gsanchietti
reviewed
Nov 12, 2025
gsanchietti
approved these changes
Nov 13, 2025
- Read default additional directories from optional config file /etc/nethserver/volumes.conf - Pass volumes configuration to cluster/add-module action and validate it. - Pass volumes configuration to cluster/clone-module and cluster/restore-module actions. - Pre-create additional directories for application volumes in node's add-module. - Pre-create application volumes during create-module, with volume bind mount to additional directories. - Implement node's list-mountpoints action.
Configure custom volume mappings to local filesystem mountpoints.
DavidePrincipi
force-pushed
the
feat-7665
branch
from
November 13, 2025 09:20
11e04d3 to
7cae0e5
Compare
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.
add-module,clone-module,restore-moduleactions with optional attributevolumes./etc/nethserver/volumes.conf.volumectlto managevolumes.confcontents and list available disks.Refs NethServer/dev#7665