cloudstack
cloudstack copied to clipboard
storage: fix private templates are not copied to new image store
Description
when add a new image store, some templates/ISOs are copied, but some are not.
2024-06-10T12:24:50,711 INFO [o.a.c.s.i.TemplateServiceImpl] (qtp776484396-20:[ctx-eb090c22, ctx-5fa5579c]) (logid:7a783000) Template Sync did not find 211-2-d536fb03-5f89-3e77-8dea-323315bcbfab on image store 3, may request download based on available hypervisor types
...
2024-06-10T12:24:51,043 INFO [o.a.c.s.i.TemplateServiceImpl] (qtp776484396-20:[ctx-eb090c22, ctx-5fa5579c]) (logid:7a783000) Skip sync downloading private template 211-2-d536fb03-5f89-3e77-8dea-323315bcbfab to a new image store
This PR fixes the issue that some template/iso are not copied to new image store
Types of changes
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] New feature (non-breaking change which adds functionality)
- [x] 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
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?
this is related to #7485 needs some discussion . cc @shwstppr
@blueorangutan package
@weizhouapache 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 Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 15.67%. Comparing base (
3f2761e) to head (27501a0). Report is 190 commits behind head on 4.19.
Additional details and impacted files
@@ Coverage Diff @@
## 4.19 #9206 +/- ##
============================================
+ Coverage 14.96% 15.67% +0.70%
- Complexity 10993 10994 +1
============================================
Files 5373 5010 -363
Lines 469248 439943 -29305
Branches 58782 53180 -5602
============================================
- Hits 70210 68945 -1265
+ Misses 391266 363368 -27898
+ Partials 7772 7630 -142
| Flag | Coverage Δ | |
|---|---|---|
| uitests | ? |
|
| unittests | 15.67% <ø> (-0.01%) |
:arrow_down: |
Flags with carried forward coverage won't be shown. Click here to find out more.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 9848
@blueorangutan test rocky8 kvm-rocky8
@weizhouapache a [SL] Trillian-Jenkins test job (rocky8 mgmt + kvm-rocky8) has been kicked to run smoke tests
[SF] Trillian test result (tid-10406) Environment: kvm-rocky8 (x2), Advanced Networking with Mgmt server r8 Total time taken: 46256 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9206-t10406-kvm-rocky8.zip Smoke tests completed. 129 look OK, 2 have errors, 0 did not run Only failed and skipped tests results shown below:
| Test | Result | Time (s) | Test File |
|---|---|---|---|
| test_10_reboot_cpvm_forced | Error |
6.34 | test_ssvm.py |
| test_04_rvpc_network_garbage_collector_nics | Failure |
374.89 | test_vpc_redundant.py |