Fix: Volumes on lost local storage cannot be removed#7594
Fix: Volumes on lost local storage cannot be removed#7594DaanHoogland merged 5 commits intoapache:4.18from
Conversation
|
@blueorangutan package |
|
@nvazquez a [LL] 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 [LL]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6086 |
|
@blueorangutan test |
|
@nvazquez a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
Codecov Report
@@ Coverage Diff @@
## 4.18 #7594 +/- ##
============================================
+ Coverage 12.98% 12.99% +0.01%
- Complexity 8981 9001 +20
============================================
Files 2716 2716
Lines 256307 256391 +84
Branches 39967 39988 +21
============================================
+ Hits 33280 33317 +37
- Misses 218864 218904 +40
- Partials 4163 4170 +7
... and 6 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
DaanHoogland
left a comment
There was a problem hiding this comment.
mostly sensible but I found one strangity
server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java
Outdated
Show resolved
Hide resolved
|
[SF] Trillian test result (tid-6683)
|
|
@blueorangutan package |
|
@nvazquez a [LL] 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 [LL]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6105 |
|
@blueorangutan test |
|
@nvazquez a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-6703)
|
| final Long poolId = pool.getPoolId(); | ||
| final StoragePoolVO storagePool = _storagePoolDao.findById(poolId); | ||
| if (storagePool.isLocal() && isForceDeleteStorage) { | ||
| destroyLocalStoragePoolVolumes(poolId); |
| InternalIdentity pool = role == DataStoreRole.Primary ? | ||
| _storagePoolDao.findById(volume.getPoolId()) : | ||
| imageStoreDao.findById(volume.getPoolId()); |
kiranchavala
left a comment
There was a problem hiding this comment.
Hi @nvazquez
Observing the following issue
- Create a disk offering with storage type as local
- Create a compute offering with storage type as local
- Launch a vm with data disk , wait till its in running state
- Disable the host
- Force delete the host
- Found the vm gets into destroyed state and is not expunged
- The data disk is still in ready state
Ideally the vm and data disk on the local storage should also get remvoed automatically if the local storage is removed
Currently the end user has to manually expunge the vm and the destory data disk
|
Thanks @kiranchavala, have pushed a fix for that scenario |
|
@blueorangutan package |
|
@nvazquez 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 6276 |
kiranchavala
left a comment
There was a problem hiding this comment.
LGTM, Tested the data disk fix and it's working fine
|
@blueorangutan test |
|
@kiranchavala a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-6811)
|
Description
This PR fixes the following:
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?