Project

General

Profile

Actions

Feature #8307

closed

Creating a pool with erasure code allows me to create invalid ec profile names.

Added by Pauline Middelink almost 10 years ago. Updated almost 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Monitor
Target version:
% Done:

100%

Source:
other
Tags:
Backport:
firefly
Reviewed:
Affected Versions:
Pull request ID:

Description

Lets much around with the cmdline

[root@storage ~]# ceph osd pool create ec 128 128 erasure erasure-code-k=9 erasure-code-m=1
Error EINVAL: cannot determine the erasure code plugin because there is no 'plugin' entry in the erasure_code_profile {}failed to load plugin using profile erasure-code-k=9

Fine. Expected an error, that webpage was old.

[root@storage ~]# ceph osd erasure-code-profile ls
default
erasure-code-k=9

Hmm. What's this? erasure-code-k=9 was created? Lets get rid of it.

[root@storage ~]# ceph osd erasure-code-profile rm erasure-code-k=9
Invalid command: invalid chars = in erasure-code-k=9
osd erasure-code-profile rm <name> : remove erasure code profile <name>
Error EINVAL: invalid command

[root@storage ~]# ceph osd erasure-code-profile rm "erasure-code-k=9"
Invalid command: invalid chars = in erasure-code-k=9
osd erasure-code-profile rm <name> : remove erasure code profile <name>
Error EINVAL: invalid command

Actions

Also available in: Atom PDF