Skip to content

ConfigureStorageAccessCmd: Allow storage access configuration on empty clusters/pods/zones - #13551

Merged
nvazquez merged 1 commit into
apache:4.22from
shapeblue:422-cfg-storage-access-empty-resources
Jul 14, 2026
Merged

ConfigureStorageAccessCmd: Allow storage access configuration on empty clusters/pods/zones#13551
nvazquez merged 1 commit into
apache:4.22from
shapeblue:422-cfg-storage-access-empty-resources

Conversation

@nvazquez

Copy link
Copy Markdown
Contributor

Description

This PR has the fix for the below issue:

cmk configure storageaccess operation throws an exception when zone/cluster/pod referenced in the operation is empty.

Exception: com.cloud.utils.exception.CloudRuntimeException: All hosts in the cluster are using the storage access groups

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)
  • Build/CI
  • Test (unit or integration test code)

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?

How did you try to break this feature and the system with this change?

apache#578)
* ConfigureStorageAccessCmd: Allow storage access configuration on empty clusters/pods/zones
* update as per comments
Co-authored-by: mprokopchuk <mprokopchuk@gmail.com>
* update as per review comments
Co-authored-by: mprokopchuk <mprokopchuk@gmail.com>
* update as per comments
Co-authored-by: mprokopchuk <mprokopchuk@gmail.com>
---------
Co-authored-by: Sachin R Doddaguni <s_rudrappadoddagu@apple.com>
Co-authored-by: mprokopchuk <mprokopchuk@gmail.com>
(cherry picked from commit 32736b9e262522912cf8755acabfb7400006252f)
@nvazquez

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@nvazquez a [SL] 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.

@codecov

codecovBot commented Jul 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 17.67%. Comparing base (4262c02) to head (aca4088).

Additional details and impacted files
@@ Coverage Diff @@## 4.22 #13551 +/- ##
============================================
- Coverage 17.67% 17.67% -0.01% - Complexity 15796 15803 +7 
============================================
Files 5923 5923 Lines 533347 533347 Branches 65248 65254 +6 ============================================
- Hits 94253 94251 -2 - Misses 428435 428436 +1 - Partials 10659 10660 +1 
FlagCoverage Δ
uitests3.69% <ø> (ø)
unittests18.74% <100.00%> (-0.01%)⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@DaanHooglandDaanHoogland 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

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

code lgtm

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 18479

@nvazquez

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@nvazquez a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

@sureshanapartisureshanaparti 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

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-16492)
Environment: kvm-ol8 (x2), zone: Advanced Networking with Mgmt server ol8
Total time taken: 53617 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr13551-t16492-kvm-ol8.zip
Smoke tests completed. 149 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File

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

LGTM based on manual testing, tested with zero hosts zone, pod and cluster before and after the patch.

@nvazquez
nvazquez merged commit f4c0c31 into apache:4.22Jul 14, 2026
26 checks passed
@nvazquez
nvazquez deleted the 422-cfg-storage-access-empty-resources branch July 14, 2026 23:48
winterhazel added a commit that referenced this pull request Jul 22, 2026
* 4.22:
UI: fix blank page when list Other OSes in VNF appliance deployment (#13620)
ConfigureStorageAccessCmd: Allow storage access configuration on empt… (#578) (#13551)
Sign up for freeto 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.

7 participants

@nvazquez@blueorangutan@DaanHoogland@Pearl1594@sureshanaparti@vladimirpetrov@sachindoddaguni