-
Notifications
You must be signed in to change notification settings - Fork 1.2k
KVM: skip mountpoint check for RBD storage pools #11690
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
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. |
DaanHoogland
left a comment
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
|
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)
|
| } | ||
| } | ||
|
|
||
| private void checkNetfsStoragePoolMounted(String uuid) { |
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.
this is called only once by
Lines 879 to 881 in 4884f52
| if (type == StoragePoolType.NetworkFilesystem) { | |
| checkNetfsStoragePoolMounted(name); | |
| } |
this PR seems not needed
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.
@jeanvetorello
have you faced any issue in your testing ? any logs ?
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
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)