-
Notifications
You must be signed in to change notification settings - Fork 77
Added support for increased Block Storage Volume limits #626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: proj/block-storage-volume-limit-increase
Are you sure you want to change the base?
Added support for increased Block Storage Volume limits #626
Conversation
8f4ee7b to
6a2bba7
Compare
…-block-storage-volume
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds support for increased Block Storage Volume limits by implementing dynamic device suffix generation. The key enhancement allows for up to 64 device attachments (previously limited to 8), with the actual limit scaled based on instance memory.
Key changes:
- Introduced
generate_device_suffixes()utility function to generate alphabetical suffixes beyond 'a-h' - Updated device limit calculation to scale between 8 and 64 based on instance memory
- Added comprehensive unit tests for the new suffix generation function
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| linode_api4/util.py | Added generate_device_suffixes() function to generate alphabetical device suffixes with multi-character support (aa, ab, etc.) |
| linode_api4/objects/linode.py | Updated config_create() to use dynamic device limits and the new suffix generator |
| test/unit/util_test.py | Added unit tests validating suffix generation for 12, 30, and 60 device scenarios |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
📝 Description
Added support for increased Block Storage Volume limits.
✔️ How to Test
make test-unit