The problem was that the crush rule setting was send during the creation
of a pool - the type didn't matter, but the setting is only used if a
replicated pool is created. This hasn't created any problems yet, but to
prevent that it's now omitted for erasure code pool creations.
Fixes: https://tracker.ceph.com/issues/44371
Signed-off-by: Stephan Müller <smueller@suse.com>
formControlName: 'erasureProfile',
attr: 'name'
},
- { externalFieldName: 'rule_name', formControlName: 'crushRule', attr: 'rule_name' },
+ {
+ externalFieldName: 'rule_name',
+ formControlName: 'crushRule',
+ replaceFn: (value: CrushRule) => (this.isReplicated ? value && value.rule_name : undefined)
+ },
{
externalFieldName: 'quota_max_bytes',
formControlName: 'max_bytes',