Note: The following is highlighted in red with redundant information due to the editor. 1. Summary all operations involved in this article are verified on the effectuserver11.1064-bit system. This document references Openstackkeystone. The specific information is as follows: Linux: ttuserver11.1064-bitoneiric & Note: The following highlighted in red contains redundant information due to the editor.
1. SummaryAll operations involved in this article are verified on the 64-bit Ubuntu Server 11.10 system. This article references the relevant documentation of Openstack keystone. The details are as follows:
- Linux: Ubuntu Server 11.10 64-bit oneiric
- Proxy Server IP: 192.168.112.129
- Storage Server One: 192.168.112.130
- Storage Server Two: 192.168.112.131
- Storage Server Three: 192.168.112.132
- Keystone Server IP: 192.168.112.20.
- Official documentation: www.openstack.org
- Reference: http://keystone.openstack.org/installing.html
- Swift version: 1.4.8
- Keystone version: 2012.2
2. Create swift users for each machine
- Sudo useradd-mk/home/swift/-s/bin/bash swift
- Sudo passwd swift # Add a password for a swift user. Here I set it to swift
- Edit the/etc/sudoer file and add the following code at the end of the file:
- Swift ALL = (ALL) NOPASSWD: ALL
3. Download the source code (for swift Users)
- 1. Install the git Tool
- Sudo apt-get install git-core
- 2. Download keystone and swift source code from the Proxy Machine
- Su swift # Switch to swift user
- Sudo mkdir/home/swift/openstack # create a directory to store
- Cd/home/swift/openstack
- Git clone https://github.com/openstack/swift.git # download swift
- Cd swift
- Git checkout 1.4.8 # Use version 1.4.8. You can
- # Use the git tag command to view the number of versions
- Git clone https://github.com/openstack/keystone.git
- Cd keystone
- Git checkout 75a8dfe
- 3. Download swift from the machine on each Storage Node
- Su swift # Switch to swift user
- Sudo mkdir/home/swift/openstack # create a directory to store
- Cd/home/swift/openstack
- Git clone https://github.com/openstack/swift.git # download swift
- Cd swift
- Git checkout 1.4.8 # Use version 1.4.8. You can
- # Use the git tag command to view the number of versions
- 4. Download keystone and python-keystoneclient from the host of the Auth (keystone) node
- Su swift # Switch to swift user
- Sudo mkdir/home/swift/openstack # create a directory to store
- Cd/home/swift/openstack
- Git clone https://github.com/openstack/keystone.git
- Cd keystone
- Git checkout 75a8dfe
- Git clone https://github.com/openstack/python-keystoneclient.git
- Cd/home/swift/openstack/python-keystoneclient