Freezer CLI Show 503 Service Unavailable

Asked by Amjad Kotobi on 2019-10-09

I have installed Freezer-API standalone and another machine which runs Freezer-Scheduler & Freezer-agent.
When I'm trying to execute any freezer CLI, e.g. freezer job-list I'm gonna end up with error as below(Verbose/Debug) output

Starting new HTTP connection (1): freezer-adb.cloud.XX.XX:9090
http://freezer-adb.cloud.XX.XX:9090 "GET //v2/0a50ee40fd484045a735ab3cedafb8be/sessions/?limit=100&offset=0 HTTP/1.1" 503 218
[*] Error 503: {"message": "The server is currently unavailable. Please try again at a later time.<br /><br />\nThe Keystone service is temporarily unavailable.\n\n", "code": "503 Service Unavailable", "title": "Service Unavailable"}
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 401, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/display.py", line 116, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.7/site-packages/freezerclient/v2/sessions.py", line 109, in take_action
    search=search
  File "/usr/lib/python2.7/site-packages/freezerclient/v2/managers/sessions.py", line 59, in list_all
    raise exceptions.ApiClientException(r)
ApiClientException: [*] Error 503: {"message": "The server is currently unavailable. Please try again at a later time.<br /><br />\nThe Keystone service is temporarily unavailable.\n\n", "code": "503 Service Unavailable", "title": "Service Unavailable"}
Traceback (most recent call last):
  File "/bin/freezer", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/freezerclient/shell.py", line 258, in main
    return FreezerShell().run(argv)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 281, in run
    result = self.run_subcommand(remainder)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 401, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/display.py", line 116, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.7/site-packages/freezerclient/v2/sessions.py", line 109, in take_action
    search=search
  File "/usr/lib/python2.7/site-packages/freezerclient/v2/managers/sessions.py", line 59, in list_all
    raise exceptions.ApiClientException(r)
freezerclient.exceptions.ApiClientException: [*] Error 503: {"message": "The server is currently unavailable. Please try again at a later time.<br /><br />\nThe Keystone service is temporarily unavailable.\n\n", "code": "503 Service Unavailable", "title": "Service Unavailable"}

#############
Here is the logs from Freezer-API log file

2019-10-09 15:04:43.999 21379 DEBUG paste.httpserver.ThreadPool [-] Added task (0 tasks queued) add_task /usr/lib/python2.7/site-packages/paste/httpserver.py:648
2019-10-09 15:04:44.001 21379 DEBUG keystoneauth.identity.v2 [-] Making authentication request to http://controller1:5000/v2.0/tokens get_auth_ref /usr/lib/python2.7/site-packages/keystoneauth1/identity/v2.py:61
2019-10-09 15:04:44.034 21379 DEBUG keystoneauth.session [-] Request returned failure status: 401 request /usr/lib/python2.7/site-packages/keystoneauth1/session.py:942
2019-10-09 15:04:44.034 21379 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}: Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-16ba23f4-49b4-4536-b322-6c5d137498ea)
2019-10-09 15:04:44.035 21379 DEBUG keystoneauth.identity.v2 [-] Making authentication request to http://controller1:5000/v2.0/tokens get_auth_ref /usr/lib/python2.7/site-packages/keystoneauth1/identity/v2.py:61
2019-10-09 15:04:44.067 21379 DEBUG keystoneauth.session [-] Request returned failure status: 401 request /usr/lib/python2.7/site-packages/keystoneauth1/session.py:942
2019-10-09 15:04:44.068 21379 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}: Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-c2bdd936-7897-4f5d-ae15-f41fe533fbc7)
2019-10-09 15:04:44.069 21379 CRITICAL keystonemiddleware.auth_token [-] Unable to validate token: Identity server rejected authorization necessary to fetch token data: ServiceError: Identity server rejected authorization necessary to fetch token data

I'm using freezer 7.2.0.

Any idea how to make Freezer CLI part work?
Thanks

Amjad

Question information

Language:
English Edit question
Status:
Open
For:
OpenStack Backup/Restore and DR (Freezer) Edit question
Assignee:
No assignee Edit question
Last query:
2019-10-09
Last reply:

Can you help with this problem?

Provide an answer of your own, or ask Amjad Kotobi for more information if necessary.

To post a message you must log in.