Skip to content

Conversation

@ezilber-akamai
Copy link
Contributor

📝 Description

Added support for increased Block Storage Volume limits.

✔️ How to Test

make test-unit

@ezilber-akamai ezilber-akamai requested a review from a team as a code owner December 2, 2025 18:22
@ezilber-akamai ezilber-akamai requested review from jriddle-linode and zliang-akamai and removed request for a team December 2, 2025 18:22
@ezilber-akamai ezilber-akamai added the new-feature for new features in the changelog. label Dec 2, 2025
@ezilber-akamai ezilber-akamai force-pushed the TPT-4040-block-storage-volume branch from 8f4ee7b to 6a2bba7 Compare December 2, 2025 18:40
@ezilber-akamai ezilber-akamai changed the base branch from dev to proj/block-storage-volume-limit-increase December 3, 2025 14:04
Copy link
Contributor

Copilot AI left a 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.

ezilber-akamai and others added 3 commits December 3, 2025 13:08
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-feature for new features in the changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant