Skip to content

Race condition in resource count while associating IP address to a network #9464

@vishesh92

Description

@vishesh92
ISSUE TYPE
  • Bug Report
COMPONENT NAME
Resource Limits Manager for public_ip
CLOUDSTACK VERSION

CONFIGURATION
OS / ENVIRONMENT
SUMMARY

Due to certain race conditions between checking and incrementing of resource counts, the check can be bypassed. This leads to cases where account's allocated resources exceeds the accounts limit.

STEPS TO REPRODUCE
  1. Create an account with public ip limit to 2
  2. Create a network and deploy a VM (This will increase the public_ip count by 1 for the account).
  3. Allocate different IPs to the same network in parallel (around 4-5 requests).

This sometimes leads to allocated resources exceeding the account's limit.


EXPECTED RESULTS
Count of allocated resources  should not exceed the account's limit.

ACTUAL RESULTS

Count of allocated resources exceeded the account's limit.


Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions