openstack swift install on centos 6

openstack swift install on centos 6

1. proxy install

[swift-hash]

# random unique string that can never change (DO NOT LOSE)

swift_hash_path_suffix = od -t x8 -N 8 -A n </dev/random

495 16954 0.0 0.1 330756 816 ? Ssl 18:19 0:00 memcached -d -p 11211 -u memcached -m 64 -c 1024 -P /var/run/memcached/memcached.pid

[DEFAULT]

cert_file = /etc/swift/cert.crt

key_file = /etc/swift/cert.key

bind_port = 8080

workers = 8

user = swift

log_facility = LOG_LOCAL0

allow_account_management = true

[pipeline:main]

pipeline = healthcheck cache swauth proxy-server

[app:proxy-server]

use = egg:swift#proxy

allow_account_management = true

account_autocreate = true

log_facility = LOG_LOCAL0

log_headers = true

log_level =DEBUG

[filter:swauth]

use = egg:swauth#swauth

#use = egg:swift#swauth

default_swift_cluster = local#https://10.38.10.127:8080/v1

# Highly recommended to change this key to something else!

super_admin_key = swauthkey

log_facility = LOG_LOCAL1

log_headers = true

log_level =DEBUG

allow_account_management = true

[filter:healthcheck]

use = egg:swift#healthcheck

[filter:cache]

use = egg:swift#memcache

memcache_servers = 10.38.10.127:11211

local0.* /var/log/swift/proxy.log

local1.* /var/log/swift/swauth.log

2. storage node install

5) easy_install eventlet

6) wget "http://pypi.python.org/packages/source/x/xattr/xattr-0.6.2.tar.gz#md5=5fc899150d03c082558455483fc0f89f"

7) wget "http://pypi.python.org/packages/source/c/coverage/coverage-3.5.1.tar.gz#md5=410d4c8155a4dab222f2bc51212d4a24"

8) yum install libvirt

9) groupadd swift

10) useradd -g swift swift

11) mkdir -p /etc/swift

12) chown -R swift:swift /etc/swift/

13) cp swift.conf account.ring.gz container.ring.gz object.ring.gz /etc/swift/ (scp from proxy server)

14) yum install xfsprogs

15) wget "http://www.openstack.org/projects/storage/latest-release/"

python setup.py install

16) vi /etc/rsyncd.conf

# rsyncd.conf

secrets file = /etc/rsyncd.secrets

#motd file = /etc/rsyncd.motd

#read only = yes

#list = yes

uid = root

gid = root

use chroot = no

max connections = 5

log file = /var/log/rsyncd.log

pid file = /var/run/rsyncd.pid

lock file = /var/run/rsync.lock

[domain]

comment = welcome

path = /var/www/domain/

auth users = root

hosts allow = 10.38.10.114, 127.0.0.1, 10.38.10.119, 10.38.10.109, 10.38.10.122

hosts deny = *

list = true

read only = no

[account]

max connections = 2

path = /home/swift/

read only = false

lock file = /var/lock/account.lock

[container]

max connections = 2

path = /home/swift/

read only = false

lock file = /var/lock/container.lock

[object]

max connections = 2

path = /home/swift/

read only = false

lock file = /var/lock/object.lock

[DEFAULT]

bind_ip = 10.38.10.109

workers = 2

mount_check = false

bind_port = 6002

log_facility = LOG_LOCAL0

devices = /srv/1/node

[pipeline:main]

pipeline = account-server

[app:account-server]

use = egg:swift#account

[account-replicator]

log_name = account-replicator

log_facility = LOG_LOCAL1

[account-auditor]

log_name = account-auditor

log_facility = LOG_LOCAL1

[account-reaper]

log_facility = LOG_LOCAL1

[DEFAULT]

bind_ip = 10.38.10.109

workers = 2

mount_check = false

bind_port = 6001

log_facility = LOG_LOCAL0

devices = /srv/1/node

[pipeline:main]

pipeline = container-server

[app:container-server]

use = egg:swift#container

[container-replicator]

[container-updater]

[container-auditor]

[container-sync]

[DEFAULT]

bind_ip = 10.38.10.109

workers = 2

mount_check = false

bind_port = 6000

log_facility = LOG_LOCAL0

devices = /srv/1/node

[pipeline:main]

pipeline = object-server

[app:object-server]

use = egg:swift#object

[object-replicator]

[object-updater]

[object-auditor]

local0.* /var/log/swift/account.log

local1.* /var/log/swift/account-rest.log

/srv/swift-disk /mnt/sdb1 xfs loop,noatime,nodiratime,nobarrier,logbufs=8 0 0

3. test

swauth-prep -A https://10.38.10.127:8080/auth/ -K swauthkey

refer:

http://swift.openstack.org/development_saio.html

http://swift.openstack.org/howto_installmultinode.html

http://www.openstack.org.cn/bbs/forum.php?mod=viewthread&tid=264

https://answers.launchpad.net/swift/+question/162957

http://www.vpsee.com/2011/08/install-openstack-nova-on-centos/

Published by Google Docs–Report Abuse–Updated automatically every 5 minutes

Wiki: InstallInstructions/Swift/CentOS (last edited 2011-11-10 23:09:30 by peter.pang@brighthost.com)