echeadle (87) [Avatar] Offline
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 -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:
autocrlf = false
12. chmod a+x /root
13. cd devstack
14. tools/
15. chown -R stack:stack devstack/
16. su stack
1. Add STACK_USER=stack to /root/devstack/
2. export http_proxy=http://<your proxy>:<your port>
3. export https_proxy=https://<your proxy>:<your port>
4. export no_proxy=localhost,,localaddress,,<your server's ip address>
5. Create local.conf file and add:



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







# Timeouts

6. Edit /root/devstack/stackrc
Change: GIT_BASE=${GIT_BASE:-git://}
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. ./

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:

Message was edited by:

Message was edited by:

Message was edited by:

Message was edited by:

Message was edited by:
echeadle (87) [Avatar] Offline
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 or 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
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
Re: Proxies Proxies everywhere
Great idea! This will work with out plans for the final part of the book.