Configuring Account Server - Openstack

Container Servers contain Object Servers seen in our OpenStack storage environment. The configuration of this is similar to configuring the Account Server. Account Server lists the available containers on our node. As we are creating a setup where we have four virtual devices available under the one hood, each having its own list of available containers, but running on different ports. These represent the rsync account numbers seen previously, for example, port 6012 is represented by [account6012] within rsync.

Assure that you are logged in to your swift virtual machine. To accomplish this, run:

Getting started

To gain in-depth knowledge and be on par with practical experience, then explore the OpenStack Training Course.

Create Account Server Configuration

In this section, we’re creating four different Account Server configuration files that differ only in the port that the service will run on and the path on our single disk that corresponds to that service on that particular port.

1. We begin by creating an initial Account Server configuration file for our first node. Edit /etc/swift/account-server/1.conf with the following contents:
[DEFAULT]
devices = /srv/1/node mount_check = false bind_port = 6012
user = swift
log_facility = LOG_LOCAL2
[pipeline:main]
pipeline = account-server
[app: account-server] use = egg:swift#account
[account-replicator] vm_test_mode = yes
[account-auditor]
[account-reaper]

2. We then use this file to create the remaining three virtual nodes, each with their appropriate unique values as follows:
cd /etc/swift/account-server
sed -e “s/srv/1/srv/2/” -e “s/601/602/” -e “s/LOG_LOCAL2/LOG_LOCAL3/” 1.conf | sudo tee -a 2.conf
sed -e “s/srv/1/srv/3/” -e “s/601/603/” -e “s/LOG_LOCAL2/LOG_LOCAL4/” 1.conf | sudo tee -a 3.conf
sed -e “s/srv/1/srv/4/” -e “s/601/604/” -e “s/LOG_LOCAL2/LOG_LOCAL5/” 1.conf | sudo tee -a 4.conf

MindMajix YouTube Channel

Explore OpenStack Sample Resumes! Download & Edit, Get Noticed by Top Employers! 

Account Server- Open Stack

What we have accomplished is to create the first Account Server device node, which we named 1. conf, under the /etc/swift/swift-account directory. This defines our Account Server for node 1, which will run on port 6012.
We then took this file and made the subsequent Account Servers run on their respective ports, with a search and replace, using sed.
We ended up with four files, under our swift-account configuration directory, which defined the following services:
account-server 1: Port 6012, device /srv/1/node, Log Level LOCAL2 account-server 2: Port 6022, device /srv/2/node, Log Level LOCAL3 account-server 3: Port 6032, device /srv/3/node, Log Level LOCAL4 account-server 4: Port 6042, device /srv/4/node, Log Level LOCAL5

https://docs.openstack.org/kilo/config-reference/content/account-server-conf.html

Related Pages:
Openstack Tutorial

Interview Questions:
Openstack Interview Questions 

Course Schedule
NameDates
OpenStack TrainingNov 02 to Nov 17View Details
OpenStack TrainingNov 05 to Nov 20View Details
OpenStack TrainingNov 09 to Nov 24View Details
OpenStack TrainingNov 12 to Nov 27View Details
Last updated: 03 Apr 2023
About Author

Ravindra Savaram is a Technical Lead at Mindmajix.com. His passion lies in writing articles on the most popular IT platforms including Machine learning, DevOps, Data Science, Artificial Intelligence, RPA, Deep Learning, and so on. You can stay up to date on all these technologies by following him on LinkedIn and Twitter.

read less
  1. Share:
OpenStack Articles