Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Freezer API can't connect to Keystone v3 API

Hi all,

I'm new to Openstack and I'm trying to find backup solution. Since you developed Freezer, I wanted to test it but installation and configuration processes are painful to me. Anyway I could manage to install freezer-api and freezer-web-ui,python-freezerclient,freezer-agent,freezer-scheduler. I can see Disaster Recovery tab in panel. At this point when I click any link under Disaster Recovery, I get

'Error: [*] Error 401: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}'

The logs in freezer-api.log are;

2020-01-24 14:06:13.572 38758 DEBUG paste.httpserver.ThreadPool [-] Added task (0 tasks queued) add_task /usr/lib/python2.7/site-packages/paste/httpserver.py:648
2020-01-24 14:06:13.574 38758 WARNING keystonemiddleware.auth_token [-] Using the in-process token cache is deprecated as of the 4.2.0 release and may be removed in the 5.0.0 release or the 'O' development cycle. The in-process cache causes inconsistent results and high memory usage. When the feature is removed the auth_token middleware will not cache tokens by default which may result in performance issues. It is recommended to use  memcache for the auth_token token cache by setting the memcached_servers option.
2020-01-24 14:06:13.576 38758 DEBUG keystoneauth.session [-] REQ: curl -g -i -X GET http://10.151.233.21:35357 -H "Accept: application/json" -H "User-Agent: freezer-api/7.1.0 keystonemiddleware.auth_token/6.0.0 keystoneauth1/3.13.1 python-requests/2.21.0 CPython/2.7.5" _http_log_request /usr/lib/python2.7/site-packages/keystoneauth1/session.py:464
2020-01-24 14:06:15.457 38758 DEBUG keystoneauth.session [-] RESP: [300] Connection: Keep-Alive Content-Length: 269 Content-Type: application/json Date: Fri, 24 Jan 2020 11:06:13 GMT Keep-Alive: timeout=5, max=100 Location: http://10.151.233.21:35357/v3/ Server: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 Vary: X-Auth-Token x-openstack-request-id: req-bde00df7-6366-4570-9861-cf702b2f77d6 _http_log_response /usr/lib/python2.7/site-packages/keystoneauth1/session.py:495
2020-01-24 14:06:15.457 38758 DEBUG keystoneauth.session [-] RESP BODY: {"versions": {"values": [{"status": "stable", "updated": "2019-01-22T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.12", "links": [{"href": "http://10.151.233.21:35357/v3/", "rel": "self"}]}]}} _http_log_response /usr/lib/python2.7/site-packages/keystoneauth1/session.py:527
2020-01-24 14:06:15.457 38758 DEBUG keystoneauth.session [-] GET call to http://10.151.233.21:35357/ used request id req-bde00df7-6366-4570-9861-cf702b2f77d6 request /usr/lib/python2.7/site-packages/keystoneauth1/session.py:874
2020-01-24 14:06:15.460 38758 DEBUG keystoneauth.identity.v2 [-] Making authentication request to http://10.151.233.21:35357/v2.0/tokens get_auth_ref /usr/lib/python2.7/site-packages/keystoneauth1/identity/v2.py:61
2020-01-24 14:06:17.096 38758 DEBUG keystoneauth.session [-] Request returned failure status: 404 request /usr/lib/python2.7/site-packages/keystoneauth1/session.py:889
2020-01-24 14:06:17.097 38758 WARNING keystonemiddleware.auth_token [-] Authorization failed for token: InvalidToken: Token authorization failed
2020-01-24 14:06:21.212 38758 DEBUG paste.httpserver.ThreadPool [-] Added task (0 tasks queued) add_task /usr/lib/python2.7/site-packages/paste/httpserver.py:648
2020-01-24 14:06:21.214 38758 DEBUG keystoneauth.identity.v2 [-] Making authentication request to http://10.151.233.21:35357/v2.0/tokens get_auth_ref /usr/lib/python2.7/site-packages/keystoneauth1/identity/v2.py:61
2020-01-24 14:06:23.212 38758 DEBUG keystoneauth.session [-] Request returned failure status: 404 request /usr/lib/python2.7/site-packages/keystoneauth1/session.py:889
2020-01-24 14:06:23.213 38758 WARNING keystonemiddleware.auth_token [-] Authorization failed for token: InvalidToken: Token authorization failed

I can use Keystone v3 api without problem but Freezer-API tries to connect v2.0 but there is nothing at there. When search on google, I found that freezer-web-ui keystone v3 api I would be very appreciated if anyone can help me to solve problem. The docs that we'd used

Keystone version:15.0.0 Freezer,Freezer-API,Freezer-web-ui versions: 7.1.0 OS: Centos 7.7.1908 OS_AUTH_URL:http://10.151.233.21:5000/v3