From: Aaron Lauterer <a.lauterer@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH manager 1/3] api: osd: details: add created_at and created_version
Date: Fri, 5 May 2023 15:11:27 +0200 [thread overview]
Message-ID: <20230505131129.3555469-2-a.lauterer@proxmox.com> (raw)
In-Reply-To: <20230505131129.3555469-1-a.lauterer@proxmox.com>
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@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
next prev parent reply other threads:[~2023-05-05 13:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-05 13:11 [pve-devel] [PATCH manager 0/3] osd details: add created_at & created_version Aaron Lauterer
2023-05-05 13:11 ` Aaron Lauterer [this message]
2023-05-05 13:11 ` [pve-devel] [PATCH manager 2/3] ui: osd: details: add created_at and created_version Aaron Lauterer
2023-05-05 13:11 ` [pve-devel] [PATCH manager 3/3] ui: osd: details: move hostname to top Aaron Lauterer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230505131129.3555469-2-a.lauterer@proxmox.com \
--to=a.lauterer@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.