Align sized cluster seeds and GET dumps with PVE wire shapes; restyle DATA panel.
- Scale small/large/big seeds (3×50 / 10×1000 / 20×2000) with proportional backups, snapshots, HA, replication, Ceph capacity, and OSD totals (10 / 100 / 500) plus matching node disks and crush/pg metadata - Enrich handler responses for apt, certificates, qemu/lxc status, storage, SDN, metrics export, and related cluster/node dumps - Flatten nested body_example fields into PARAMS and sync the request body via dotted paths (oVirt-style) - Restyle DATA controls as size cards with full-width Reset to minimal / Refresh stats; unload reloads the minimal cluster
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
"""Canonical Ceph cluster flag names (PVE /cluster/ceph/flags)."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
# Keep in sync with Proxmox `ceph_flags` API (majors 6-9).
|
||||
CEPH_FLAG_DESCRIPTIONS: dict[str, str] = {
|
||||
"nobackfill": "Pause backfill operations",
|
||||
"nodeep-scrub": "Disable deep scrubbing",
|
||||
"nodown": "Do not mark OSDs down",
|
||||
"noin": "Do not mark OSDs in",
|
||||
"noout": "Do not mark OSDs out",
|
||||
"norebalance": "Pause rebalance",
|
||||
"norecover": "Pause recovery",
|
||||
"noscrub": "Disable scrubbing",
|
||||
"notieragent": "Pause tiering agent",
|
||||
"noup": "Do not mark OSDs up",
|
||||
"pause": "Pause I/O",
|
||||
}
|
||||
|
||||
|
||||
def default_ceph_flags(*, enabled: frozenset[str] | None = None) -> dict[str, int]:
|
||||
"""Return the full flag map; unset flags are ``0`` (PVE GET → ``false``)."""
|
||||
|
||||
active = enabled or frozenset()
|
||||
return {name: (1 if name in active else 0) for name in CEPH_FLAG_DESCRIPTIONS}
|
||||
Reference in New Issue
Block a user