apache / cloudstack

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

[linstor] Fix revertSnapshot #9271

Closed wornet-mwo closed 1 week ago

wornet-mwo commented 1 week ago

Description

revertSnapshot uses currently the UUID instead of the path, which defines the resource group on linstor and is set matching to the path when creating a snapshot. This PR just replaces the UUID by path of a snapshot.

This PR is done against 4.19 as 4.18 has been refactored in between.

Types of changes

Feature/Enhancement Scale or Bug Severity

Bug Severity

How Has This Been Tested?

boring-cyborg[bot] commented 1 week ago

Congratulations on your first Pull Request and welcome to the Apache CloudStack community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md) Here are some useful points:

rp- commented 1 week ago

clgtm Tested with Linstor only storage.

Thanks for finding and fixing this.

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 4.28%. Comparing base (81269ad) to head (cbcdb78). Report is 3 commits behind head on 4.19.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## 4.19 #9271 +/- ## ============================================ - Coverage 14.95% 4.28% -10.67% ============================================ Files 5382 363 -5019 Lines 470080 29393 -440687 Branches 58506 5139 -53367 ============================================ - Hits 70293 1260 -69033 + Misses 392001 27990 -364011 + Partials 7786 143 -7643 ``` | [Flag](https://app.codecov.io/gh/apache/cloudstack/pull/9271/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/9271/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `4.28% <ø> (ø)` | | | [unittests](https://app.codecov.io/gh/apache/cloudstack/pull/9271/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | | 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.

DaanHoogland commented 1 week ago

@blueorangutan package

blueorangutan commented 1 week ago

@DaanHoogland 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 week ago

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

boring-cyborg[bot] commented 1 week ago

Awesome work, congrats on your first merged pull request!