KVM: skip mountpoint check for RBD storage pools#11690
KVM: skip mountpoint check for RBD storage pools#11690jeanvetorello wants to merge 1 commit intoapache:mainfrom
Conversation
…snapshot errors)"
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #11690 +/- ##
============================================
+ Coverage 17.36% 17.39% +0.03%
- Complexity 15234 15283 +49
============================================
Files 5886 5889 +3
Lines 525680 526194 +514
Branches 64159 64243 +84
============================================
+ Hits 91261 91544 +283
- Misses 424120 424304 +184
- Partials 10299 10346 +47
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@blueorangutan package |
|
@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. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 15124 |
|
@blueorangutan test |
|
@harikrishna-patnala a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-14419)
|
| @@ -306,12 +306,27 @@ public void storagePoolRefresh(StoragePool pool) { | |||
| } | |||
|
|
|||
| private void checkNetfsStoragePoolMounted(String uuid) { | |||
There was a problem hiding this comment.
this is called only once by
this PR seems not needed
There was a problem hiding this comment.
@jeanvetorello
have you faced any issue in your testing ? any logs ?
There was a problem hiding this comment.
thanks for the help ,
I’m going to open an issue describing the problem in detail, along with the logs, to see if you can help resolve it.
There was a problem hiding this comment.
thanks @jeanvetorello
did you face the issue #11697 when you test with this patch or not ?
|
Thanks for the reviews. |
Description
When using Ceph RBD as primary storage on KVM, the agent currently tries to run:
mountpoint -q /mnt/
This fails because RBD pools are not mounted like NFS or other network filesystems.
As a result, snapshot and template operations fail with errors such as:
libvirt failed to mount storage pool at /mnt/
This patch updates LibvirtStorageAdaptor to skip the mountpoint check when the storage pool type is RBD.
It prevents false errors while keeping the logic unchanged for NFS/NetFS pools.
Types of changes
Bug fix (non-breaking change which fixes an issue)
Bug Severity
Major (affects snapshot/template functionality on Ceph RBD)
How Has This Been Tested?
CloudStack 4.21.0.0 + Ceph RBD backend (client.cloudstack user)
Created multiple VM snapshots → successfully registered in Ceph
Created templates from snapshots → completed without mountpoint errors
Verified no regressions on other pool types (NFS untouched)
Checked agent.log: no further mountpoint failures for RBD pools
Related issues
N/A (first-time fix)