[pve-devel] [PATCH manager 1/5] add health detail to ceph status api call
Dominik Csapak
d.csapak at proxmox.com
Thu Jul 20 16:16:10 CEST 2017
with ceph 12.1.1 luminous, ceph has reorganized its json
interface of the ceph status and ceph health call
so to get everything we need, we have to also get
the ceph health detail information into our
status call
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
PVE/API2/Ceph.pm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/PVE/API2/Ceph.pm b/PVE/API2/Ceph.pm
index 64233985..105ee37a 100644
--- a/PVE/API2/Ceph.pm
+++ b/PVE/API2/Ceph.pm
@@ -1186,7 +1186,9 @@ __PACKAGE__->register_method ({
PVE::CephTools::check_ceph_enabled();
my $rados = PVE::RADOS->new();
- return $rados->mon_command({ prefix => 'status' });
+ my $status = $rados->mon_command({ prefix => 'status' });
+ $status->{health} = $rados->mon_command({ prefix => 'health', detail => 'detail' });
+ return $status;
}});
__PACKAGE__->register_method ({
--
2.11.0
More information about the pve-devel
mailing list