Custom Search

Sunday, May 5, 2013

openstack ConfigNotFound: Could not find config at policy.json

Error Log from nova
----------------------------------

openstack ConfigNotFound: Could not find config at policy.json

Error Log from Horizon and Keystone
--------------------------------------------------------------
Unauthorized: Unauthorized (HTTP 401)

Solution
--------------

1)
###Start nova in debug mode and check error
#cd install_dir/nova
#source .venv/bin/activate
./bin/nova-all --debug

2)
###Copy policy.json to /etc/nova/
#cd install_dir/nova
#sudo cp etc/nova/policy.json /etc/nova/

3)
###Retart nova in debug mode and check error
#cd install_dir/nova
#source .venv/bin/activate
#./bin/nova-all --debug

Complete Error Log
---------------------------------

#./bin/nova-all --debug

2013-05-05 00:07:43 4264 INFO nova.osapi_compute.wsgi.server [-] (4264) accepted ('127.0.0.1', 46947)

2013-05-05 00:07:43 4264 ERROR nova.api.openstack [-] Caught error: Could not find config at policy.json
2013-05-05 00:07:43 4264 TRACE nova.api.openstack Traceback (most recent call last):
2013-05-05 00:07:43 4264 TRACE nova.api.openstack   File "/home/saju/ops_manual/nova/nova/api/openstack/__init__.py", line 78, in __call__
2013-05-05 00:07:43 4264 TRACE nova.api.openstack     return req.get_response(self.application)
2013-05-05 00:07:43 4264 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1296, in send
2013-05-05 00:07:43 4264 TRACE nova.api.openstack     application, catch_exc_info=False)
2013-05-05 00:07:43 4264 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1260, in call_application
2013-05-05 00:07:43 4264 TRACE nova.api.openstack     app_iter = application(self.environ, start_response)
2013-05-05 00:07:43 4264 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2013-05-05 00:07:43 4264 TRACE nova.api.openstack     return resp(environ, start_response)
2013-05-05 00:07:43 4264 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/keystoneclient/middleware/auth_token.py", line 450, in __call__
2013-05-05 00:07:43 4264 TRACE nova.api.openstack     return self.app(env, start_response)
2013-05-05 00:07:43 4264 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
2013-05-05 00:07:43 4264 TRACE nova.api.openstack     resp = self.call_func(req, *args, **self.kwargs)
2013-05-05 00:07:43 4264 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
2013-05-05 00:07:43 4264 TRACE nova.api.openstack     return self.func(req, *args, **kwargs)
2013-05-05 00:07:43 4264 TRACE nova.api.openstack   File "/home/saju/ops_manual/nova/nova/api/auth.py", line 117, in __call__
2013-05-05 00:07:43 4264 TRACE nova.api.openstack     service_catalog=service_catalog)
2013-05-05 00:07:43 4264 TRACE nova.api.openstack   File "/home/saju/ops_manual/nova/nova/context.py", line 70, in __init__
2013-05-05 00:07:43 4264 TRACE nova.api.openstack     self.is_admin = policy.check_is_admin(self.roles)
2013-05-05 00:07:43 4264 TRACE nova.api.openstack   File "/home/saju/ops_manual/nova/nova/policy.py", line 106, in check_is_admin
2013-05-05 00:07:43 4264 TRACE nova.api.openstack     init()
2013-05-05 00:07:43 4264 TRACE nova.api.openstack   File "/home/saju/ops_manual/nova/nova/policy.py", line 61, in init
2013-05-05 00:07:43 4264 TRACE nova.api.openstack     raise exception.ConfigNotFound(path=FLAGS.policy_file)
2013-05-05 00:07:43 4264 TRACE nova.api.openstack ConfigNotFound: Could not find config at policy.json
2013-05-05 00:07:43 4264 TRACE nova.api.openstack
2013-05-05 00:07:43 4264 INFO nova.api.openstack [-] http://localhost:8774/v2/7daefbb63e404763a9081954dacff2a9/os-quota-sets/7daefbb63e404763a9081954dacff2a9 returned with HTTP 500
2013-05-05 00:07:43 4264 DEBUG nova.api.openstack.wsgi [-] Returning 500 to user: The server has either erred or is incapable of performing the requested operation. __call__ /home/saju/ops_manual/nova/nova/api/openstack/wsgi.py:1173
2013-05-05 00:07:43 4264 INFO nova.osapi_compute.wsgi.server [-] 127.0.0.1 - - [05/May/2013 00:07:43] "GET /v2/7daefbb63e404763a9081954dacff2a9/os-quota-sets/7daefbb63e404763a9081954dacff2a9 HTTP/1.1" 500 271 0.002859

No comments:

Post a Comment