all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>,
	Aaron Lauterer <a.lauterer@proxmox.com>
Subject: [pve-devel] applied: [RFC manager] pveceph: add osd details command
Date: Tue, 6 Jun 2023 18:24:08 +0200	[thread overview]
Message-ID: <8c6afde8-cf05-01a9-67be-044b6a2d87f1@proxmox.com> (raw)
In-Reply-To: <20221219144634.2413269-1-a.lauterer@proxmox.com>

Am 19/12/2022 um 15:46 schrieb Aaron Lauterer:
> To provide similar output on the CLI as is possible in the GUI/API
> regaring OSD details.
> 
> By default (output-format=text) a more concise output is shown. Using
> json or yaml as output format will print all the available data.
> 
> The 'verbose' flag causes json-pretty output to be used.
> 
> The functionality is split between the actual function and the output
> formatter as not all options/parameters are available in each.
> 
> Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
> ---
> Depends on the OSD Details patches which are not yet applied [0].
> 
> RFC because in order to check against the output format and the verbose
> flag, the code ended up split between the actual cmdline method and
> the formatting function.
> 
> The verbose flag is only available in the formatter and the verbose in
> the method itself.
> 
> If there would be a nicer way to achieve a similar result, I would be
> happy to get hints.
> 
> [0] https://lists.proxmox.com/pipermail/pve-devel/2022-December/055154.html
> 
>  PVE/CLI/pveceph.pm | 66 ++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 66 insertions(+)
> 
>

applied, with some (opinionated) code cleanups, thanks!

Looking at current CLI commands it seems a osd list is missing, as if I tried
this one first it asked for an OSD ID, and I thought well, how do I get one,
and yes `ceph osd tree` and co naturally, I know that, but a user that just
used pveceph might expect that there's some (osd) command that provides it
there too - so maybe we can add one.




      parent reply	other threads:[~2023-06-06 16:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-19 14:46 [pve-devel] " Aaron Lauterer
2023-04-11 11:33 ` Aaron Lauterer
2023-06-06 16:24 ` Thomas Lamprecht [this message]

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=8c6afde8-cf05-01a9-67be-044b6a2d87f1@proxmox.com \
    --to=t.lamprecht@proxmox.com \
    --cc=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.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal