2. swift.conf 파일을 열어 swift_hash_path_suffix와 swift_hash_path_prefix 값을 설정합니다. 유일한 값이어야 하며 변경해서는 안 됩니다. 여기서는 알기 쉽게 openstack_swift_test 단어를 사용했습니다.
root@controller:/etc/swift# vi swift.conf
[swift-hash]
swift_hash_path_suffix and swift_hash_path_prefix are used as part of the
the hashing algorithm when determining data placement in the cluster.
These values should remain secret and MUST NOT change
once a cluster has been deployed.
Use only printable chars (python -c “import string; print(string.printable)”)
swift_hash_path_suffix = openstack_swift_test_suffix swift_hash_path_prefix = openstack_swift_test_prefix
A ‘policy_type’ argument is also supported but is not mandatory. Default
policy type ‘replication’ is used when ‘policy_type’ is unspecified.
[storage-policy:0] name = Policy-0 default = yes aliases = yellow, orange