Ask Your Question
0

set up dev environment and run nova on mac

asked 2011-09-26 21:24:57 -0500

ykliu711 gravatar image

Hi,

I'm trying to set up a development environment and run nova on my MacBook Pro.

I followed the instructions on http://wiki.openstack.org/HackingNovaMacOSX (http://wiki.openstack.org/HackingNova...) , and have set up the development environment on my mac.

After that, how do I run nova on my mac? should I follow the instructions on http://nova.openstack.org/quickstart.html (http://nova.openstack.org/quickstart....) in order to run nova on my mac? I followed the instructions on this website and did ./nova.sh branch ./nova.sh install but it gave me many errors. I'm wondering whether I should do something different, or follow other documents.

Thank you. Jerry

edit retag flag offensive close merge delete

10 answers

Sort by ยป oldest newest most voted
0

answered 2011-09-27 06:37:47 -0500

ykliu711 gravatar image

Great! Thank you, Anne. Jerry

edit flag offensive delete link more
0

answered 2011-09-26 23:23:03 -0500

ykliu711 gravatar image

Hey Vish,

Thank you for your answer. I have VMware Fusion running on my mac, so I can install ubuntu on this vm. Is there any particular version of ubuntu that is best for nova?

jerry

edit flag offensive delete link more
0

answered 2011-09-27 02:41:54 -0500

annegentle gravatar image

Hi Jerry - Any version of Ubuntu later than 10.10 will have packages enabled but probably starting with 11.04 Natty will be a good starting point.

Anne

edit flag offensive delete link more
0

answered 2011-10-04 21:18:08 -0500

ykliu711 gravatar image

I followed the instructions on http://github.com/vishvananda/novascript/ (http://github.com/vishvananda/novascr...) , and it works now.

Thank you. Jerry

edit flag offensive delete link more
0

answered 2011-09-26 22:08:51 -0500

vishvananda gravatar image

Hey Jerry,

Nova doesn't actually run on mac osx. With a bunch of flags, you can get kind of a fake version running, but you will have a lot more luck running it in a virtual machine. I do some basic development and testing on my root osx, but most of my dev work I do in an ubuntu vm running in virtualbox.

Vish

On Sep 26, 2011, at 2:25 PM, Jerry Liu wrote:

New question #172409 on OpenStack Compute (nova): https://answers.launchpad.net/nova/+q...

Hi,

I'm trying to set up a development environment and run nova on my MacBook Pro.

I followed the instructions on http://wiki.openstack.org/HackingNova... , and have set up the development environment on my mac.

After that, how do I run nova on my mac? should I follow the instructions on http://nova.openstack.org/quickstart.... in order to run nova on my mac? I followed the instructions on this website and did ./nova.sh branch ./nova.sh install but it gave me many errors. I'm wondering whether I should do something different, or follow other documents.

Thank you. Jerry


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-09-27 08:25:02 -0500

vishvananda gravatar image

I use maverick, although i think most people have switched over to natty. Lucid will work as well, but it needs a lot of dependencies.

To install nova in development mode, you can use my script here: http://github.com/vishvananda/novascr...

There is also a lot of effort going into a replacement that installs and runs everything from source here: http://devstack.org/

I expect that will replace my novascript above in the near future.

Vish

On Sep 26, 2011, at 3:10 PM, Vish Ishaya wrote:

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

Status: Open => Answered

Vish Ishaya proposed the following answer: Hey Jerry,

Nova doesn't actually run on mac osx. With a bunch of flags, you can get kind of a fake version running, but you will have a lot more luck running it in a virtual machine. I do some basic development and testing on my root osx, but most of my dev work I do in an ubuntu vm running in virtualbox.

Vish

On Sep 26, 2011, at 2:25 PM, Jerry Liu wrote:

New question #172409 on OpenStack Compute (nova): https://answers.launchpad.net/nova/+q...

Hi,

I'm trying to set up a development environment and run nova on my MacBook Pro.

I followed the instructions on http://wiki.openstack.org/HackingNova... , and have set up the development environment on my mac.

After that, how do I run nova on my mac? should I follow the instructions on http://nova.openstack.org/quickstart.... in order to run nova on my mac? I followed the instructions on this website and did ./nova.sh branch ./nova.sh install but it gave me many errors. I'm wondering whether I should do something different, or follow other documents.

Thank you. Jerry


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


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-09-27 21:06:07 -0500

ykliu711 gravatar image

Thank you, Vish, for your message and the script. I've installed ubuntu 11.04 on my vmware fusion.

I then did curl -OL https://raw.github.com/vishvananda/novascript/master/nova.sh (https://raw.github.com/vishvananda/no...) chmod 755 nova.sh ./nova.sh branch ./nova.sh install

However, when I did sudo ./nova.sh run I got

export PATH=/home/jerry/Documents/openstack/nova/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin;. /home/jerry/Documents/openstack/nova/novarc root@jerry-virtual-machine:~/Documents/openstack# export PATH=/home/jerry/Documents/openstack/nova/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin;. /home/jerry/Documents/openstack/nova/novarc bash: /home/jerry/Documents/openstack/nova/novarc: No such file or directory root@jerry-virtual-machine:~/Documents/openstack# echo $PATH /home/jerry/Documents/openstack/nova/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin

It seems that there is a space between /usr/X11R6/bin;. and /home/jerry/Documents/openstack/nova/novarc

And there is no novarc file under the nova directory.

Jerry

edit flag offensive delete link more
0

answered 2011-09-27 22:55:59 -0500

ykliu711 gravatar image

I then tried http://devstack.org , and entered git clone git://github.com/cloudbuilders/devstack.git cd devstack; ./stack.sh

However, I got the following flags:

Failed to add image. Got error: Internal Server error: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 336, in handle_one_response result = self.application(self.environ, start_response) File "/usr/lib/pymodules/python2.7/webob/dec.py", line 147, in __call__ resp = self.call_func(req, args, *self.kwargs) File "/usr/lib/pymodules/python2.7/webob/dec.py", line 208, in call_func return self.func(req, args, *kwargs) File "/opt/stack/glance/glance/common/wsgi.py", line 113, in __call__ response = req.get_response(self.application) File "/usr/lib/pymodules/python2.7/webob/request.py", line 1053, in get_response application, catch_exc_info=False) File "/usr/lib/pymodules/python2.7/webob/request.py", line 1022, in call_application app_iter = application(self.environ, start_response) File "/usr/lib/pymodules/python2.7/webob/dec.py", line 147, in __call__ resp = self.call_func(req, args, *self.kwargs) File "/usr/lib/pymodules/python2.7/webob/dec.py", line 208, in call_func return self.func(req, args, *kwargs) File "/opt/stack/glance/glance/common/wsgi.py", line 110, in __call__ response = self.process_request(req) File "/opt/stack/glance/glance/common/context.py", line 111, in process_request raise exception.NotAuthorized() NotAuthorized: None

Note: Your image metadata may still be in the registry, but the image's status will likely be 'killed'.

It seems that it uses python 2.7. Should I install and use python 2.6?

Thanks, Jerry

edit flag offensive delete link more
0

answered 2011-09-27 23:10:50 -0500

ykliu711 gravatar image

I did apt-get update; apt-get install python2.6 then sudo ./stack.sh now the flags are gone, and the problems are solved.

Thank you, anyway. Jerry

edit flag offensive delete link more
0

answered 2011-09-29 21:08:21 -0500

ykliu711 gravatar image

Hello,

After I did "sudo ./stack.sh", I got the following message at the end:

  • screen -d -m -S nova -t nova
  • sleep 1
  • [[ g-api,g-reg,key,n-api,n-cpu,n-net,n-sch,n-vnc,dash,mysql,rabbit,munin =~ g-reg ]]
  • screen_it g-reg 'cd /opt/stack/glance; bin/glance-registry --config-file=etc/glance-registry.conf' ++ echo -ne '\015'
  • NL=$'\r'
  • [[ g-api,g-reg,key,n-api,n-cpu,n-net,n-sch,n-vnc,dash,mysql,rabbit,munin =~ g-reg ]]
  • screen -S nova -X screen -t g-reg There are several suitable screens on: 7286.nova (09/27/2011 04:04:05 PM) (Detached) 3834.nova (09/27/2011 03:47:14 PM) (Detached) Use -S to specify a session.

Am I at the point to access dashboard? If so, what port number should I use? I tried http://127.0.0.1:3834 and http://127.0.0.1:7286 , but was unable to connect. I also tried "screen -S 7286.nova -X screen -t g-reg", but no screen session was found.

Thank you. Jerry

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-09-26 21:24:57 -0500

Seen: 199 times

Last updated: Oct 04 '11