echeadle (87) [Avatar] Offline
#1
These steps worked for me.

User=root system=RHEL 6.5 installation=min

1. subscription-manager config --server.proxy_hostname=<FQDN of your proxy> --server.proxy_port=<your proxy port> --server.proxy_user= --server.proxy_password=<password of the proxy user>
2. subscription-manager register
3. subscription-manager attach --auto
4. subscription-manager repos --enable rhel-6-server-optional-rpms
5. echo "proxy=http://<FQDN of your proxy>:<your proxy port number> >> /etc/yum.conf
6. yum update
7. yum –y install git
8. install haproxy <<--We are customers and I had to contact Red Hat to get this rpm.
yum localinstall <path to haproxy>
9. yum install iproute
10. git config --global http.proxy http://<fqdn of your proxy>:<Your Proxy Port>
11. git clone https://github.com/openstack-dev/devstack.git -b stable/icehouse ~/devstack/

THESE NEXT TWO STEPS WERE SUGGESTED BY Mirto: THANKS! It saved me lots of time. See his posts for details.
----------------------------------------------------------
12. Edit /root/.gitconfig and add the following lines:
[core]
autocrlf = false
13. chmod a+x /root
----------------------------------------------------------
14. cd devstack
15. tools/create-stack-user.sh
16. chown -R stack:stack devstack/
17. su stack

User=stack
1. Add STACK_USER=stack to /root/devstack/stackrc
2. export http_proxy=http://<your proxy>:<your port>
3. export https_proxy=https://<your proxy>:<your port>
4. export no_proxy=localhost,127.0.0.1,localaddress,.localdomain.com,<your server's ip address>
5. Create local.conf file and add:

[[local|localrc]]

ADMIN_PASSWORD=devstack
MYSQL_PASSWORD=devstack
RABBIT_PASSWORD=devstack
SERVICE_PASSWORD=devstack
SERVICE_TOKEN=token

disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service neutron
enable_service tempest

HOST_IP=10.22.40.32
#Changed 5/23/2014 I removed the following three lines
#FLOATING_RANGE=192.168.1.0/24
#PUBLIC_NETWORK_GATEWAY=192.168.1.1
#FIXED_RANGE=10.0.0.0/24

NOVA_BRANCH=stable/icehouse
CINDER_BRANCH=stable/icehouse
GLANCE_BRANCH=stable/icehouse
HORIZON_BRANCH=stable/icehouse
KEYSTONE_BRANCH=stable/icehouse
NEUTRON_BRANCH=stable/icehouse

#CINDER
VOLUME_BACKING_FILE_SIZE=102400M

#NEUTRON CONFIG
Q_USE_DEBUG_COMMAND=True

#GENERAL
API_RATE_LIMIT=False
#SKIP_EXERCISES=bundle,euca,client-env

LOGFILE=/opt/stack/logs/stack.sh.log
VERBOSE=True
LOG_COLOR=False
SCREEN_LOGDIR=/opt/stack/logs

# Timeouts
ACTIVE_TIMEOUT=120
ASSOCIATE_TIMEOUT=60
BOOT_TIMEOUT=120
SERVICE_TIMEOUT=120

6. Edit /root/devstack/stackrc
Change: GIT_BASE=${GIT_BASE:-git://git.openstack.org}
to :GIT_BASE=${GIT_BASE:-http://git.openstack.org}

7. Edit the .wgetrc file. Notice that if you do a cd ~/ you get to /opt/stack/. So this is the place you need to have the .wgetrc file so that when you run wget it picks up the setting in this file.
So run the command: vi ~/.wgetrc
Add the following lines:
http_proxy=http://<fqdn of your proxy>:<your port number>
https_proxy=https://<fqdn of your proxy>:<your port number>
proxy-user=<an account that can access the proxy>
proxy-password=<password of the account that has access to the proxy>

After all these steps I then run:
8. ./stack.sh

After stack.h runs, iptables will be updated. To connect the internal network to the real world you need to run:

sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

Message was edited by:
echeadle
cody.bumgardner (57) [Avatar] Offline
#2
Re: Installation for RHEL 6.5
echeadle,

This will be very useful! There is a good chance RHEL will be used in the last part of the book for the commercial/production deployment. This would be part of an automated deployment, but an appendix on RHEL Devstack might bridge the gap.

Thanks!

Cody