echeadle (87) [Avatar] Offline
#1
This is a work in progress, I have solved a number of issues related to proxies, but I have not solved every issue. I am getting close to figuring out how to install devstack on an RHEL 6.5 system behind a corporate proxy. At the moment, all the software installs, but the system fails to start because some gateway is not being configured. This is Red Hat, but I think the information on wget proxies and the proxies for the user stack is good for just about all distributions. If anyone confirms or disproves anything, PLEASE POST!

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. git config --global http.proxy
http://<fqdn of your proxy>:<Your Proxy Port>
10. 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.
----------------------------------------------------------
11. Edit /root/.gitconfig and add the following lines:
[core]
autocrlf = false
12. chmod a+x /root
----------------------------------------------------------
13. cd devstack
14. tools/create-stack-user.sh
15. chown -R stack:stack devstack/
16. su stack
User=stack
1. Add STACK_USER=stack to /root/devstack/stack.sh
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
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}
I have seen where this line can be put in the local.conf file. I forgot to check out if it was in the [[local|localrc]] section or somewhere else. If someone figures it out, please post it.

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

At this point I am having problems with with the network starting. I don't think it has to do with the way I set up all the proxies, but until I figure it out there is a possibility.

I have several ways of installing openstack and in all of them I have had to figure out how to set-up various proxies. I set one up for subscription-manager, for yum, for git and for wget and for curl. After figuring out each one i was able to successfully install the software.

Right now neutron tells me the network gateway is wrong, so I have to now understand how to setup the network. If anyone figures out why the network won't configure, please let me know, If I figure it out, I will post it.

Message was edited by:
echeadle

Message was edited by:
echeadle

Message was edited by:
echeadle

Message was edited by:
echeadle

Message was edited by:
echeadle

Message was edited by:
echeadle
echeadle (87) [Avatar] Offline
#2
Re: Proxies Proxies everywhere
Cody, Maybe an appendix with installation recipes for different distributions might be useful, maybe called something like: How I did it.
I noticed on openstack.redhat.com or openstack.org the installation instructions are two or three lines that did not work for me. Certainly for the early adopters they deal with issues like the proxies without thinking about it, but for a wider audience, people that are new to the concepts, may not have the expertise. To draw them in, a recipe that has been shown to install, would allow them to get to software they are interested in without the frustration of figuring out the mechanics of things extraneous to what is most important: Openstack. Anyway if you can use any of the information in my posts, feel free to use any or all of it. It is the least I can give back for this book. I enjoy the MEAP concept. I have many MEAPS I am reading. This one has caught my interest because of the RoadMap you provided. I am in the midst of trying to gain interest throughout my company in Openstack and the plan outlined for your book hits all the points I want to make.
echeadle (87) [Avatar] Offline
#3
Re: Proxies Proxies everywhere
I solved the problem with the network issue I was having. I know a lot about networking and I was confused about why I was confused. It turns out I was not looking at the right error message. The network was not being created because RHEL6.5does not have the ip nms command. I had to install iproute and then everything worked. I am now continuing on in the book.
cody.bumgardner (57) [Avatar] Offline
#4
Re: Proxies Proxies everywhere
Great idea! This will work with out plans for the final part of the book.