pve-manager/PVE/API2/Ceph
Fiona Ebner 16f3482b34 api: ceph: mon create: remove superfluous verification call
The pve_verify_cidr{,v4,v6} functions were originally intended for
the /etc/network/interfaces API endpoints and thus are a bit
restrictive. For example, as reported in the community forum[0],
pve_verify_cidr() does not consider '0::/0' and '0::/1' to be valid.

The error message in this scenario being
> value does not look like a valid CIDR network
is also confusing, as the first thought of users will be that it comes
from the passed-in monitor address.

The public networks are not written here and read from the Ceph config
and via a RADOS mon command, so no need to try and verify them. If
something really would go wrong during parsing, the
get_local_ip_from_cidr() call would complain afterwards.

[0]: https://forum.proxmox.com/threads/125226/

Suggested-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
2023-04-12 13:26:49 +02:00
..
Cfg.pm api: ceph cfg: drop double definition of permission property for index 2023-03-20 15:34:46 +01:00
FS.pm api: cephfs: add 'fs-name' for cephfs storage 2021-11-11 17:52:08 +01:00
Makefile api: ceph: add ceph/cfg path, deprecate ceph/config and ceph/configdb 2023-03-20 15:31:04 +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 api: ceph: mon create: remove superfluous verification call 2023-04-12 13:26:49 +02:00
OSD.pm api ceph osd: add OSD index, metadata and lv-info 2023-03-15 18:24:27 +01:00
Pool.pm api: ceph: deprecate pools in favor of pool 2023-03-20 15:31:04 +01:00
Pools.pm api: ceph: deprecate pools in favor of pool 2023-03-20 15:31:04 +01:00