Skip to content

db/instances: remove hardcoded 300GB size cap - #3734

Merged
mandre merged 2 commits into
gophercloud:mainfrom
DDuckSCH21:fix/db-instance-size-upper-limit
May 26, 2026
Merged

mandre merged 2 commits into
gophercloud:mainfrom
DDuckSCH21:fix/db-instance-size-upper-limit

Conversation

@DDuckSCH21

@DDuckSCH21 DDuckSCH21 commented May 5, 2026 •

Copy link
Copy Markdown
Contributor

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

@github-actions github-actions Bot added the edit:db This PR updates db code label May 5, 2026

@winiciusallan winiciusallan 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.

Hi @DDuckSCH21, thanks for proposing a PR for this fix. Could you please add acceptance tests for this change?

Also, would you mind fixing the link to the issue in the PR description?

Comment thread openstack/db/v1/instances/requests.go
@github-actions github-actions Bot added semver:patch No API change backport-v2 This PR will be backported to v2 labels May 7, 2026
@coveralls

coveralls commented May 7, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 64.028% (+0.02%) from 64.013% — DDuckSCH21:fix/db-instance-size-upper-limit into gophercloud:main

Comment thread openstack/db/v1/instances/requests.go Outdated
Comment thread openstack/db/v1/instances/requests.go
@mandre
mandre enabled auto-merge May 26, 2026 16:26
@mandre
mandre added this pull request to the merge queue May 26, 2026
Merged via the queue into gophercloud:main with commit 5d66325 May 26, 2026
64 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-v2 This PR will be backported to v2 edit:db This PR updates db code semver:patch No API change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

db/v1/instances: remove hardcoded 300GB upper limit for CreateOpts.Size

4 participants