]> git.proxmox.com Git - pve-manager.git/commitdiff
ceph pools create: remove crush_rule for ec pool data
authorAaron Lauterer <a.lauterer@proxmox.com>
Tue, 3 May 2022 11:58:07 +0000 (13:58 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 4 May 2022 05:11:06 +0000 (07:11 +0200)
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@proxmox.com>
PVE/API2/Ceph/Pools.pm

index 7042727724217873d9a4ba98ac00d5e51d4bb9f2..9c3b88844d6caa1e8d3c9c1a8f325ba671f1231b 100644 (file)
@@ -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;