]> git.proxmox.com Git - pve-manager.git/commit - PVE/Ceph/Tools.pm
ceph: add CephFS create and list API
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 23 Nov 2018 11:01:39 +0000 (12:01 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 23 Nov 2018 12:33:12 +0000 (13:33 +0100)
commit7e1a9d25b6440180f8d68b16d0d0b4e43b0d41f9
tree082e23029732936b8cd594e7845f9c0162e1bd15
parentb82649cc5200b9a0cecdca19a14fd04af8829ee4
ceph: add CephFS create and list API

Allow to create a new CephFS instance and allow to list them.

As deletion requires coordination between the active MDS and all
standby MDS next in line this needs a bit more work. One could mark
the MDS cluster down and stop the active, that should work but as
destroying is quite a sensible operation, in production not often
needed I deemed it better to document this only, and leaving API
endpoints for this to the future.

For index/list I slightly transform the result of an RADOS `fs ls`
monitor command, this would allow relative easy display of a CephFS
and it's backing metadata and data pools in a GUI.

While for now it's not enabled by default and marked as experimental,
this API is designed to host multiple CephFS instances - we may not
need this at all, but I did not want to limit us early. And anybody
liking to experiment can use it after the respective ceph.conf
settings.

When encountering errors try to rollback. As we verified at the
beginning that we did not reused pools, destroy the ones which we
created.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Co-authored-by: Alwin Antreich <a.antreich@proxmox.com>
PVE/API2/Ceph.pm
PVE/API2/Ceph/FS.pm [new file with mode: 0644]
PVE/API2/Ceph/Makefile
PVE/CLI/pveceph.pm
PVE/CephTools.pm