WIZ-STORAGE: Installation wizard – storage provisioning #211
Labels
No labels
L
M
P0
P1
P2
S
Testing
UX/UI
User Story
XL
XS
XXL
XXS
access
accessibility
backend
bug
containers
documentation
duplicate
encryption
enhancement
feature
fix
frontend
functional req
good first issue
help wanted
installation
integration
invalid
non-functional req
non-tech individual
office worker
quadlet
question
recovery
security
storage-core
sysadmin
system
tech individual
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
kyrylo/vorteq-nas-os#211
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Build the storage step of the installation wizard (front-end + back-end): detect drives, show which contain data, optionally wipe them, select drives and create the storage pool.
The system scripts are written separately. This task is only the UI and the backend that calls the scripts. Use mock scripts returning the same JSON until the real ones exist.
Context
Scripts the backend can use
Rules for all scripts: arguments as CLI flags, output as JSON on stdout, exit code 0 = success, non-zero = failure with
{"error": "..."}.nas-list-drivesnas-wipe-drive--device /dev/sdXnas-create-storage--layout raid10 --devices /dev/sda,/dev/sdb,...Front-end: what must be shown
Screen "Select storage drives"
Wipe flow
Create flow
Back-end: what it must do
GET /api/storage/drives: runsnas-list-drives, returns the parsed listPOST /api/storage/wipe{device}: runsnas-wipe-drivePOST /api/storage/provision{devices[], layout}: runsnas-create-storageGET /api/storage/status: progress/result of wipe and provision (for polling)nas-list-drives