apache / cloudstack

Apache CloudStack is an opensource Infrastructure as a Service (IaaS) cloud computing platform
https://cloudstack.apache.org/
Apache License 2.0
2.11k stars 1.11k forks source link

Revert "storage: fix private templates are not copied to new image store (#9206)" #9839

Closed weizhouapache closed 1 week ago

weizhouapache commented 1 month ago

Description

This reverts commit e06f80e899127abe45c10ff2d38420a770ceb076.

I have discussed with @NuxRo @rajujith @alexandremattioli , it seems it is expected that private template has only 1 copy on the secondary storages.

we all agreed that it should be improved as the template with 1 copy becomes unavailable if the secondary storage is removed. ideally there is a global setting to specify the minimum number of copies on secondary storages.

Types of changes

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

Bug Severity

Screenshots (if appropriate):

How Has This Been Tested?

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

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 15.08%. Comparing base (175eed2) to head (0319275). Report is 24 commits behind head on 4.19.

Files with missing lines Patch % Lines
.../cloudstack/storage/image/TemplateServiceImpl.java 0.00% 3 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## 4.19 #9839 +/- ## ============================================ - Coverage 15.08% 15.08% -0.01% + Complexity 11203 11202 -1 ============================================ Files 5404 5404 Lines 473423 473426 +3 Branches 59987 60080 +93 ============================================ - Hits 71429 71426 -3 - Misses 394044 394050 +6 Partials 7950 7950 ``` | [Flag](https://app.codecov.io/gh/apache/cloudstack/pull/9839/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | | |---|---|---| | [uitests](https://app.codecov.io/gh/apache/cloudstack/pull/9839/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `4.30% <ø> (ø)` | | | [unittests](https://app.codecov.io/gh/apache/cloudstack/pull/9839/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `15.80% <0.00%> (-0.01%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

rajujith commented 1 month ago

@blueorangutan package

blueorangutan commented 1 month ago

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

blueorangutan commented 1 month ago

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

rohityadavcloud commented 2 weeks ago

@blueorangutan test

blueorangutan commented 2 weeks ago

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

blueorangutan commented 2 weeks ago

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

Test Result Time (s) Test File