apache / apache/cloudstack

Account limit(max.secondary storage) is not honored when upload template/iso/volume from local

Open
#7,839 2 comments 0 reactions 0 assignees View on GitHub
component:management-server Severity:Minor status:needs-investigation
Dominant language
Java
Stars
3.1k
Forks
1.4k
Avg merge
6d 19h
Merged PRs (30d)
32

Description

ISSUE TYPE

* Bug report

COMPONENT NAME

Component: Management server

CLOUDSTACK VERSION

Cloudstack 4.18

SUMMARY

The account limit(max.secondary storage) is not honored.

This issue was observed during the testing of PR #7441

Steps to reproduce the issue

1. Create a user role account

2. Set the Max. secondary storage (GiB) to 2 gb at the account level
max secondarystorage

3. Login to the user role account

4. Register a iso of size (1.8 gb) from a remote webserver

5. Upload a iso of size (1.8 gb) from Local Desktop

6. The upload of iso is successful even when the account limit is reached

7. The account limit after the upload is

accountlimit

Expected Results

The upload of iso should fail as the account limit(max.secondarystorage) was reached

Actual Results

The upload of iso is not failing even if the account limit((max.secondarystorage) was reached

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the CloudStack 4.18 steps with a 2 GiB account limit, registering a 1.8 GiB ISO remotely, then uploading another from the local desktop. Compare the local upload behavior for templates, ISOs, and volumes with the expected quota rejection; done means the upload fails once the account's max secondary storage is reached.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, cloud, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.