8 Commits
Author SHA1 Message Date
MrBlakeandClaude Opus 5.5 95fd28f2a4 feat: MSA import reads disk group exports and loosely named columns
The disk group export of an HPE MSA sets RAID level and pool on the RAID
groups of the selected devices. Column names are matched case- and
punctuation-insensitively with common aliases, positions are accepted as
1.4, 1:4, 1/4 or "Enclosure 1, Slot 4" or as separate enclosure and slot
columns, and both export kinds are detected in the regular disk import.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-21 15:02:46 +02:00
MrBlakeandClaude Opus 5.5 2a6abc396d feat: hand HPE MSA exports from the disk CSV import to the MSA wizard
An MSA disk export pasted or uploaded in Disks > Import failed with
"Unknown header: Location". The import now recognises the MSA columns and
opens the shelf assignment step of the MSA import instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-21 14:13:10 +02:00
MrBlakeandClaude Opus 5.5 a7801ec297 feat: import the disk CSV export of an HPE MSA
A three-step wizard reads the MSA disk export, maps each enclosure (shelf)
to a device and previews new, updated, replaced, skipped and conflicting
disks. Devices without slot areas get one created during the import,
pre-filled from the device type template or the export. Disk groups can
become RAID groups and the install date can be estimated from the power
on hours.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-21 14:06:22 +02:00
MrBlakeandClaude Opus 5.5 d45afa5e54 feat: several slot areas per device, e.g. front bays and a PCIe card
Disks that are not in the front bays, such as NVMe SSDs on a PCIe card or
M.2 SSDs on a boot card, can now be documented in their own slot area.

- A device can have several areas, each with name, order, slot count,
  rows, first slot, numbering and form factor; the tab shows one grid per
  area with its own fill, select and edit actions.
- Add area, edit area and delete empty areas on the Disks tab.
- Slot numbers are unique per area; drag and drop also moves or swaps
  disks between areas.
- Device type templates store all areas; Apply template creates the
  missing ones.
- Disks get a bay field in forms, CSV import (bay column, optional when
  the device has one area), REST API, GraphQL, filters and tables.
- Migration 0010 turns every existing layout into the area "Front" and
  assigns the existing disks to it.
- The grouped disk overview shows the area in its own column and centres
  the slot number.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-19 14:46:48 +02:00
MrBlakeandClaude Opus 5.5 14cb5d5829 feat: own Disks main menu and disk list grouped by device
The disk entries move from the Plugins menu into a top-level Disks menu with
Disks, RAID groups and Disk templates. The Disks entry opens a new page that
groups all disks by device in collapsible sections with per-device summary,
search, warning and removed-disk switches and expand/collapse all. The flat
table with filters, export and bulk actions remains available.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-19 14:14:58 +02:00
MrBlakeandClaude Opus 5.5 595d6a2b71 feat: drag and drop disks between slots; fix RAID group form on NetBox 4.7
Disks on the slot grid can be dragged onto a free slot to move them or onto
an occupied slot to swap both disks. Moves are saved immediately with
changelog entries and require netbox_utilities.change_disk.

NetBoxModelForm.clean() returns None on NetBox 4.7, which broke creating
RAID groups with an AttributeError. The disk forms now read
self.cleaned_data instead of the return value.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-19 12:31:56 +02:00
MrBlakeandClaude Opus 5.5 a296c57536 fix: drop unsupported user argument from disk tables and show disk count in tab badge
NetBox 4.7 tables no longer accept a user keyword argument, which broke the
Datenträger tab with a TypeError. The tab badge now shows the number of
installed disks instead of used/total slots or "neu".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-19 12:09:29 +02:00
MrBlakeandClaude Opus 5.5 adbd697c0a feat: add disk management tab for servers, NAS, SAN and MSA devices
Devices whose role is one of disk_device_roles (default Server, NAS, SAN,
MSA) get a "Datenträger" tab with slot layout, disks, RAID groups,
warranty and age warnings, replacement history, CSV import, REST API and
GraphQL.

- First-visit wizard for slot count, rows, first slot number, numbering
  and form factor; layouts can be saved as device type templates and
  applied with one click.
- Slot grid drawn like the device front, coloured by status, with
  warning icons; free slots open a pre-filled disk form.
- Bulk fill of selected slots with shared attributes and one serial per
  line (barcode scanner friendly), with live count and duplicate checks.
- Sizes in vendor notation (960 GB, 4 TB, 1,92 TB, 2 TiB); the tenant is
  always taken from the device and follows tenant changes.
- RAID groups (RAID 0/1/5/6/10/50/60, RAID-Z1/Z2/Z3, JBOD) with hot
  spares, usable capacity, tolerated failures and degraded state.
- "Ersetzen" marks a disk as removed and opens the successor form;
  removed disks stay as per-slot history.
- Warnings for failed disks, expired or expiring warranties and disks
  older than disk_age_warning_years.
- Global disk list with filters, export, global search by serial,
  optional device list column, CSV import, REST API and GraphQL.
- New settings: disks_enabled, disk_device_roles,
  disk_age_warning_years, disk_warranty_warning_days.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-19 12:01:56 +02:00