New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add lock mechanism considering template id, pool id, host id in PowerFlex Storage #8233
Add lock mechanism considering template id, pool id, host id in PowerFlex Storage #8233
Conversation
@blueorangutan package |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clgtm
engine/storage/volume/src/main/java/org/apache/cloudstack/storage/volume/VolumeServiceImpl.java
Outdated
Show resolved
Hide resolved
@harikrishna-patnala can you look at the locking used? |
0d4d51a
to
e2fc4ff
Compare
@blueorangutan package |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## 4.18 #8233 +/- ##
============================================
- Coverage 13.10% 13.10% -0.01%
Complexity 9122 9122
============================================
Files 2720 2720
Lines 257638 257653 +15
Branches 40168 40171 +3
============================================
Hits 33753 33753
- Misses 219619 219634 +15
Partials 4266 4266 ☔ View full report in Codecov by Sentry. |
@blueorangutan package |
@harikrishna-patnala 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. |
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7800 |
@blueorangutan test |
@rohityadavcloud a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
[SF] Trillian test result (tid-8374)
|
@blueorangutan package |
@harikrishna-patnala 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. |
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7923 |
@blueorangutan test |
1 similar comment
@blueorangutan test |
@rohityadavcloud a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, lets wait for latest test and I guess we could merge this
[SF] Trillian test result (tid-8480)
|
@blueorangutan test |
@rohityadavcloud a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
I don't think re-running the tests without rebuild will add value here. @JoaoJandre are your conserns met? |
@DaanHoogland [SL] unsupported parameters provided. Supported mgmt server os are: |
@DaanHoogland , just to answer for question from my side, @JoaoJandre mentioned about missing lock() method call, which I've added already. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CLGTM, didn't test it.
[SF] Trillian test result (tid-8496)
|
Last two smoketests rounds had different intermittent failures, LGTM, merging this. |
…Flex Storage (apache#8233) Observed a failure to start new virtual machine with PowerFlex storage. Traced it to concurrent VM starts using the same template and the same host to copy. Second mapping attempt failed. While creating the volume clone from the seeded template in primary storage, adding a lock with the string containing IDs of template, storage pool and destination host avoids the situation of concurrent mapping attempts with the same host.
Description
Observed a failure to start new virtual machine with PowerFlex storage. Traced it to concurrent VM starts using the same template and the same host to copy. Second mapping attempt failed.
While creating the volume clone from the seeded template in primary storage, adding a lock with the string containing IDs of template, storage pool and destination host avoids the situation of concurrent mapping attempts with the same host.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity