Skip to content

feat(BA-8668): identify storage volumes by a system-unique name - #15967

Merged
fregataa merged 2 commits into
mainfrom
feat/BA-8668-storage-volume-name-identity
Oct 22, 2026
Merged

fregataa merged 2 commits into
mainfrom
feat/BA-8668-storage-volume-name-identity

Conversation

@fregataa

@fregataa fregataa commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Add StorageVolumeName and a unique constraint on storage_volumes.name
  • Key VolumePool and StorageProxyUnifiedConfig.volume by StorageVolumeName, and use it as the VfsVolumeStatusCheck identifier; the marker file still holds the UUID volume id
  • Keep VolumeID lookups only for VolumeService, now marked deprecated together with its API handler

Test plan

  • tests/unit/storage_proxy/vfolder/test_pool.py: lookup by name, lookup by VolumeID (including an upper-case UUID key), noop volume excluded from list_volumes()
  • tests/unit/storage_proxy/vfolder/test_service.py: get_volumes() reads list_volumes_by_id()
  • tests/unit/common/storage/volume/test_vfs.py
  • Apply the 3b8e1d6c9a47 migration and downgrade it

Resolves BA-8668

🤖 Generated with Claude Code

https://claude.ai/code/session_0128bKAiecc6WfVK9VBRjxBv

- Add StorageVolumeName and a unique constraint on storage_volumes.name
- Key VolumePool and StorageProxyUnifiedConfig.volume by StorageVolumeName
- Use StorageVolumeName as the VfsVolumeStatusCheck identifier; the marker
  file still holds the UUID volume id
- Keep VolumeID lookups only for VolumeService and mark it and its API
  handler as deprecated

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0128bKAiecc6WfVK9VBRjxBv
@fregataa
fregataa requested a review from a team as a code owner October 21, 2026 10:45
Copilot AI balanced review requested due to automatic review settings October 21, 2026 10:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added size:L 100~500 LoC comp:manager Related to Manager component comp:common Related to Common component comp:storage-proxy Related to Storage proxy component require:db-migration Automatically set when alembic migrations are added or updated labels Oct 21, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0128bKAiecc6WfVK9VBRjxBv
@fregataa
fregataa merged commit fe55a63 into main Oct 22, 2026
54 of 57 checks passed
@fregataa
fregataa deleted the feat/BA-8668-storage-volume-name-identity branch October 22, 2026 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp:common Related to Common component comp:manager Related to Manager component comp:storage-proxy Related to Storage proxy component require:db-migration Automatically set when alembic migrations are added or updated size:L 100~500 LoC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants