public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Aaron Lauterer <a.lauterer@proxmox.com>
To: Thomas Lamprecht <t.lamprecht@proxmox.com>,
	Proxmox VE development discussion <pve-devel@lists.proxmox.com>,
	Dominik Csapak <d.csapak@proxmox.com>
Subject: Re: [pve-devel] [PATCH manager 5/5] ceph pools: allow to create erasure code pools
Date: Fri, 29 Apr 2022 11:27:10 +0200	[thread overview]
Message-ID: <d214dd78-fc4c-6a5f-8d99-29da73bc64b5@proxmox.com> (raw)
In-Reply-To: <4d86c545-543f-38d3-11cb-6c4fabd70347@proxmox.com>



On 4/29/22 09:40, Thomas Lamprecht wrote:
> On 29.04.22 09:33, Aaron Lauterer wrote:
>>
>> On 4/28/22 16:32, Dominik Csapak wrote:
>>> is there a specific reason why you still force the autocreation
>>> of the storage? i don't mind really, but giving a reason
>>> would be nice. if there is no reason, i'd drop that since
>>> the user can specify it anyway and adding one manually
>>> should also not too hard..
>>
>> I guess I could have been more explicit in the commit message. I decided to always create the storage config to have the coupling of ec pool and replicated metadata pool in place. We currently only have the RBD use case for EC pools in PVE itself and otherwise people might forget about it and any RBD image created without the data-pool parameter configured will be placed in the replicated pool.
>>
> 
> IMO still confusing to enforce it, default to true can be Ok, but that's
> something different than hard-enforcing it always, would surely lead to a bug
> report sooner or later.

I am sending a follow up which makes it a default that can be explicitly set
> 
> Oh, and for the CLI I'd like to see this as separate command, i.e.:
> 
> pveceph ec-pool create
> pveceph ec-pool destroy
> 
> That can then have the expanded options format, which can be nicer to use on CLI,
> and also default to add-storage there already.

Okay. One question on how to handle the destroy part. Since we do have 2 pools, 
depending on what the user provides, should we search for the storage name and 
any of the possible pool names and then figure out the missing pools from there 
and destroy both pools?
This way, the user could provide us with any of the 3 possibilities. On the 
other hand, this could be unexpected behavior, and we may rather let the user 
destroy 2 pools.

Or should it be the regular pool destroy, but set the parameters to destroy ec 
profiles?

> 
> 
> small ot/general nit: can you please use a text-width of 80 (or even 100) cc on
> the mailing list, my MTA is configured to show text as is to ensure patches are
> seen correctly, so long replies require horizontal scrolling
> 

Sorry for that. Should be fixed now :)




  reply	other threads:[~2022-04-29  9:27 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-28 11:58 [pve-devel] [PATCH manager 0/5] Ceph add basic erasure code pool mgmt support Aaron Lauterer
2022-04-28 11:58 ` [pve-devel] [PATCH manager 1/5] api: ceph: $get_storages check if data-pool too Aaron Lauterer
2022-04-28 11:58 ` [pve-devel] [PATCH manager 2/5] ceph tools: add erasure code management functions Aaron Lauterer
2022-04-28 14:19   ` Dominik Csapak
2022-04-28 11:58 ` [pve-devel] [PATCH manager 3/5] ceph tools: add function to get pool properties Aaron Lauterer
2022-04-28 14:20   ` Dominik Csapak
2022-04-28 11:58 ` [pve-devel] [PATCH manager 4/5] ceph tools: add destroy crush rule destroy function Aaron Lauterer
2022-04-28 11:58 ` [pve-devel] [PATCH manager 5/5] ceph pools: allow to create erasure code pools Aaron Lauterer
2022-04-28 14:32   ` Dominik Csapak
2022-04-29  7:33     ` Aaron Lauterer
2022-04-29  7:40       ` Thomas Lamprecht
2022-04-29  9:27         ` Aaron Lauterer [this message]
2022-04-28 18:31   ` [pve-devel] applied: " Thomas Lamprecht
2022-04-28 18:33 ` [pve-devel] applied: [PATCH manager 0/5] Ceph add basic erasure code pool mgmt support Thomas Lamprecht

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=d214dd78-fc4c-6a5f-8d99-29da73bc64b5@proxmox.com \
    --to=a.lauterer@proxmox.com \
    --cc=d.csapak@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    --cc=t.lamprecht@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal