Add support for policy types, 'erasure_coding' policy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-api-site |
Invalid
|
Medium
|
Unassigned | ||
openstack-manuals |
Invalid
|
Medium
|
Unassigned |
Bug Description
https:/
commit ed5406628884432
Author: Tushar Gohad <email address hidden>
Date: Mon Jun 30 11:14:28 2014 -0700
Add support for policy types, 'erasure_coding' policy
This patch extends the StoragePolicy class for non-replication storage
policies, the first one being "erasure coding".
Changes:
- Add 'policy_type' support to BaseStoragePolicy class
- Disallow direct instantiation of BaseStoragePolicy class
- Subclass BaseStoragePolicy
- "StoragePolicy":
. Replication policy, default
. policy_type = 'replication'
- "ECStoragePolicy":
. Erasure Coding policy
. policy_type = 'erasure_coding'
. Private member variables
ec_type (EC backend),
data split into after erasure coding operation),
. Private methods
EC specific attributes and ring validator methods.
- Swift will use PyECLib, a Python Erasure Coding library, for
erasure coding operations. PyECLib is already an approved
OpenStack core requirement.
(https:/
- Add test cases for
- 'policy_type' StoragePolicy member
- policy_type == 'erasure_coding'
DocImpact
Co-Authored-By: Alistair Coles <email address hidden>
Co-Authored-By: Thiago da Silva <email address hidden>
Co-Authored-By: Clay Gerrard <email address hidden>
Co-Authored-By: Paul Luse <email address hidden>
Co-Authored-By: Samuel Merritt <email address hidden>
Co-Authored-By: Christian Schwede <email address hidden>
Co-Authored-By: Yuan Zhou <email address hidden>
Change-Id: Ie0e09796e3ec45
Implements: blueprint ec-proxy-work
Changed in openstack-manuals: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in openstack-api-site: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
milestone: | none → kilo |
Changed in openstack-manuals: | |
milestone: | none → kilo |
Changed in openstack-api-site: | |
milestone: | kilo → liberty |
Changed in openstack-manuals: | |
milestone: | kilo → liberty |
From seeing swift document, storage_policy is defined in configuration file.
Of course, storage-policy "name" can be selected, but erasure-code itself cannot be selected.
So I think it is relate to manual, no relation to api-site.
Is my understanding is incorrect?
Configuring Policies /github. com/openstack/ swift/blob/ 2.3.0/doc/ source/ overview_ policies. rst
https:/