Project

General

Profile

Subtask #6113

Feature #4929: Erasure encoded placement group

Subtask #5877: Plugable erasure code library

add ceph osd pool create [name] [key=value]

Added by Loic Dachary about 6 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
OSD
Target version:
-
Start date:
08/23/2013
Due date:
09/20/2013
% Done:

100%

Estimated time:
0.00 h
Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

work in progress

  • add ceph osd pool create [name] [key=value] where key and value are arbitrary strings.
    • Update ceph osd pool create around MonCommands.h
    • Add a map<string,string> erasure_code parameter list to pg_pool_t
  • configuration example ( osd pool create keys interpreted by the plugin )
    • ceph osd pool create poolname erasure-code-dir=/var/lib/ceph/erasure-code-plugins (mandatory)
      erasure-code-plugin=jerasure (mandatory) erasure-code-m=10 (optional) erasure-code-k=3 (optional) erasure-code-algorithm=Reed-Solomon (optional)
    • ... there can be more, depending on the plugin / algorithm
    • we can probably generalize the mon command interface to have a key/value list type that will make this easy to plumb from the CLI (and trivial via ceph-rest-api).

Related issues

Related to Ceph - Bug #6357: inverted test in osd pool create Resolved 09/19/2013 09/20/2013

Associated revisions

Revision 454c116d (diff)
Added by Loic Dachary about 6 years ago

mon: add key[=value] ... to osd pool create

With the introduction of the erasure code pool, arguments to be
interpreted depending on the pool type must be introduced.
For instance the erasure code pool loads a plugin at run time will
use easure-code-k=10 to split each object in 10.

The arguments are described as

name=properties,type=CephString,n=N,req=false,goodchars=[A-Za-z0-9-_.=]

If key=value it is stored in the new properties data member of pg_pool_t
as properties[key] = value, otherwise the value is the empty string.

The pg_pool_t version is bumped to 10 and the encode/decode methods
modified to take the properties into account. The
generate_test_instances method creates a two entries map, one of which
is the empty string to cover the case when no value is specified.

http://tracker.ceph.com/issues/6113 refs #6113

Signed-off-by: Loic Dachary <>

History

#1 Updated by Loic Dachary about 6 years ago

  • Status changed from New to In Progress
  • Assignee set to Loic Dachary

#2 Updated by Loic Dachary about 6 years ago

  • Description updated (diff)

#3 Updated by Loic Dachary almost 6 years ago

  • Due date set to 09/20/2013
  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100
  • translation missing: en.field_remaining_hours set to 0.00

#4 Updated by Loic Dachary over 5 years ago

  • Estimated time set to 0.00 h

Also available in: Atom PDF