Ask Your Question
0

How to start nova services if we setup nova from github

asked 2013-03-21 16:00:38 -0500

sajuptpm gravatar image

updated 2014-07-15 10:54:11 -0500

smaffulli gravatar image

I am following below doc to setup Nova development environment. I installed nova successfully. Next i want to run all nova services, How do it ?? I am using Ubuntu 12.04 LTS

 saju@saju-desktop:~/openstk_manual/nova$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04 LTS Release: 12.04 Codename: precise

I tried

#source .venv/bin/activate
$ ./bin/nova-all

But getting following errors

  • Failed to load ec2-api, osapi_compute-api, metadata-api, nova-compute
  • ConfigNotFound: Could not find config at api-paste.ini
  • TRACE nova.service OperationalError: (OperationalError) no such table: services u'SELECT services.created_at

Steps I followed

sudo apt-get install python-dev libssl-dev python-pip git-core libxml2-dev libxslt-dev

#git clone https://github.com/openstack/nova.git
#cd nova
#python tools/install_venv.py

Successfully installed coverage discover feedparser fixtures mox MySQL-python psycopg2 pep8 pyflakes pylint python-subunit sphinx testrepository testtools logilab-common logilab-astng Pygments Jinja2 docutils extras Cleaning up...

Nova development environment setup is complete.

Nova development uses virtualenv to track and manage Python dependencies while in development and testing.

To activate the Nova virtualenv for the extent of your current shell session you can run:

$ source /home/saju/openstk_manual/nova/.venv/bin/activate

Or, if you prefer, you can run commands in the virtualenv on a case by case basis by running:

$ /home/saju/openstk_manual/nova/tools/with_venv.sh <your command>

Also, make test will automatically use the virtualenv.

#source .venv/bin/activate
$ ./bin/nova-all
ERRORS
(.venv)saju@saju-desktop:~/openstk_manual/nova$ ./bin/nova-all
2013-03-21 20:49:54.763 10926 ERROR nova.all [-] Failed to load ec2-api
2013-03-21 20:49:54.763 10926 TRACE nova.all Traceback (most recent call last):
2013-03-21 20:49:54.763 10926 TRACE nova.all   File "./bin/nova-all", line 67, in <module>
2013-03-21 20:49:54.763 10926 TRACE nova.all     server = service.WSGIService(api)
2013-03-21 20:49:54.763 10926 TRACE nova.all   File "/home/saju/openstk_manual/nova/nova/service.py", line 597, in __init__
2013-03-21 20:49:54.763 10926 TRACE nova.all     self.loader = loader or wsgi.Loader()
2013-03-21 20:49:54.763 10926 TRACE nova.all   File "/home/saju/openstk_manual/nova/nova/wsgi.py", line 469, in __init__
2013-03-21 20:49:54.763 10926 TRACE nova.all     raise exception.ConfigNotFound(path=config_path)
2013-03-21 20:49:54.763 10926 TRACE nova.all ConfigNotFound: Could not find config at api-paste.ini
2013-03-21 20:49:54.763 10926 TRACE nova.all 
2013-03-21 20:49:54.791 10926 ERROR nova.all [-] Failed to load osapi_compute-api
2013-03-21 20:49:54.791 10926 TRACE nova.all Traceback (most recent call last):
2013-03-21 20:49:54.791 10926 TRACE nova.all   File "./bin/nova-all", line 67, in <module>
2013-03-21 20:49:54.791 10926 TRACE nova.all     server = service.WSGIService(api)
2013-03-21 20:49:54.791 10926 TRACE nova.all   File "/home/saju/openstk_manual/nova/nova/service.py", line 597, in __init__
2013-03-21 20:49:54.791 10926 TRACE nova.all     self.loader = loader or wsgi.Loader()
2013-03-21 20:49:54.791 10926 TRACE nova.all   File "/home/saju/openstk_manual/nova ...
(more)
edit retag flag offensive close merge delete

Comments

did you use the Ubuntu or others, which version?

zzs gravatar imagezzs ( 2013-03-21 20:05:39 -0500 )edit

Hmmm, it strange, had you ever installed the Openstack components before, if not, the error message should not like this. Anyway, yes, please check the Devstack for detailed information of nova configuration.

zzs gravatar imagezzs ( 2013-03-22 22:52:50 -0500 )edit

11 answers

Sort by ยป oldest newest most voted
0

answered 2013-03-26 13:23:37 -0500

sajuptpm gravatar image

Hi,

Current issue I am facing is OSError: [Errno 2] No such file or directory: '/home/saju/openstk_manual/nova/instances' when runniing ./bin/nova-compute OR ./bin/nova-all

Please check previous comment.

Right now, I am installed libvirt-1.0 from tarball and running using command "libvirtd -d" as root user. Otherwise getting error Failed to connect socket to '/var/run/libvirt/libvirt-sock (error log attached in previous comment) Do you know any other way to fix this issue.

Thanks,

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: 2013-03-21 16:00:38 -0500

Seen: 1,030 times

Last updated: Jul 15 '14