jeanvetorello opened a new issue, #11724:
URL: https://github.com/apache/cloudstack/issues/11724

   ### problem
   
   The snapshot should be successfully created on the Ceph primary and then 
backed up to the NFS secondary storage.
   
   Actual Behavior
   
   The snapshot was created on Ceph successfully (rbd snap create worked).
   
   The backup to the NFS secondary failed.
   
   The KVM agent logs show that libvirt could not mount the NFS storage pool:
   
   libvirt failed to mount storage pool 21c57ab7-9630-3817-b953-e46a7efcf2b7 at 
/mnt/21c57ab7-9630-3817-b953-e46a7efcf2b7
   
   
   Full stack trace excerpt:
   
   com.cloud.utils.exception.CloudRuntimeException: libvirt failed to mount 
storage pool 21c57ab7-9630-3817-b953-e46a7efcf2b7 at 
/mnt/21c57ab7-9630-3817-b953-e46a7efcf2b7
       at 
com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.checkNetfsStoragePoolMounted(LibvirtStorageAdaptor.java:314)
       at 
com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.createStoragePool(LibvirtStorageAdaptor.java:881)
       at 
com.cloud.hypervisor.kvm.storage.KVMStoragePoolManager.createStoragePool(KVMStoragePoolManager.java:390)
       ...
   
   Notes
   
   The Ceph snapshot creation worked fine (Successfully connected to Ceph 
cluster and Attempting to create RBD snapshot ... succeeded).
   
   The failure happens in the CopyCommand when CloudStack tries to back up the 
snapshot to NFS.
   
   The mountpoint -q check returns exit code 32, causing libvirt to fail 
mounting the NFS path.
   
   ### versions
   
   Environment
   
   CloudStack Management Server: 4.21
   
   CloudStack Agent (KVM): 4.21
   
   Hypervisor: KVM on Ubuntu 22.04.5 LTS
   
   Primary Storage: Ceph RBD (ceph version 19.2.3)
   
   Secondary Storage: NFSv4 on cephnfs
   
   ### The steps to reproduce the bug
   
   Steps to Reproduce
   
   Go to Volumes in the CloudStack UI.
   
   Select a ROOT volume (on Ceph primary).
   
   Click Take Snapshot
   
   <img width="439" height="718" alt="Image" 
src="https://github.com/user-attachments/assets/b0d434a6-4698-4fd0-b353-a244112a9dae";
 />
   <img width="1774" height="882" alt="Image" 
src="https://github.com/user-attachments/assets/4037df72-39f5-422b-98fb-130fc7c3c543";
 />
   <img width="807" height="866" alt="Image" 
src="https://github.com/user-attachments/assets/1ceed232-1dfd-4c6f-9e35-954be2986410";
 />
   
   
   ### What to do about it?
   
   Workaround Attempted
   
   I tested with the patch from [PR 
#11690](https://github.com/apache/cloudstack/pull/11690)
   , which disables the mountpoint check for NFS pools.
   
   With this patch applied, the snapshot creation on Ceph succeeds.
   
   However, the copy to NFS secondary still fails with the same libvirt mount 
error.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to