[ptg][cinder][nova] RemoteFS/NFS volume encryption cross-project session summary
Hello everyone, below is a summary of the Cinder/Nova cross-project PTG session about the issues with volume encryption in the RemoteFS/NFS backend driver family that was held on October 13th. You can find the full agenda notes at: https://etherpad.opendev.org/p/nova-2027.1-ptg#L363 This session was primarily about discussing the issues with the volume encryption implementation in Cinder for RemoteFS/NFS backends as per https://bugs.launchpad.net/cinder/+bug/2164526 and its general impact on the interrelation with attachments in Nova [1] as well as the upcoming integration of image encryption. [1] https://lists.openstack.org/archives/list/openstack-discuss@lists.openstack.... Cinder ------ Cinder decides to keep qcow2 as the default backing format choice in the whole RemoteFS/NFS driver tree, even for encryption. This means that qcow2's native LUKS feature will be used, resulting in LUKS-in-qcow2 backing files as opposed to raw LUKS (like in LVM or Ceph/rbd drivers). Due to the reliance on snapshot- related features, the alternative of moving to raw LUKS was considered impractical for the RemoteFS/NFS driver family and vetoed as a result. Nova ---- Nova needs the ability to identify the new LUKS-in-qcow2 format that it might encounter in such volumes. It then has to skip os-brick handling (and the reformatting to raw LUKS that is currently happening) for this specific format. Instead, the volume is to be attached via QEMU-native functionality to an instance, handling LUKS-in-qcow2 without further conversion. This will restrict the ability to attach encrypted volumes from the RemoteFS/ NFS driver tree to Libvirt/QEMU backends in Nova. According to Cinder, there is already a dependency on this Nova backend for all RemoteFS/NFS-based drivers due to snapshot functionality implementation. As such, this limitation is deemed acceptable as it does not introduce a genuine regression. Implementation Phases --------------------- A two-phase approach was suggested: Phase 1: - Remove support for front-end encryption in Cinder for the whole RemoteFS/NFS driver family - Finish implementing the image encryption standardization in Cinder using only the remaining backends for now Phase 2: - Implement fixes and adjustments to make the LUKS-in-qcow2 encrypted volume backing format work across Cinder, Nova and Glance properly and reintroduce (front-end) encryption support for the RemoteFS/NFS driver family in Cinder - Adopt the image encryption extensions to the adjusted workflows in the RemoteFS/NFS driver family in Cinder and enable the use of encrypted images for those backends According to Cinder, the front-end encryption in the NFS base driver has been broken for some time now and even during the recent discussions about this issue no vendors being part of that driver tree stepped up and got in touch. As such, the removal of the feature in phase 1 is deemed acceptable as there are no indications of the feature of front-end encryption being widely used with those drivers currently. That's it for the summary of that session. Thanks to all who joined and participated! Kind regards, Markus -- Markus Hentsch DevOps Engineer Cloud&Heat Technologies GmbH Königsbrücker Straße 96 | 01099 Dresden +49 351 479 367 00 markus.hentsch@cloudandheat.com | www.cloudandheat.com Green, Open, Efficient. Ihr Cloud-Service- und Cloud-Technologie-Provider aus Dresden. https://www.cloudandheat.com/ Commercial Register: District Court Dresden Register Number: HRB 30549 VAT ID No.: DE281093504 Managing Director: Nicolas Röhrs Authorized signatory: Dr. Marius Feldmann
participants (1)
-
Markus Hentsch