This is a deficiency in the NFS driver w.r.t. encrypted volumes, to fix it we should implement a driver copy_image_to_encrypted_volume() method to handle this path. Without it, NFS is currently falling into the base driver generic copy_image_to_encrypted_volume() method which does not work for how NFS managed encrypted volumes.
This method for the NFS driver should mirror how the RBD driver's copy_image_to_encrypted_volume works:
- download the image to a temp file
- call something similar to the RBD driver's _encrypt_image() method which calls image_utils.convert_image() etc to encrypt the image and copy it into the volume file.
This is a deficiency in the NFS driver w.r.t. encrypted volumes, to fix it we should implement a driver copy_image_ to_encrypted_ volume( ) method to handle this path. Without it, NFS is currently falling into the base driver generic copy_image_ to_encrypted_ volume( ) method which does not work for how NFS managed encrypted volumes.
This method for the NFS driver should mirror how the RBD driver's copy_image_ to_encrypted_ volume works: convert_ image() etc to encrypt the image and copy it into the volume file.
- download the image to a temp file
- call something similar to the RBD driver's _encrypt_image() method which calls image_utils.