[pve-devel] [PATCH v2 storage 0/3] ceph: add namespace support

Aaron Lauterer a.lauterer at proxmox.com
Wed Apr 7 16:22:15 CEST 2021


This series introduces namespace support for Ceph RBD on the PVE side.

The first patch reworks the RBD storage plugin to use one central sub to
create the RBD paths for <pool>/<image>. With this patch applied, adding
support for namespaces involves very little changes to the RBD plugin.

v1 -> v2:
* new patch (centralize rbd path concatenation) has been
  introduced
* namespace checks now avoid matching the contents of the
  $scfg->{namespace} but check if it is defined. This is done to avoid
  evaluating a namespace called '0' for example, to evaluate to false.
* integration test has been reworked according to feedback

Aaron Lauterer (3):
  rbd: centralize rbd path concatenation
  rbd: fix #3286 add namespace support
  rbd: add integration test for namespace handling

 PVE/Storage/RBDPlugin.pm |  63 +++++--
 test/rbd_namespace.pl    | 370 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 415 insertions(+), 18 deletions(-)
 create mode 100755 test/rbd_namespace.pl

-- 
2.20.1





More information about the pve-devel mailing list