Use Swauth to authenticate multiple nodes to install Swift in ipvtuserver11.10

Source: Internet
Author: User
1. Summary for more information about Ubuntu, see Ubuntu topics page http://www.linuxidc.com/topicnews.aspx? Tid = 2 all operations involved in this article are verified on the effectuserver11.1064-bit system. This article references InstructionsforaMultipleServerSwiftInstalla of Openstackswift. 1. Summary

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

All operations involved in this article are verified on the 64-bit Ubuntu Server 11.10 system. This article references Openstackswift's Instructions for a Multiple Server SwiftInstallation (Ubuntu) documentation. The details are as follows:

  1. Linux: Ubuntu Server 11.10 64-bit oneiric
  2. Proxy Server IP: 192.168.112.129
  3. Storage Server One: 192.168.112.130
  4. Storage Server Two: 192.168.112.131
  5. Storage Server Three: 192.168.112.132
  6. Official documentation: www.openstack.org
  7. Reference: http://swift.openstack.org/howto_installmultinode.html
  8. Swift version: 1.4.8
  9. Swauth version: 1.0.4

2. Install dependency packages for each machine
  1. Sudo apt-get -- option Dpkg: Options: = -- force-confold -- assume-yes update
  2. Sudo apt-get install pep8 pylint python-pip screen unzip wget psmisc git-core lsof openssh-server vim-nox locate python-virtualenv python-unittest2 iputils-ping wget curl tcpdump euca2ools python-setuptools python -dev python-lxml python-pastescript python-pastedeploy python-paste sqlite3 python-pysqlite2 python-sqlalchemy python-mysqldb python-webob python-greenlet python-routes libldap2-dev libsasl2-dev python-bcrypt curl gcc python- configobj python-coverage python-dev python-eventlet python-greenlet python-netifaces python-nose python-pastedeploy python-setuptools python-simplejson python-webob python-xattr sqlite3 xfsprogs

3. 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

4. Download the source code (for swift Users)

1. Download swauth and swift source code from the Proxy Machine

  1. Su swift # Switch to swift user
  2. Sudo mkdir/home/swift/openstack # create a directory to store
  3. Cd/home/swift/openstack
  4. Git clone https://github.com/openstack/swift.git # download swift
  5. Cd swift
  6. Git checkout 1.4.8 # Use version 1.4.8. You can
  7. # Use the git tag command to view the number of versions
  8. Git clone https://github.com/gholt/swauth.git # download swauth
  9. Cd swauth
  10. Git checkout 1.0.4

2. Download swift from the machine on each Storage Node
  1. Su swift # Switch to swift user
  2. Sudo mkdir/home/swift/openstack # create a directory to store
  3. Cd/home/swift/openstack
  4. Git clone https://github.com/openstack/swift.git # download swift
  5. Cd swift
  6. Git checkout 1.4.8 # Use version 1.4.8. In the swift directory, you can run the git tag command to check the number of versions.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.