all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Aaron Lauterer <a.lauterer@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH manager v3 2/6] pveceph: add pool namespace subcommands
Date: Fri,  4 Apr 2025 16:53:35 +0200	[thread overview]
Message-ID: <20250404145339.1067261-3-a.lauterer@proxmox.com> (raw)
In-Reply-To: <20250404145339.1067261-1-a.lauterer@proxmox.com>

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
---
changes since v2:
* define alias for 'namespace list' correctly

v1: none

 PVE/CLI/pveceph.pm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/PVE/CLI/pveceph.pm b/PVE/CLI/pveceph.pm
index 488aea04..a549ae80 100755
--- a/PVE/CLI/pveceph.pm
+++ b/PVE/CLI/pveceph.pm
@@ -482,6 +482,15 @@ our $cmddef = {
 	    my ($data, $schema, $options) = @_;
 	    PVE::CLIFormatter::print_api_result($data, $schema, undef, $options);
 	}, $PVE::RESTHandler::standard_output_options],
+	namespace => {
+	    ls => [ 'PVE::API2::Ceph::Pool', 'listnamespaces', ['name'], { node => $nodename}, sub {
+		my ($data, $schema, $options) = @_;
+		PVE::CLIFormatter::print_api_result($data, $schema, undef, $options);
+	    }, $PVE::RESTHandler::standard_output_options],
+	    list => { alias => 'ls' },
+	    create => [ 'PVE::API2::Ceph::Pool', 'createnamespace', ['name', 'namespace', 'add-storage'], { node => $nodename}],
+	    destroy => [ 'PVE::API2::Ceph::Pool', 'destroynamespace', ['name', 'namespace'], { node => $nodename }],
+	},
     },
     lspools => { alias => 'pool ls' },
     createpool => { alias => 'pool create' },
-- 
2.39.5



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


  parent reply	other threads:[~2025-04-04 14:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-04 14:53 [pve-devel] [PATCH manager, docs v3 0/6] Ceph: add RBD Namespace management Aaron Lauterer
2025-04-04 14:53 ` [pve-devel] [PATCH manager v3 1/6] api: ceph: add rbd namespace management endpoints Aaron Lauterer
2025-04-04 14:53 ` Aaron Lauterer [this message]
2025-04-04 14:53 ` [pve-devel] [PATCH manager v3 3/6] ui: ceph pool: add rbd namespace panel Aaron Lauterer
2025-04-04 15:19   ` [pve-devel] [PATCH manager v3 3/6 follow up] " Aaron Lauterer
2025-04-04 14:53 ` [pve-devel] [PATCH manager v3 4/6] ui: utils: add ceph rbd namespace task names Aaron Lauterer
2025-04-04 14:53 ` [pve-devel] [PATCH manager v3 5/6] ui: storage rbd: remove hint for manual rbd namespace creation Aaron Lauterer
2025-04-04 14:53 ` [pve-devel] [PATCH docs v3] pveceph: add section for rbd namespaces Aaron Lauterer
2025-04-11  8:33   ` [pve-devel] [PATCH docs v3 follow-up] " 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=20250404145339.1067261-3-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.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal