add the compute node to the cell database

asked 2018-12-24 09:16:31 -0500

SteveVasilakis gravatar image

updated 2018-12-31 10:15:15 -0500

Internal Server Error (HTTP 500) this error is given after this command on controller-> openstack compute service list --service nova-compute. After the openstack --debug compute service list :

  • Get auth_ref
  • REQ: curl -g -i -X GET http://controller:5000/v3 -H "Accept: application/json" -H "User-Agent: osc-lib/1.9.0 keystoneauth1/3.4.0 python-requests/2.18.4 CPython/2.7.12" Starting new HTTP connection (1): controller http://controller:5000 "GET /v3 HTTP/1.1" 200 250
  • RESP: [200] Date: Mon, 31 Dec 2018 16:05:49 GMT Server: Apache/2.4.18 (Ubuntu) Vary: X-Auth-Token x-openstack-request-id: req-edcb1ce9-053a-43b6-8960-5247118a1005 Content-Length: 250 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: application/json RESP BODY: {"version": {"status": "stable", "updated": "2018-10-15T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.11", "links": [{"href": "http://controller:5000/v3/", "rel": "self"}]}}
  • GET call to None for http://controller:5000/v3 used request id req-edcb1ce9-053a-43b6-8960-5247118a1005 Making authentication request to http://controller:5000/v3/auth/tokens http://controller:5000 "POST /v3/auth/tokens HTTP/1.1" 500 609 Request returned failure status: 500 Internal Server Error (HTTP 500)

Traceback (most recent call last):

  • File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 393, in run_subcommand self.prepare_to_run_command(cmd)

  • File "/usr/lib/python2.7/dist-packages/openstackclient/shell.py", line 197, in prepare_to_run_command return super(OpenStackShell, self).prepare_to_run_command(cmd)

  • File "/usr/lib/python2.7/dist-packages/osc_lib/shell.py", line 482, in prepare_to_run_command self.client_manager.auth_ref

  • File "/usr/lib/python2.7/dist-packages/openstackclient/common/clientmanager.py", line 99, in auth_ref return super(ClientManager, self).auth_ref

  • File "/usr/lib/python2.7/dist-packages/osc_lib/clientmanager.py", line 256, in auth_ref self._auth_ref = self.auth.get_auth_ref(self.session)

  • File "/usr/lib/python2.7/dist-packages/keystoneauth1/identity/generic/base.py", line 201, in get_auth_ref return self._plugin.get_auth_ref(session, **kwargs)

  • File "/usr/lib/python2.7/dist-packages/keystoneauth1/identity/v3/base.py", line 177, in get_auth_ref authenticated=False, log=False, **rkwargs)

  • File "/usr/lib/python2.7/dist-packages/keystoneauth1/session.py", line 848, in post return self.request(url, 'POST', **kwargs)

  • File "/usr/lib/python2.7/dist-packages/osc_lib/session.py", line 40, in request resp = super(TimingSession, self).request(url, method, **kwargs)

  • File "/usr/lib/python2.7/dist-packages/keystoneauth1/session.py", line 737, in request raise exceptions.from_response(resp, method, url)

  • InternalServerError: Internal Server Error (HTTP 500) clean_up ListService: Internal Server Error (HTTP 500)

Traceback (most recent call last): Fil

  • e "/usr/lib/python2.7/dist-packages/osc_lib/shell.py", line 134, in run ret_val = super(OpenStackShell, self).run(argv)

  • File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 279, in run result = self.run_subcommand(remainder)

  • File "/usr/lib/python2.7/dist-packages/osc_lib/shell.py", line 169, in run_subcommand ret_value = super(OpenStackShell, self).run_subcommand(argv)

  • File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 393, in run_subcommand self.prepare_to_run_command(cmd)

  • File "/usr/lib/python2.7/dist-packages/openstackclient/shell.py", line 197, in prepare_to_run_command return super(OpenStackShell, self).prepare_to_run_command(cmd)

  • File "/usr/lib/python2.7/dist-packages/osc_lib/shell.py", line 482 ...

(more)
edit retag flag offensive close merge delete

Comments

This indicates a configuration or installation problem. Check the nova-api log for further info.

Bernd Bausch gravatar imageBernd Bausch ( 2018-12-24 15:39:24 -0500 )edit

i checked nova-api.log but there werent any errors. I have an issue where i cant provide internet access to compute via controller's ip. I usually did it with -> route add default gw 10.0.0.2 but now it doesnt. 'ping openstack.org' says host unreachable. Maybe that's why i can't add compute to cell

SteveVasilakis gravatar imageSteveVasilakis ( 2018-12-25 12:41:48 -0500 )edit

Hmm, I am a bit confused. You mention three problems: Adding a node to the cell database, listing the nova-compute service, and internet access. I suppose that a compute node can only be added to the cell DB if nova-compute and nova-api can communicate with each other.

Bernd Bausch gravatar imageBernd Bausch ( 2018-12-25 20:38:49 -0500 )edit

When you add the debug option openstack --debug compute service list, you get a lot of output, including the API that fails. Are you able to identify the failing API? This would help determining the log file you need to check.

Bernd Bausch gravatar imageBernd Bausch ( 2018-12-25 20:40:57 -0500 )edit

in the nova-compute.log section :2018-12-29 07:36:07.277 1793 ERROR nova.compute.manager [req-acd6bc8d-4a1a-4b9f-8477-5677e5b19145] Error updating resources for node snf-854694.vm.okeanos.grnet.gr.:InternalServerError: Internal Server(HTTP 500) 2018-12-29 07:36:07.277 1793 ERROR nova.compute.manager

SteveVasilakis gravatar imageSteveVasilakis ( 2018-12-29 07:32:34 -0500 )edit