KVM: skip mountpoint check for RBD storage pools #11690
Open
+21
−6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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)