pve-manager/PVE/API2/Ceph
Dominik Csapak 7e98f79e40 ceph: make all service name regexes the same
instead of having multiple regexes in various places for the name,
define a 'SERVICE_REGEX' in PVE::Ceph::Services, and use that
everywhere in the api where we need it

additionally limit new sevices to 200 characters, since
systemd units have a limit of 256 characters[0] (including suffix), and
200 seems to be enough.

users can now create ceph services on machines with hostnames
longer than 32 characters

0: https://www.freedesktop.org/software/systemd/man/systemd.unit.html

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-03-04 15:38:09 +01:00
..
FS.pm ceph tools: factor out frequent keyring and config init check 2019-07-23 07:48:45 +02:00
Makefile ceph: move Monitor API calls to API2/Ceph/MON.pm 2018-12-20 09:44:01 +01:00
MDS.pm ceph: make all service name regexes the same 2020-03-04 15:38:09 +01:00
MGR.pm ceph: make all service name regexes the same 2020-03-04 15:38:09 +01:00
MON.pm ceph: make all service name regexes the same 2020-03-04 15:38:09 +01:00
OSD.pm ceph: do not check ips if no network is configured 2020-03-04 15:38:09 +01:00