Install and configure components | OpenStack Swift – Part 6

Perform these steps on each storage node:

$yum install openstack-swift-account openstack-swift-container openstack-swift-object

Obtain the accounting, container, and object service configuration files from the Object Storage source repository:

$curl -o /etc/swift/account-server.conf https://git.openstack.org/cgit/openstack/swift/plain/etc/account-server.conf-sample?h=stable/queens

$curl -o /etc/swift/container-server.conf https://git.openstack.org/cgit/openstack/swift/plain/etc/container-server.conf-sample?h=stable/queens

$curl -o /etc/swift/object-server.conf https://git.openstack.org/cgit/openstack/swift/plain/etc/object-server.conf-sample?h=stable/queens

Edit the /etc/swift/account-server.conf file:

[DEFAULT]
bind_ip = 10.0.0.4
bind_port = 6202
user = swift
swift_dir = /etc/swift
devices = /srv/node
mount_check = True

[pipeline:main]
pipeline = healthcheck recon account-server

[filter:recon]
use = egg:swift#recon
recon_cache_path = /var/cache/swift

Edit the /etc/swift/container-server.conf file:

[DEFAULT]
bind_ip = 10.0.0.4
bind_port = 6201
user = swift
swift_dir = /etc/swift
devices = /srv/node

[pipeline:main]
pipeline = healthcheck recon container-server

[filter:recon]
use = egg:swift#recon
recon_cache_path = /var/cache/swift

Edit the /etc/swift/object-server.conf file

[DEFAULT]
bind_ip = 10.0.04
bind_port = 6200
user = swift
swift_dir = /etc/swift
devices = /srv/node
mount_check = True

[pipeline:main]
pipeline = healthcheck recon object-server

[filter:recon]
use = egg:swift#recon
recon_cache_path = /var/cache/swift
recon_lock_path = /var/lock

Ensure proper ownership of the mount point directory structure:

$chown -R swift:swift /srv/node

Create the recon directory and ensure proper ownership of it:

$ mkdir -p /var/cache/swift

$ chown -R root:swift /var/cache/swift

$ chmod -R 775 /var/cache/swift

 

Related Topics:

An Overview of Swift – An Object Storage Service | OpenStack Swift – Part 1

Deploy Multi node Openstack Swift – Queens Configuration | OpenStack Swift – Part 2

Configuring Keystone | OpenStack Swift – Part 3

Install and Configure Proxy Server Components | OpenStack Swift – Part 4

Install and Configure the Storage Nodes | OpenStack Swift – Part 5

Install and configure components | OpenStack Swift – Part 6

Create and Distribute Initial Rings | OpenStack Swift – Part 7

Verify Operation | OpenStack Swift – Part 8