Skip to content

Allow copy of templates from secondary storages of other zone when adding a new secondary storage - #12296

Merged
harikrishna-patnala merged 18 commits into
apache:4.20from
shapeblue:improve_template_copy_btw_secondary_storages
Jan 28, 2026
Merged

Allow copy of templates from secondary storages of other zone when adding a new secondary storage#12296
harikrishna-patnala merged 18 commits into
apache:4.20from
shapeblue:improve_template_copy_btw_secondary_storages

Update unit tests

dc05112
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Jan 28, 2026 in 0s

16.25% (+0.00%) compared to 70d4c9d

View this Pull Request on Codecov

16.25% (+0.00%) compared to 70d4c9d

Details

Codecov Report

❌ Patch coverage is 43.60902% with 75 lines in your changes missing coverage. Please review.
✅ Project coverage is 16.25%. Comparing base (70d4c9d) to head (dc05112).
⚠️ Report is 1 commits behind head on 4.20.

Files with missing lines Patch % Lines
.../cloudstack/storage/image/TemplateServiceImpl.java 60.63% 33 Missing and 4 partials ⚠️
...api/command/admin/host/AddSecondaryStorageCmd.java 0.00% 14 Missing ⚠️
...tack/engine/orchestration/StorageOrchestrator.java 0.00% 10 Missing ⚠️
.../java/com/cloud/storage/ImageStoreDetailsUtil.java 0.00% 8 Missing ⚠️
...n/java/com/cloud/template/TemplateManagerImpl.java 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##               4.20   #12296    +/-   ##
==========================================
  Coverage     16.24%   16.25%            
- Complexity    13396    13405     +9     
==========================================
  Files          5658     5658            
  Lines        499280   499408   +128     
  Branches      60601    60619    +18     
==========================================
+ Hits          81101    81161    +60     
- Misses       409136   409199    +63     
- Partials       9043     9048     +5     

☔ View full report in Codecov by Sentry.
📢 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.