Ask Your Question
0

nova-api is in stop/waiting state and it is not starting

asked 2014-10-04 05:56:24 -0500

sunny0690 gravatar image

hii

i am new to openstack and i have installed the openstack cloud in ubuntu server 14.04.

I installed the nova package on the controller node and i tried to check the nova image-list it is giving an error

sunny@controller:~$ nova image-list ERROR (CommandError): You must provide a username or user id via --os-username, --os-user-id, env[OS_USERNAME] or env[OS_USER_ID] sunny@controller:~$

and the status of the service is as follows sunny@controller:~$ service nova-api status nova-api stop/waiting sunny@controller:~$

when i tried to restart the nova-api service it is starting and again after few seconds it is going to stop/waiting state and from the nova-api logs i found this

2014-10-04 03:38:17.267 5303 WARNING keystoneclient.middleware.auth_token [-] This middleware module is deprecated as of v0.10.0 in favor of keystonemiddleware.auth_token - please update your WSGI pipeline to reference the new middleware package. 2014-10-04 03:38:17.268 5303 WARNING keystoneclient.middleware.auth_token [-] Configuring admin URI using auth fragments. This is deprecated, use 'identity_uri' instead. 2014-10-04 03:38:17.269 5303 WARNING keystoneclient.middleware.auth_token [-] Configuring auth_uri to point to the public identity endpoint is required; clients may not be able to authenticate against an admin endpoint 2014-10-04 03:38:17.270 5303 INFO keystoneclient.middleware.auth_token [-] Using /tmp/keystone-signing-xcT7Dh as cache directory for signing certificate 2014-10-04 03:38:17.272 5303 INFO nova.wsgi [-] osapi_compute listening on 0.0.0.0:8774 2014-10-04 03:38:17.273 5303 INFO nova.openstack.common.service [-] Starting 1 workers 2014-10-04 03:38:17.277 5303 INFO nova.openstack.common.service [-] Started child 5310 2014-10-04 03:38:17.285 5303 INFO nova.network.driver [-] Loading network driver 'nova.network.linux_net' 2014-10-04 03:38:17.294 5310 INFO nova.osapi_compute.wsgi.server [-] (5310) wsgi starting up on http://0.0.0.0:8774/ 2014-10-04 03:38:21.570 5303 CRITICAL nova [-] ProcessExecutionError: Unexpected error while running command. Command: sudo nova-rootwrap /etc/nova/rootwrap.conf iptables-save -c Exit code: 1 Stdout: '' Stderr: 'Traceback (most recent call last):\n File "/usr/bin/nova-rootwrap", line 6, in \n from oslo.rootwrap.cmd import main\nImportError: No module named rootwrap.cmd\n' 2014-10-04 03:38:21.570 5303 TRACE nova Traceback (most recent call last): 2014-10-04 03:38:21.570 5303 TRACE nova File "/usr/bin/nova-api", line 10, in 2014-10-04 03:38:21.570 5303 TRACE nova sys.exit(main()) 2014-10-04 03:38:21.570 5303 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/cmd/api.py", line 53, in main 2014-10-04 03:38:21.570 5303 TRACE nova server = service.WSGIService(api, use_ssl=should_use_ssl) 2014-10-04 03:38:21.570 5303 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 330, in __init__ 2014-10-04 03:38:21.570 5303 TRACE nova self.manager = self._get_manager() 2014-10-04 03:38:21.570 5303 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 374, in _get_manager 2014-10-04 03:38:21.570 5303 TRACE nova return manager_class ... (more)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-10-04 12:12:53 -0500

updated 2014-10-04 13:01:51 -0500

In order to issue commands to nova and other openstack services(e.g. glance, neutron, ...), you have to authenticate by keystone. So, what your error means was that: "You have not autherize to issue command to nova and you must authenticate with your credentials". So to get rid of this error, set your credentials using environment variables. Put all of your credentials in a file named 'creds':

export OS_USERNAME=your_os_username
export OS_PASSWORD=your_os_password
export OS_TENANT_NAME=your_tenant_name
export OS_AUTH_URL=http://your_keystone_ip_address:35357/v2.0

After that, run the following command to set your environment variables:

source creds

Then you can execute image-list command.

This document may be helpful.

edit flag offensive delete link more
0

answered 2015-03-21 02:27:26 -0500

ssujai gravatar image

Solution for a similar issue:

http://thetechnologychronicle.blogspo...

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: 2014-10-04 05:56:24 -0500

Seen: 981 times

Last updated: Mar 21 '15