Unable to create the flavor using the CLI on openstack controller getting an http 503 error
I tried with ---debug and this is what I got:
Starting new HTTP connection (1): xx.xx.xx.109
http://172.25.1.109:8774 "POST /v2.1/flavors HTTP/1.1" 503 170
RESP: [503] Connection: keep-alive Content-Length: 170 Content-Type: application/json Date: Tue, 05 Mar 2019 13:41:25 GMT X-Compute-Request-Id: req-1d398f4a-703e-4261-b024-4a7b835cf05a X-Openstack-Request-Id: req-1d398f4a-703e-4261-b024-4a7b835cf05a
RESP BODY: {"message": "The server is currently unavailable. Please try again at a later time.
\n\n\n", "code": "503 Service Unavailable", "title": "Service Unavailable"}
POST call to compute for http://xx.xx.xx.109:8774/v2.1/flavors used request id req-1d398f4a-703e-4261-b024-4a7b835cf05a
The server is currently unavailable. Please try again at a later time.
(HTTP 503) (Request-ID: req-1d398f4a-703e-4261-b024-4a7b835cf05a)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 400, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/lib/python2.7/dist-packages/osc_lib/command/command.py", line 41, in run
return super(Command, self).run(parsed_args)
File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 116, in run
column_names, data = self.take_action(parsed_args)
File "/usr/lib/python2.7/dist-packages/openstackclient/compute/v2/flavor.py", line 173, in take_action
flavor = compute_client.flavors.create(args)
File "/usr/lib/python2.7/dist-packages/novaclient/v2/flavors.py", line 246, in create
return self._create("/flavors", body, "flavor")
File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 366, in _create
resp, body = self.api.client.post(url, body=body)
File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 334, in post
return self.request(url, 'POST', *kwargs)
File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 83, in request
raise exceptions.from_response(resp, body, url, method)
ClientException: The server is currently unavailable. Please try again at a later time.
From my compute node , i checked the nova-api log and we could see the below error :
2019-03-05 08:44:26.184 6246 INFO nova.osapi_compute.wsgi.server [-] 172.25.1.109 "GET /v2.1/resource_providers?in_tree=aed33da6-02e6-4a41-9115-dee91bb042c2 HTTP/1.1" status: 503 len: 450 time: 3.5525379 2019-03-05 08:45:27.165 6246 CRITICAL keystonemiddleware.auth_token [-] Unable to validate token: Unable to establish connection to http://127.0.0.1:5000/v3/auth/tokens: HTTPConnectionPool(host='127.0.0.1', port=5000): Max retries exceeded with url: /v3/auth/tokens (Caused by NewConnectionError('<urllib3.connection.httpconnection 0x7f4dcb2d3dd0="" at="" object="">: Failed to establish a new connection: [Errno 111] ECONNREFUSED',)): ConnectFailure: Unable to establish connection to http://127.0.0.1:5000/v3/auth/tokens: HTTPConnectionPool(host='127.0.0.1', port=5000): Max retries exceeded with url: /v3/auth/tokens (Caused by NewConnectionError('<urllib3.connection.httpconnection 0x7f4dcb2d3dd0="" at="" object="">: Failed to establish a new connection: [Errno 111] ECONNREFUSED',)) 2019-03-05 08:45:27.177 6246 INFO nova.osapi_compute.wsgi.server [-] 172.25.1.109 "GET /v2.1/resource_providers?in_tree=aed33da6-02e6-4a41-9115-dee91bb042c2 HTTP/1.1" status: 503 len: 450 time: 3.5313060</urllib3.connection.httpconnection></urllib3.connection.httpconnection>
xx.xx.xx.107 is my controller node and xx.xx.xx.109 is my compute node.