Skip to content

Fix global setting reference for max secondary storage - #6496

Merged
yadvr merged 5 commits into
4.17from
FixMaxSecondaryStorageForAccountAndProject
Jun 30, 2022
Merged

yadvr merged 5 commits into
4.17from
FixMaxSecondaryStorageForAccountAndProject

Conversation

@harikrishna-patnala

@harikrishna-patnala harikrishna-patnala commented Jun 24, 2022

Copy link
Copy Markdown
Member

This PR fixes issue #6411

There are two global settings max.account.secondary.storage and max.project.secondary.storage to specify maximum secondary storage space (in GiB) that can be used for an account and project respectively.

But during upload template from project is not considering max.project.secondary.storage but uses max.account.secondary.storage.

We have fixed this here to use max.project.secondary.storage in case of project.

Description

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

  1. Uploaded a template from both account and project and observed using appropriate global settings.

@sureshanaparti

Copy link
Copy Markdown
Contributor

I think, it's better to merge this in 4.16 branch as well (if so, change target to 4.16 and forward merge to 4.17 / main, your thoughts pls @nvazquez @harikrishna-patnala).

@DaanHoogland

Copy link
Copy Markdown
Contributor

@harikrishna-patnala is it a big issue to change these to ConfigKeys? the Config calles are deprected and we do need to remove this old code sometime (sooner is better imho)

@acs-robot

Copy link
Copy Markdown

Found UI changes, kicking a new UI QA build
@blueorangutan ui

@blueorangutan

Copy link
Copy Markdown

@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@harikrishna-patnala

Copy link
Copy Markdown
Member Author

@harikrishna-patnala is it a big issue to change these to ConfigKeys? the Config calles are deprected and we do need to remove this old code sometime (sooner is better imho)

Replaced with configkeys, please review @DaanHoogland

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

clgtm

Comment thread api/src/main/java/com/cloud/user/ResourceLimitService.java Outdated
@blueorangutan

Copy link
Copy Markdown

UI build: ✔️
Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/6496 (SL-JID-1864)

@acs-robot

Copy link
Copy Markdown

Found UI changes, kicking a new UI QA build
@blueorangutan ui

@blueorangutan

Copy link
Copy Markdown

@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@harikrishna-patnala

Copy link
Copy Markdown
Member Author

I think, it's better to merge this in 4.16 branch as well (if so, change target to 4.16 and forward merge to 4.17 / main, your thoughts pls @nvazquez @harikrishna-patnala).
It's not a critical or regularly hit issue so I think it's not that necessary to go into 4.16, we can treat this as a regular bug.

@blueorangutan

Copy link
Copy Markdown

UI build: ✔️
Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/6496 (SL-JID-1865)

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

nitbots

Comment thread api/src/main/java/com/cloud/user/ResourceLimitService.java Outdated
Comment thread api/src/main/java/com/cloud/user/ResourceLimitService.java Outdated
@acs-robot

Copy link
Copy Markdown

Found UI changes, kicking a new UI QA build
@blueorangutan ui

@blueorangutan

Copy link
Copy Markdown

@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

UI build: ✔️
Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/6496 (SL-JID-1869)

@sonarqubecloud

Copy link
Copy Markdown

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@sureshanaparti

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@sureshanaparti a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✖️ el7 ✔️ el8 ✖️ debian ✔️ suse15. SL-JID 3672

@sureshanaparti

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@sureshanaparti a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 3674

@sureshanaparti

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@sureshanaparti a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-4401)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 43395 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr6496-t4401-kvm-centos7.zip
Smoke tests completed. 98 look OK, 0 have errors
Only failed tests results shown below:

Test Result Time (s) Test File

@yadvr yadvr added this to the 4.17.1.0 milestone Jun 30, 2022
@yadvr
yadvr merged commit 089e964 into 4.17 Jun 30, 2022
@DaanHoogland
DaanHoogland deleted the FixMaxSecondaryStorageForAccountAndProject branch March 14, 2023 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants