kvm: fix direct download template size#8093
Conversation
Fixes apache#8037 Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
|
@blueorangutan package |
|
@shwstppr a [SF] 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. |
| try { | ||
| URL url = new URL(urlStr); | ||
| return getVirtualSizeFromInputStream(url.openStream()); | ||
| boolean isCompressed = !urlStr.endsWith("qcow2"); |
There was a problem hiding this comment.
Should we instaed check perhaps for compression extension such as tar.gz, bz2 etc? (what is somebody uploads an .img file which is a qcow2?)
There was a problem hiding this comment.
@rohityadavcloud made the change to use UriUtils.COMMPRESSION_FORMATS.
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7353 |
|
@blueorangutan test rocky8 kvm-rocky8 |
|
@DaanHoogland a [SF] Trillian-Jenkins test job (rocky8 mgmt + kvm-rocky8) has been kicked to run smoke tests |
core/src/main/java/org/apache/cloudstack/direct/download/HttpsDirectTemplateDownloader.java
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## 4.18 #8093 +/- ##
=========================================
Coverage 13.06% 13.06%
Complexity 9109 9109
=========================================
Files 2720 2720
Lines 257526 257526
Branches 40150 40150
=========================================
Hits 33655 33655
Misses 219644 219644
Partials 4227 4227 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
[SF] Trillian test result (tid-7969)
|
|
@blueorangutan package |
|
@shwstppr a [SF] 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. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7361 |
|
@blueorangutan test |
|
@shwstppr a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-7973)
|
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> (cherry picked from commit ba24a18) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Description
Fixes #8037
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?