Skip to content

list accounts results in incorrect VPC limit being returned #11683

@kohrar

Description

@kohrar

problem

When listing an account's resource limits, the VPC limits are incorrect. For example, an account with a limit of 10 VPCs with one VPC created is displayed as '1 / 2' but with '9 available'.

Image

In CMK, we can see the same issue:

$ cmk list accounts id=xxx | grep -i vpc
vpctotal = 1
vpcavailable = 9
vpclimit = 2

The actual 'vpclimit' that I am expecting is 10 here.

versions

CloudStack Version: 4.20.1.0
OS: Rocky Linux 8.10

The steps to reproduce the bug

  1. Create an account with a VPC limit of 10
  2. Create a VPC in the account
  3. See the account VPC limit as '1 / 2', with '9 available'.

What to do about it?

Is there something I am missing that would explain this discrepancy?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions