How to start nova services if we setup nova from github
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 ...
did you use the Ubuntu or others, which version?
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.