Ask Your Question
0

Vagrant/chef virtual setup fails

asked 2011-03-11 13:42:19 -0500

lorinh gravatar image

Tried to run OpenStack on my OSX machine using Vagrant and Chef, following instructions from: http://ansolabs.com/articles/single-node-nova-installation-using-vagrant-and-chef (http://ansolabs.com/articles/single-n...) .

I'm getting errors that seem to be related to the openstack-dashboard not being installed properly.

Here's a fragment of the output after doing "vagrant up"

Using /usr/lib/python2.6/dist-packages Finished processing dependencies for django-nova==0.1 [Fri, 11 Mar 2011 12:30:26 +0000] DEBUG: STDERR: [Fri, 11 Mar 2011 12:30:26 +0000] DEBUG: ---- End output of python setup.py develop ---- [Fri, 11 Mar 2011 12:30:26 +0000] DEBUG: Ran python setup.py develop returned 0 [Fri, 11 Mar 2011 12:30:26 +0000] INFO: Ran execute[python setup.py develop] successfully [Fri, 11 Mar 2011 12:30:26 +0000] DEBUG: Processing execute[pip install -r /srv/openstack-dashboard/tools/pip-requires] on http://maverick.hsd1.ca.comcast.net . [Fri, 11 Mar 2011 12:30:26 +0000] DEBUG: Executing pip install -r /srv/openstack-dashboard/tools/pip-requires : stdout [0K[default] [Fri, 11 Mar 2011 12:30:27 +0000] DEBUG: ---- Begin output of pip install -r /srv/openstack-dashboard/tools/pip-requires ---- [Fri, 11 Mar 2011 12:30:27 +0000] DEBUG: STDOUT: Exception: Traceback (most recent call last): File "/usr/lib/pymodules/python2.6/pip/basecommand.py", line 120, in main self.run(options, args) File "/usr/lib/pymodules/python2.6/pip/commands/install.py", line 158, in run for req in parse_requirements(filename, finder=finder, options=options): File "/usr/lib/pymodules/python2.6/pip/req.py", line 1344, in parse_requirements filename, content = get_file_content(filename, comes_from=comes_from) File "/usr/lib/pymodules/python2.6/pip/util.py", line 305, in get_file_content f = open(url) IOError: [Errno 2] No such file or directory: '/srv/openstack-dashboard/tools/pip-requires'

Storing complete log in /home/vagrant/.pip/pip.log

This seems to break the installation process. I can "vagrant ssh" successfully to get into the VirtualBox VM, but from there the /vagrant/novarc file is not there, and trying to launch an instance fails.

Here's the version of openstack-cookbooks I'm using:

[lorin@macbook openstack-cookbooks]$ git show commit 0ee0cfc4e2ffae3c70ff4e844f61fde45cf57237 Author: termie github@anarkystic.com Date: Tue Mar 8 15:32:40 2011 -0800

remove branching of django-nova from dashboard

Here's the full output from doing "vagrant up":

[lorin@macbook ~]$ cd chef [lorin@macbook chef]$ vagrant up

[0K[default] Provisioning enabled with chef_solo...

[0K[default] Importing base box 'base'...

[0KProgress: 0% [0KProgress: 14% [0KProgress: 28% [0KProgress: 30% [0KProgress: 34% [0KProgress: 35% [0KProgress: 39% [0KProgress: 44% [0KProgress: 45% [0KProgress: 49% [0KProgress: 50% [0KProgress: 54% [0KProgress: 55% [0KProgress: 65% [0KProgress: 70% [0KProgress: 75% [0KProgress: 99% [0K[default] Matching MAC address for NAT networking... [33m [0K[default] The guest additions on this VM do not match the install version of VirtualBox! This may cause things such as forwarded ports, shared folders, and more to not work properly. If any of those things fail on this machine, please update the guest additions and repackage the box.

Guest Additions Version: 4.0.2 VirtualBox ... (more)

edit retag flag offensive close merge delete

10 answers

Sort by ยป oldest newest most voted
0

answered 2011-03-12 00:36:00 -0500

lorinh gravatar image

This works for me now, thanks.

edit flag offensive delete link more
0

answered 2011-03-14 23:22:25 -0500

lorinh gravatar image

Thanks Vish Ishaya, that solved my question.

edit flag offensive delete link more
0

answered 2011-03-11 13:46:20 -0500

lorinh gravatar image

Here's my nova version info (from the ~/aptcache/archives directory):

[lorin@macbook archives]$ ls nova.deb nova-api_2011.1-anso~dev~bzr634-maverick_all.deb nova-api_2011.1-anso~dev~bzr635-maverick_all.deb nova-common_2011.1-anso~dev~bzr634-maverick_all.deb nova-common_2011.1-anso~dev~bzr635-maverick_all.deb nova-compute_2011.1-anso~dev~bzr634-maverick_all.deb nova-compute_2011.1-anso~dev~bzr635-maverick_all.deb nova-network_2011.1-anso~dev~bzr634-maverick_all.deb nova-network_2011.1-anso~dev~bzr635-maverick_all.deb nova-objectstore_2011.1-anso~dev~bzr634-maverick_all.deb nova-objectstore_2011.1-anso~dev~bzr635-maverick_all.deb nova-scheduler_2011.1-anso~dev~bzr634-maverick_all.deb nova-scheduler_2011.1-anso~dev~bzr635-maverick_all.deb nova-volume_2011.1-anso~dev~bzr634-maverick_all.deb nova-volume_2011.1-anso~dev~bzr635-maverick_all.deb python-nova_2011.1-anso~dev~bzr634-maverick_all.deb python-nova_2011.1-anso~dev~bzr635-maverick_all.deb

edit flag offensive delete link more
0

answered 2011-03-11 17:15:22 -0500

vishvananda gravatar image

Thanks for the heads up guys. There were actually two issues due to recent code changes

1) openstack-django moved inside the openstack-dashobard repo

2) lock_path is required in nova.conf

Both of these issues have been resolved and you should be able to use the instructions now.

Vish

On Mar 11, 2011, at 7:55 AM, christoph12 wrote:

Question #148698 on OpenStack Compute (nova) changed: https://answers.launchpad.net/nova/+q...

christoph12 posted a new comment: Hi!

I have the same problem. I edited the vagrantfile and changed

anso::devpackages to anso::packages

Now the installation seems to go through but halts on installing the dashboard.

---- Begin output of pip install -r /srv/openstack-dashboard/tools/pip-requires ---- STDOUT: Exception: Traceback (most recent call last): File "/usr/lib/pymodules/python2.6/pip/basecommand.py", line 120, in main self.run(options, args) File "/usr/lib/pymodules/python2.6/pip/commands/install.py", line 158, in run for req in parse_requirements(filename, finder=finder, options=options): File "/usr/lib/pymodules/python2.6/pip/req.py", line 1344, in parse_requirements filename, content = get_file_content(filename, comes_from=comes_from) File "/usr/lib/pymodules/python2.6/pip/util.py", line 305, in get_file_content f = open(url) IOError: [Errno 2] No such file or directory: '/srv/openstack-dashboard/tools/pip-requires'

Storing complete log in /home/vagrant/.pip/pip.logSTDERR: ---- End output of pip install -r /srv/openstack-dashboard/tools/pip-requires ----

Please advise.

Thanks

Christoph

You received this question notification because you are a member of Nova Core, which is an answer contact for OpenStack Compute (nova).

edit flag offensive delete link more
0

answered 2011-03-11 15:13:51 -0500

lorinh gravatar image

Vish,

I see that you edited server.rb to use anso::packages instead anso::devpackages, but solo.rb still uses anso::devpackages. I'm using solo.rb since I'm running single node. Should solo.rb be changed as well?

(I'm still getting the same error, but I'll do a proper wipe of aptcache and try again a little later...)

edit flag offensive delete link more
0

answered 2011-03-11 14:18:05 -0500

vishvananda gravatar image

Hey,

I fixed the code yesterday Vagrantfile to pull the proper branch and uploaded packages. This should work now. You might want to re-grab the Vagrantfile (that is re-run the curl command that dowloads it) and make sure do a git pull in openstack-cookbooks.

Vish

On Mar 11, 2011, at 5:46 AM, Lorin Hochstein wrote:

Question #148698 on OpenStack Compute (nova) changed: https://answers.launchpad.net/nova/+q...

Lorin Hochstein gave more information on the question: Here's my nova version info (from the ~/aptcache/archives directory):

[lorin@macbook archives]$ ls nova.deb nova-api_2011.1-anso~dev~bzr634-maverick_all.deb nova-api_2011.1-anso~dev~bzr635-maverick_all.deb nova-common_2011.1-anso~dev~bzr634-maverick_all.deb nova-common_2011.1-anso~dev~bzr635-maverick_all.deb nova-compute_2011.1-anso~dev~bzr634-maverick_all.deb nova-compute_2011.1-anso~dev~bzr635-maverick_all.deb nova-network_2011.1-anso~dev~bzr634-maverick_all.deb nova-network_2011.1-anso~dev~bzr635-maverick_all.deb nova-objectstore_2011.1-anso~dev~bzr634-maverick_all.deb nova-objectstore_2011.1-anso~dev~bzr635-maverick_all.deb nova-scheduler_2011.1-anso~dev~bzr634-maverick_all.deb nova-scheduler_2011.1-anso~dev~bzr635-maverick_all.deb nova-volume_2011.1-anso~dev~bzr634-maverick_all.deb nova-volume_2011.1-anso~dev~bzr635-maverick_all.deb python-nova_2011.1-anso~dev~bzr634-maverick_all.deb python-nova_2011.1-anso~dev~bzr635-maverick_all.deb


You received this question notification because you are a member of Nova Core, which is an answer contact for OpenStack Compute (nova).

edit flag offensive delete link more
0

answered 2011-03-11 15:33:57 -0500

vishvananda gravatar image

It should be using packages, I will change it. Let me know if it works for you.

Vish

On Mar 11, 2011, at 7:13 AM, Lorin Hochstein wrote:

Question #148698 on OpenStack Compute (nova) changed: https://answers.launchpad.net/nova/+q...

Status: Answered => Open

Lorin Hochstein is still having a problem: Vish,

I see that you edited server.rb to use anso::packages instead anso::devpackages, but solo.rb still uses anso::devpackages. I'm using solo.rb since I'm running single node. Should solo.rb be changed as well?

(I'm still getting the same error, but I'll do a proper wipe of aptcache and try again a little later...)


You received this question notification because you are a member of Nova Core, which is an answer contact for OpenStack Compute (nova).

edit flag offensive delete link more
0

answered 2011-03-11 15:55:11 -0500

Hi!

I have the same problem. I edited the vagrantfile and changed

anso::devpackages to anso::packages

Now the installation seems to go through but halts on installing the dashboard.

---- Begin output of pip install -r /srv/openstack-dashboard/tools/pip-requires ---- STDOUT: Exception: Traceback (most recent call last): File "/usr/lib/pymodules/python2.6/pip/basecommand.py", line 120, in main self.run(options, args) File "/usr/lib/pymodules/python2.6/pip/commands/install.py", line 158, in run for req in parse_requirements(filename, finder=finder, options=options): File "/usr/lib/pymodules/python2.6/pip/req.py", line 1344, in parse_requirements filename, content = get_file_content(filename, comes_from=comes_from) File "/usr/lib/pymodules/python2.6/pip/util.py", line 305, in get_file_content f = open(url) IOError: [Errno 2] No such file or directory: '/srv/openstack-dashboard/tools/pip-requires'

Storing complete log in /home/vagrant/.pip/pip.logSTDERR: ---- End output of pip install -r /srv/openstack-dashboard/tools/pip-requires ----

Please advise.

Thanks

Christoph

edit flag offensive delete link more
0

answered 2011-03-11 17:26:21 -0500

Vish,

thanks. It now worked. I have installed it in Virtualbox on my Mac. However, when starting a test instance, the instance remains in the state "networking". Do you lnow what this could be related to? I followed the exact instructions at http://ansolabs.com/articles/single-node-nova-installation-using-vagrant-and-chef.html (http://ansolabs.com/articles/single-n...) .

Thanks

Christoph

edit flag offensive delete link more
0

answered 2011-03-11 17:44:51 -0500

vishvananda gravatar image

I'm not running into that error, so you might want to just try a vagrant destroy / vagrant up

If you are still seeing the error, check /var/log/nova/nova-compute.log for errors. Either there should be a traceback or somehow the message isn't making it to nova-network (i.e. it is not running or some such)

Vish

On Mar 11, 2011, at 9:26 AM, christoph12 wrote:

Question #148698 on OpenStack Compute (nova) changed: https://answers.launchpad.net/nova/+q...

christoph12 requested for more information: Vish,

thanks. It now worked. I have installed it in Virtualbox on my Mac. However, when starting a test instance, the instance remains in the state "networking". Do you lnow what this could be related to? I followed the exact instructions at http://ansolabs.com/articles/single- node-nova-installation-using-vagrant-and-chef.html.

Thanks

Christoph


You received this question notification because you are a member of Nova Core, which is an answer contact for OpenStack Compute (nova).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-03-11 13:42:19 -0500

Seen: 109 times

Last updated: Mar 14 '11