I am trying to use another erasure codes options because without pyeclib you only can use 3 types of erasure codes but there is nothing about it in the documentation or in the internet.
First, I installed openstack swift SAIO, then installed pyeclib like in the README, so I changed the policy in the swift.conf ONLY, and did not add any rings or anything besides the erasure code that only pyeclib have.
I am using python-swiftclient 4.5.1.dev7 and the latest version of pyeclib.
I tried searching through pyeclib and openstack swift if the swift.conf would need any new parameter or something like this, but it seen it is not the case.
The swift.conf:
[swift-hash]
# random unique strings that can never change (DO NOT LOSE)
# Use only printable chars (python -c "import string; print(string.printable)")
swift_hash_path_prefix = changeme
swift_hash_path_suffix = changeme
[storage-policy:0]
name = gold
policy_type = replication
default = yes
[storage-policy:1]
name = silver
policy_type = replication
[storage-policy:2]
name = ec42
policy_type = erasure_coding
ec_type = liberasurecode_rs_vand
ec_num_data_fragments = 4
ec_num_parity_fragments = 2
**[storage-policy:3]
name = ivand42
policy_type = erasure_coding
ec_type = isa_l_rs_vand
ec_num_data_fragments = 4
ec_num_parity_fragments = 2**
With the command “swift-init start main” i get:
Starting proxy-server...(/etc/swift/proxy-server.conf)
Starting container-server...(/etc/swift/container-server/1.conf)
Starting container-server...(/etc/swift/container-server/2.conf)
Starting container-server...(/etc/swift/container-server/3.conf)
Starting container-server...(/etc/swift/container-server/4.conf)
Starting object-server...(/etc/swift/object-server/1.conf)
Starting object-server...(/etc/swift/object-server/2.conf)
Starting object-server...(/etc/swift/object-server/3.conf)
Starting object-server...(/etc/swift/object-server/4.conf)
Starting account-server...(/etc/swift/account-server/1.conf)
Starting account-server...(/etc/swift/account-server/2.conf)
Starting account-server...(/etc/swift/account-server/3.conf)
Starting account-server...(/etc/swift/account-server/4.conf)
ERROR: Invalid Storage Policy Configuration in /etc/swift/swift.conf (Wrong ec_type isa_l_rs_vand for policy ivand42, should be one of "flat_xor_hd_3, flat_xor_hd_4, liberasurecode_rs_vand")
ERROR: Invalid Storage Policy Configuration in /etc/swift/swift.conf (Wrong ec_type isa_l_rs_vand for policy ivand42, should be one of "flat_xor_hd_3, flat_xor_hd_4, liberasurecode_rs_vand")
ERROR: Invalid Storage Policy Configuration in /etc/swift/swift.conf (Wrong ec_type isa_l_rs_vand for policy ivand42, should be one of "flat_xor_hd_3, flat_xor_hd_4, liberasurecode_rs_vand")
ERROR: Invalid Storage Policy Configuration in /etc/swift/swift.conf (Wrong ec_type isa_l_rs_vand for policy ivand42, should be one of "flat_xor_hd_3, flat_xor_hd_4, liberasurecode_rs_vand")
ERROR: Invalid Storage Policy Configuration in /etc/swift/swift.conf (Wrong ec_type isa_l_rs_vand for policy ivand42, should be one of "flat_xor_hd_3, flat_xor_hd_4, liberasurecode_rs_vand")
ERROR: Invalid Storage Policy Configuration in /etc/swift/swift.conf (Wrong ec_type isa_l_rs_vand for policy ivand42, should be one of "flat_xor_hd_3, flat_xor_hd_4, liberasurecode_rs_vand")
ERROR: Invalid Storage Policy Configuration in /etc/swift/swift.conf (Wrong ec_type isa_l_rs_vand for policy ivand42, should be one of "flat_xor_hd_3, flat_xor_hd_4, liberasurecode_rs_vand")
ERROR: Invalid Storage Policy Configuration in /etc/swift/swift.conf (Wrong ec_type isa_l_rs_vand for policy ivand42, should be one of "flat_xor_hd_3, flat_xor_hd_4, liberasurecode_rs_vand")
ERROR: Invalid Storage Policy Configuration in /etc/swift/swift.conf (Wrong ec_type isa_l_rs_vand for policy ivand42, should be one of "flat_xor_hd_3, flat_xor_hd_4, liberasurecode_rs_vand")
ERROR: Invalid Storage Policy Configuration in /etc/swift/swift.conf (Wrong ec_type isa_l_rs_vand for policy ivand42, should be one of "flat_xor_hd_3, flat_xor_hd_4, liberasurecode_rs_vand")
ERROR: Invalid Storage Policy Configuration in /etc/swift/swift.conf (Wrong ec_type isa_l_rs_vand for policy ivand42, should be one of "flat_xor_hd_3, flat_xor_hd_4, liberasurecode_rs_vand")
ERROR: Invalid Storage Policy Configuration in /etc/swift/swift.conf (Wrong ec_type isa_l_rs_vand for policy ivand42, should be one of "flat_xor_hd_3, flat_xor_hd_4, liberasurecode_rs_vand")
ERROR: Invalid Storage Policy Configuration in /etc/swift/swift.conf (Wrong ec_type isa_l_rs_vand for policy ivand42, should be one of "flat_xor_hd_3, flat_xor_hd_4, liberasurecode_rs_vand")
I would like to use openstack swift with the ec_type: isa_l_rs_vand, isa_l_rs_cauchy, jerasure_rs_vand and jerasure_rs_cauchy. Any help would be greatly appreciated and if you have any material or something that would help me with these tools too.
Sara Ferreira is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.