]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
api: ceph: add applications of each pool to the lspools endpoint
authorStefan Sterz <s.sterz@proxmox.com>
Tue, 25 Oct 2022 08:10:45 +0000 (10:10 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 16 Nov 2022 19:24:12 +0000 (20:24 +0100)
since ceph luminous (ceph 12) pools need to be associated with at
least one applicaton. expose this information here too so that clients
of this endpoint can use it.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
Tested-By:  Aaron Lauterer <a.lauterer@proxmox.com>
PVE/API2/Ceph/Pools.pm

index 6c05250e0926cdcb90a894ff7eef70fdaed3f39c..fce56787c4c94ed873069977676e47eb77ef88ec 100644 (file)
@@ -125,6 +125,11 @@ __PACKAGE__->register_method ({
                    title => 'Autoscale Status',
                    optional => 1,
                },
+               application_metadata => {
+                   type => 'object',
+                   title => 'Associated Applications',
+                   optional => 1,
+               },
            },
        },
        links => [ { rel => 'child', href => "{pool_name}" } ],
@@ -162,6 +167,7 @@ __PACKAGE__->register_method ({
            'pg_num',
            'crush_rule',
            'pg_autoscale_mode',
+           'application_metadata',
        ];
 
        # pg_autoscaler module is not enabled in Nautilus