Skip to content

Instantly share code, notes, and snippets.

@congto
Created April 7, 2014 07:23
Show Gist options
  • Save congto/10016034 to your computer and use it in GitHub Desktop.
Save congto/10016034 to your computer and use it in GitHub Desktop.

Install latest Openstack Swift(Havana) and Gluster-Swift on RHEL 6.4

Install EPEL repo:

wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm

Install Openstack Repo:

cd /etc/yum.repos.d
wget http://repos.fedorapeople.org/repos/openstack/openstack-trunk/el6-openstack-trunk.repo

Install glusterfs Repo:

cd /etc/yum.repos.d
wget http://download.gluster.org/pub/gluster/glusterfs/LATEST/RHEL/glusterfs-epel.repo

Check if EPEL, glusterfs, and Openstack repos have been installed correctly:

yum repolist

repo id               repo name                                                         status
el6-openstack-trunk   Openstack Upstream Repository for EL6                              6,501
epel                  Extra Packages for Enterprise Linux 6 - x86_64                     9,806
glusterfs-epel        GlusterFS is a clustered file-system capable of scaling to severa     11
glusterfs-noarch-epel GlusterFS is a clustered file-system capable of scaling to severa      1
openstack-havana      OpenStack Havana Repository for EPEL 6                               357
rhel-x86_64-server-6  Red Hat Enterprise Linux Server (v. 6 for 64-bit x86_64)          11,029
repolist: 27,705

Install Openstack Swift

yum --enablerepo=openstack-havana install openstack-swift openstack-swift-account openstack-swift-proxy openstack-swift-container openstack-swift-object

Install gluster-swift from latest builds here: http://build.gluster.org/ As of now, RHEL6 RPMs are available only for grizzly version. We can just go ahead and use fedora builds for now. Alternatively, you can get the gluster-swift source code and run makerpm.sh in RHEL box.

yum install rpm-build git-core
git clone https://github.com/gluster/gluster-swift
cd gluster-swift
git checkout master
chmod +x ./makerpm.sh
./makerpm.sh
rpm -ivh --nodeps ./build/glusterfs-openstack-swift-1.9.1-0.el6.noarch.rpm

The --nodeps option is mentioned as gluster-swift has hardcoded dependency on swift 1.9.1

Installing glusterfs

yum --enablerepo=glusterfs-epel install glusterfs glusterfs-server glusterfs-cli

To perform the following tasks:

  • Create volumes and start
  • Copy and rename conf files in /etc/swift
  • Generate ring files

Follow the Quick Start Guide here : https://github.com/gluster/gluster-swift/blob/master/doc/markdown/quick_start_guide.md

Troubleshooting

If you have python-jinja2 as missing dependency, you can install python-jinja2 from here: http://rpm.pbone.net/index.php3/stat/4/idpl/18007532/dir/redhat_el_6/com/python-jinja2-2.2.1-1.el6.rf.x86_64.rpm.html

yum install ftp://ftp.univie.ac.at/systems/linux/dag/redhat/el6/en/x86_64/dag/RPMS/python-jinja2-2.2.1-1.el6.rf.x86_64.rpm

If you are unable to find mkfs.xfs command, you'll have to install xfsprogs package from here:

http://rpmfind.net/linux/rpm2html/search.php?query=xfsprogs 

If the logs in /var/log/httpd contain [Errno 111] ECONNREFUSED, you need to set selinux to permissive or disabled by editing /ets/sysconfig/selinux and verify by running:

getenforce

What next ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment