[pve-devel] [PATCH manager 1/3] ceph pools create: remove crush_rule for ec pool data

Aaron Lauterer a.lauterer at proxmox.com
Tue May 3 13:58:07 CEST 2022


The crush rule is an optional paramter which can be used for the
metadata pool, but the erasure coded data pool will always get its own
crush rule. Therefore this parameter can not be adapted.

Signed-off-by: Aaron Lauterer <a.lauterer at proxmox.com>
---
 PVE/API2/Ceph/Pools.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/API2/Ceph/Pools.pm b/PVE/API2/Ceph/Pools.pm
index 70427277..9c3b8884 100644
--- a/PVE/API2/Ceph/Pools.pm
+++ b/PVE/API2/Ceph/Pools.pm
@@ -474,6 +474,7 @@ __PACKAGE__->register_method ({
 		$ec_data_param->{erasure_code_profile} = $ec->{profile};
 		delete $ec_data_param->{size};
 		delete $ec_data_param->{min_size};
+		delete $ec_data_param->{crush_rule};
 
 		# metadata pool should be ok with 32 PGs
 		$param->{pg_num} = 32;
-- 
2.30.2






More information about the pve-devel mailing list