[pve-devel] [PATCH manager 1/3] api: osd: details: add created_at and created_version
Aaron Lauterer
a.lauterer at proxmox.com
Fri May 5 15:11:27 CEST 2023
OSDs created with Ceph version 17.2.6 or newer will store the date and
time they were created at, as well as the version at the time.
Signed-off-by: Aaron Lauterer <a.lauterer at proxmox.com>
---
PVE/API2/Ceph/OSD.pm | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/PVE/API2/Ceph/OSD.pm b/PVE/API2/Ceph/OSD.pm
index ded35990..0222042b 100644
--- a/PVE/API2/Ceph/OSD.pm
+++ b/PVE/API2/Ceph/OSD.pm
@@ -645,6 +645,16 @@ __PACKAGE__->register_method ({
type => 'string',
description => 'Ceph version of the OSD service.',
},
+ version_when_created => {
+ type => 'string',
+ description => 'Ceph version of the OSD service when created. '.
+ '(available since Ceph 17.2.6)',
+ },
+ created_at => {
+ type => 'string',
+ description => 'Date and time when the OSD was created. '.
+ '(available since Ceph 17.2.6)',
+ },
front_addr => {
type => 'string',
description => 'Address and port used to talk to clients and monitors.',
@@ -718,6 +728,8 @@ __PACKAGE__->register_method ({
osd_objectstore => $metadata->{osd_objectstore},
pid => $pid,
version => "$metadata->{ceph_version_short} ($metadata->{ceph_release})",
+ version_when_created => "$metadata->{ceph_version_when_created}",
+ created_at => "$metadata->{created_at}",
front_addr => $metadata->{front_addr},
back_addr => $metadata->{back_addr},
hb_front_addr => $metadata->{hb_front_addr},
--
2.30.2
More information about the pve-devel
mailing list