placement raise MissingRequiredOptions [closed]
hi,all! when i start nova-compute service on compute node, the placement on controller node raise an exceptions and i can not access http://controller:8778 by command curl on compute node(error 500). the following was the log.
+++++++++++placemeng.log++++++++++++++++
2019-12-16 20:50:33.716 191022 WARNING placement.db_api [-] TransactionFactory already started
, not reconfiguring.\x1b[00m
2019-12-16 20:50:33.729 191022 WARNING keystonemiddleware.auth_token [-] AuthToken middleware
is set with keystone_authtoken.service_token_roles_required set to False. This is backwards co
mpatible but deprecated behaviour. Please set this to True.\x1b[00m
**mod_wsgi (pid=191022): Target WSGI script '/usr/bin/placement-api' cannot be loaded as Python
module.**
mod_wsgi (pid=191022): Exception occurred processing WSGI script '/usr/bin/placement-api'.
Traceback (most recent call last):
File "/usr/bin/placement-api", line 52, in <module>
application = init_application()
File "/usr/lib/python2.7/site-packages/placement/wsgi.py", line 147, in init_application
return deploy.loadapp(config)
File "/usr/lib/python2.7/site-packages/placement/deploy.py", line 152, in loadapp
application = deploy(config)
File "/usr/lib/python2.7/site-packages/placement/deploy.py", line 114, in deploy
application = middleware(application)
File "/usr/lib/python2.7/site-packages/placement/auth.py", line 101, in auth_filter
return PlacementAuthProtocol(app, conf)
File "/usr/lib/python2.7/site-packages/placement/auth.py", line 86, in __init__
super(PlacementAuthProtocol, self).__init__(app, conf)
File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 627, in __init__
self._auth = self._create_auth_plugin()
File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 826, in _create_auth_plugin
return plugin_loader.load_from_options_getter(getter)
File "/usr/lib/python2.7/site-packages/keystoneauth1/loading/base.py", line 187, in load_from_options_getter
return self.load_from_options(**kwargs)
File "/usr/lib/python2.7/site-packages/keystoneauth1/loading/base.py", line 162, in load_from_options
raise exceptions.MissingRequiredOptions(missing_required)
**MissingRequiredOptions: Auth plugin requires parameters which were not given: auth_url**
+++++++++++++++++nova-compute.log on compute node+++++++++++++
2019-12-16 20:52:34.678 32218 WARNING keystoneauth.discover [req-9e578c67-33ec-424a-bd64-1a403cd44e0a - - - - -] Failed to contact the endpoint at http://controller:8778 for discovery. Fallback to using that endpoint as the base url.: InternalServerError: Internal Server Error (HTTP 500)
2019-12-16 20:52:34.711 32218 ERROR nova.compute.resource_tracker [req-9e578c67-33ec-424a-bd64-1a403cd44e0a - - - - -] Skipping removal of allocations for deleted instances: Failed to retrieve allocations for resource provider c9a9fd06-6853-419d-b80e-74b7eab267bb: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator at
root@localhost to inform them of the time this error occurred,
and the actions you performed just before this error.</p>
<p>More information about this error may be available
in the server error log.</p>
</body></html>
: ResourceProviderAllocationRetrievalFailed: Failed to retrieve allocations for resource provider c9a9fd06-6853-419d-b80e-74b7eab267bb: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
2019-12-16 20:52:34.747 32218 WARNING keystoneauth.discover [req-9e578c67-33ec-424a-bd64-1a403cd44e0a - - - - -] Failed to contact the endpoint at http://controller:8778 for discovery. Fallback to using that endpoint as the base url ...
Can you try this command -:
sudo -H -u nova bash -c '/usr/bin/placement-api'
Also checkout the permissions of this file.It looks like auth_url is missing in a configuration file.