Skip to content

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

Closed

Description

@DDuckSCH21

if opts.Size > 300 || opts.Size < 1 {

In openstack/db/v1/instances/requests.go, CreateOpts.ToInstanceCreateMap() rejects sizes above 300 GB.
This appears to be environment-specific (Trove/OpenStack deployment limits vary), not a universal API constraint.
Because of this client-side validation, valid requests for deployments with larger limits cannot be sent at all.
Proposal: validate only Size >= 1 in gophercloud and let the API enforce deployment-specific maximums.

Activity

  1. winiciusallan commented on May 6, 2026

    @winiciusallan
    Contributor

    This looks like a valid bug indeed.

    The only validation that I've found is this

    https://github.com/openstack/trove/blob/master/trove/instance/models.py#L123

    which compares the passed volume size with the threshold configured by the operator via CONF.max_accepted_volume_size

    https://docs.openstack.org/trove/latest/reference/conf.html#DEFAULT.max_accepted_volume_size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions