echeadle (87) [Avatar] Offline
#1
I changed the local.conf file to use icehouse instead of havana, so I don't know if any of this has to do with this change, but when I run stack.h I get asked for passwords even though I have defined them on local.conf. The local.conf file is in /root/devstack. When I run stack.sh, in the verbiage before i put in my password it talks about if i enter a password it will be added to a localrc file. Well I had to run stack.sh several times. Each time the password section ran and never did the script create the localrc file. I created a localrc file and put the passwords in it. That did work. In the local.conf file there is a header [[local]|[local.conf]]. I tried localrc inaddition to local and in place of local. Nothing seems to work until I put the passwords in localrc. Somewhere I read the localrc was being deprecated and I was supposed to use the local.conf. This file does not seem to work as advertised.

Also my machine is behind a proxy. I used mirto's information to get started, but when I run the stack.sh script it fails at:
git clone git://git.openstack.org/openstack/requirements.git /opt/stack/requirements
I looked in the stackrc file and it shows:

# Repositories
# ------------

# Base GIT Repo URL
# Another option is http://review.openstack.org/p
GIT_BASE=${GIT_BASE:-git://git.openstack.org}

I tried using git --gloabal command that mirto uses and it fails. It seems to run when I replace the git:// with http:// I create and environment variable http_proxy and https:proxy and this combination seems to work.

Currently my last issue is the mysql database. I canot figure out how to grant the root access to the pool. I will work on this some more.

All in all I have not been successfull installing openstack but I have found some ways not to do it. It has been interesting.

Message was edited by:
echeadle
NathanH (4) [Avatar] Offline
#2
Re: Installation and proxies and localrc file
I've run into some similar issues. I figured out the issue with the local.conf file not being picked up by changing the header to:

[[local|localrc]] ( see http://devstack.org/configuration.html )

however now when I run exercise.sh most of the components fail.

SKIP docker
SKIP swift
SKIP trove
PASS aggregates
PASS client-args
PASS client-env
PASS sec_groups
FAILED boot_from_volume
FAILED bundle
FAILED euca
FAILED floating_ips
FAILED horizon
FAILED neutron-adv-test
FAILED volumes


I /think/ it has to do with networking, as I'm seeing a lot of 'Cannot open network namespace' and 'couldn't ping server' messages, but I have not been able to track it down yet. I did try with Ubuntu 14.04. I'm building a new VM with 12.4 in case that had any effect on it.
echeadle (87) [Avatar] Offline
#3
Re: Installation and proxies and localrc file
NathanH. I thought I tried the [[local|localrc]] and it did not work. I did see the url you mentioned and I tried to use the local.conf file in that article and it did not work. I will go back and try it again.

Well darn, you are right. I made a silly mistake. I had for some reason used local.rc and did not notice. I appreciate the comment.

Right now I am failing on installing haproxy and the the note:
2014-05-05 18:02:37.119 | [ERROR] /root/devstack/functions-common:960 Missing packages detected

So it is back to the drawing boards. Again thanks for taking time to write.
cody.bumgardner (57) [Avatar] Offline
#4
Re: Installation and proxies and localrc file
Hi All,

Yesterday, I went into the lab to review issues posted about Chapter 2. To my surprise incorrect/old listings and configs made it into the version of Chapter 2 that was submitted to the MEAP. I expect this was related to having to change listings around for a XML to PDF rendering issue. I apologize for this oversight and it will be corrected ASAP.

See Post:
http://www.manning-sandbox.com/thread.jspa?threadID=67555

Thanks for your patience,
Cody
echeadle (87) [Avatar] Offline
#5
Re: Installation and proxies and localrc file
This is fun stuff and it is a MEAP. The fact that there are a few bumps along the road should be expected by people or they probably should not buy MEAPS.

I am having lots of fun and I will check out the post. I'm very new to openstack and the information I have already learned is valuable.

Thanks for all the hard work doing the writing. I look forward to updates.

Message was edited by:
echeadle
NathanH (4) [Avatar] Offline
#6
Re: Installation and proxies and localrc file
Hey Cody,

Thanks for the update, and no prob. I'm already a little further in my understanding of Openstack then my previous attempt got me! smilie

Just an FYI: I checked out the source code on github, and it matches the current (incorrect) version in the book, however the .zip file contained different versions. They are still not working 100%, but look like they are closer. If those are the correct versions just let me know and I'll dig into it a little more. I don't want to spin my wheels on stuff we know is incorrect.

Looking forward to the next update!
echeadle (87) [Avatar] Offline
#7
Re: Installation and proxies and localrc file
I am able to run stack.sh and get everything installed, nothing works yet, but I am farther along. For some reason I do not get accounts created.

I think it has something to do with the proxies. I run the command: curl http://xx.xx.xx.xx:35357/v2.0 and it fails (xx=your ip address inserted here) I unset the two proxy variables, http_proxy and https_proxy and i get:

{"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}, {"base": "application/xml", "type": "application/vnd.openstack.identity-v2.0+xml"}], "id": "v2.0", "links": [{"href": "http://10.22.40.32:35357/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/api/openstack-identity-service/2.0/content/", "type": "text/html", "rel": "describedby"}, {"href": "http://docs.openstack.org/api/openstack-identity-service/2.0/identity-dev-guide-2.0.pdf", "type": "application/pdf", "rel": "describedby"}]}}[

I think the proxy I set is interfering with the creation of the admin account or the admin account is not being created for whatever reason. Maybe needs to be in the local.conf.

Anyway I am making progress.
cody.bumgardner (57) [Avatar] Offline
#8
Re: Installation and proxies and localrc file
Hi All,

The update to Chapter 2 should be out soon. The attached local.conf should work for Icehouse.

Thanks,
Cody
echeadle (87) [Avatar] Offline
#9
Re: Installation and proxies and localrc file
This thread has had a lot of views. Maybe I should have posted the How I did it here. Look at "Proxies Proxies everywhere" for the continuation of this thread. I listed a step by step of how solved the proxy issues. If anyone figures out how to get by the network problem I am having, please post that as well. If I figure it out, I will post it.
cody.bumgardner (57) [Avatar] Offline
#10
Re: Installation and proxies and localrc file
Problems still exist with Ubuntu 14.04 and DevStack.

http://www.manning-sandbox.com/thread.jspa?threadID=70294&tstart=0

With any luck this will be resolved soon.

Thanks,
Cody