Skip to content

[v2] db/instances: remove hardcoded 300GB size cap - #3769

Merged
mandre merged 2 commits into
v2from
bp-v2-99193c8-759b9e0
May 27, 2026
Merged

mandre merged 2 commits into
v2from
bp-v2-99193c8-759b9e0

Conversation

@gophercloud-backport-bot

Copy link
Copy Markdown

Backport: #3734

This PR removes the hardcoded upper limit (300 GB) from instances.CreateOpts.Size
client-side validation in openstack/db/v1/instances.
Current behavior rejects Size > 300 before request is sent.
New behavior validates only Size >= 1 and leaves deployment-specific maximum
validation to the OpenStack/Trove API.
Tests added:

  • allow Size: 301 in ToInstanceCreateMap()
  • reject Size: 0 in ToInstanceCreateMap()

Fixes #3733

Трефилов Александр Андреевич and others added 2 commits May 26, 2026 16:43
@github-actions github-actions Bot added edit:db This PR updates db code v2 This PR targets v2 semver:patch No API change labels May 26, 2026
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 63.834% (+0.02%) from 63.819% — bp-v2-99193c8-759b9e0 into v2

@mandre
mandre merged commit ad7410b into v2 May 27, 2026
16 checks passed
@mandre
mandre deleted the bp-v2-99193c8-759b9e0 branch May 27, 2026 12:04
kayrus pushed a commit to terraform-provider-openstack/terraform-provider-openstack that referenced this pull request Jul 14, 2026
Removes the client-side 300GB limit on db instance volume size
validation in gophercloud (PR gophercloud/gophercloud#3769).
Fixes #2043

Co-authored-by: Трефилов Александр Андреевич <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

edit:db This PR updates db code semver:patch No API change v2 This PR targets v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants