]> git.proxmox.com Git - pve-manager.git/commit
ceph: add MDS create/delete/list API
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 23 Nov 2018 11:01:38 +0000 (12:01 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 23 Nov 2018 12:33:12 +0000 (13:33 +0100)
commitb82649cc5200b9a0cecdca19a14fd04af8829ee4
treeaeb348a8bc3238a623be04b807d488eaacb793a2
parentf96d7012929284ab935524ad064846b0198366a6
ceph: add MDS create/delete/list API

Allow to create, list and destroy and Ceph Metadata Server (MDS) over
the API and the CLI `pveceph` tool.

Besides setting up the local systemd service template and the MDS
data directory we also add a reference to the MDS in the ceph.conf
We note the backing host (node) from the respective MDS and set up a
'mds standby for name' = 'pve' so that the PVE created ones are a
single group. If we decide to add integration for rank/path specific
MDS (possible useful for CephFS with quite a bit of load) then this
may help as a starting point.

On create, check early if a reference already exists in ceph.conf and
abort in that case. If we only see existing data directories later
on we abort but do not remove them, they could well be from an older
manual create - where it's possible dangerous to just remove it. Let
the user handle it themself in that case.

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/MDS.pm [new file with mode: 0644]
PVE/API2/Ceph/Makefile [new file with mode: 0644]
PVE/API2/Makefile
PVE/CLI/pveceph.pm
PVE/CephTools.pm