Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

placement raise MissingRequiredOptions

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: <html><head> <title>500 Internal Server Error</title> </head><body>

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

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.

More information about this error may be available in the server error log.

</body></html> : ResourceProviderAllocationRetrievalFailed: Failed to retrieve allocations for resource provider c9a9fd06-6853-419d-b80e-74b7eab267bb: 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.: InternalServerError: Internal Server Error (HTTP 500) 2019-12-16 20:52:34.785 32218 ERROR nova.scheduler.client.report [req-9e578c67-33ec-424a-bd64-1a403cd44e0a - - - - -] [None] Failed to retrieve resource provider tree from placement API for UUID c9a9fd06-6853-419d-b80e-74b7eab267bb. Got 500: <html><head> <title>500 Internal Server Error</title> </head><body>

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

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.

More information about this error may be available in the server error log.

</body></html> . 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager [req-9e578c67-33ec-424a-bd64-1a403cd44e0a - - - - -] Error updating resources for node master3.: ResourceProviderRetrievalFailed: Failed to get resource provider with UUID c9a9fd06-6853-419d-b80e-74b7eab267bb 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager Traceback (most recent call last): 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 8657, in _update_available_resource_for_node 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager startup=startup) 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 887, in update_available_resource 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager self._update_available_resource(context, resources, startup=startup) 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 328, in inner 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager return f(args, *kwargs) 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 972, in _update_available_resource 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager self._update(context, cn, startup=startup) 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 1237, in _update 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager self._update_to_placement(context, compute_node, startup) 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/retrying.py", line 68, in wrapped_f 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager return Retrying(dargs, *dkw).call(f, args, *kw) 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/retrying.py", line 223, in call 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager return attempt.get(self._wrap_exception) 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/retrying.py", line 261, in get 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager six.reraise(self.value[0], self.value[1], self.value[2]) 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/retrying.py", line 217, in call 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager attempt = Attempt(fn(args, *kwargs), attempt_number, False) 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 1151, in _update_to_placement 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager context, compute_node.uuid, name=compute_node.hypervisor_hostname) 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/client/report.py", line 858, in get_provider_tree_and_ensure_root 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager parent_provider_uuid=parent_provider_uuid) 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/client/report.py", line 640, in _ensure_resource_provider 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager rps_to_refresh = self.get_providers_in_tree(context, uuid) 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/client/report.py", line 503, in get_providers_in_tree 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager raise exception.ResourceProviderRetrievalFailed(uuid=uuid) 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager ResourceProviderRetrievalFailed: Failed to get resource provider with UUID c9a9fd06-6853-419d-b80e-74b7eab267bb 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager

[root@master1 conf.d]# openstack endpoint list +----------------------------------+-----------+--------------+--------------+---------+-----------+-----------------------------+ | ID | Region | Service Name | Service Type | Enabled | Interface | URL | +----------------------------------+-----------+--------------+--------------+---------+-----------+-----------------------------+ | 03e005c21cab4e4a84047ecf65e84acf | RegionOne | placement | placement | True | public | http://controller:8778 | | 0c90122822784931a00dd0c2157b79cd | RegionOne | glance | image | True | admin | http://controller:9292 | | 11729d30e6dd4d4182bfe308cb8b441b | RegionOne | keystone | identity | True | public | http://controller:5000/v3/ | | 680a25324c7844e3904a79b8edf44aa9 | RegionOne | placement | placement | True | admin | http://controller:8778 | | 769719c55d3b4ff2969418c5d06d3f0b | RegionOne | glance | image | True | internal | http://controller:9292 | | 81864ebf5c4e44c5a09eeef03cdf6f14 | RegionOne | placement | placement | True | internal | http://controller:8778 | | 829e29cd4f4642c288c634750b69a0b2 | RegionOne | nova | compute | True | internal | http://controller:8774/v2.1 | | 87ca6cbee8f74923a7a633b114250fe9 | RegionOne | keystone | identity | True | admin | http://controller:35357/v3/ | | 946547985cde4df0a7d9572223d575ef | RegionOne | glance | image | True | public | http://controller:9292 | | ca6febf46c694cce87e0c910de4c16b9 | RegionOne | nova | compute | True | public | http://controller:8774/v2.1 | | df4a1769cc6e4ecc92033996ec8919d1 | RegionOne | nova | compute | True | admin | http://controller:8774/v2.1 | | f1baae9046d84fa5b8d869fdabf15c13 | RegionOne | keystone | identity | True | internal | http://controller:5000/v3/ | +----------------------------------+-----------+--------------+--------------+---------+------

placement raise MissingRequiredOptions

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++++++++++++++++ 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 **mod_wsgi (pid=191022): Target WSGI script '/usr/bin/placement-api' cannot be loaded as Python 
module. 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)
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

auth_url**

+++++++++++++++++nova-compute.log on compute node+++++++++++++ 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>

Internal </head><body> <h1>Internal Server Error

The Error</h1> <p>The server encountered an internal error or misconfiguration and was unable to complete your request.

Please 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.

More error.</p> <p>More information about this error may be available in the server error log.

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.: InternalServerError: Internal Server Error (HTTP 500) 2019-12-16 20:52:34.785 32218 ERROR nova.scheduler.client.report [req-9e578c67-33ec-424a-bd64-1a403cd44e0a - - - - -] [None] Failed to retrieve resource provider tree from placement API for UUID c9a9fd06-6853-419d-b80e-74b7eab267bb. Got 500: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>500 Internal Server Error</title> </head><body>

Internal </head><body> <h1>Internal Server Error

The Error</h1> <p>The server encountered an internal error or misconfiguration and was unable to complete your request.

Please 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.

More error.</p> <p>More information about this error may be available in the server error log.

log.</p> </body></html> . 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager [req-9e578c67-33ec-424a-bd64-1a403cd44e0a - - - - -] Error updating resources for node master3.: ResourceProviderRetrievalFailed: Failed to get resource provider with UUID c9a9fd06-6853-419d-b80e-74b7eab267bb 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager Traceback (most recent call last): 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 8657, in _update_available_resource_for_node 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager startup=startup) 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 887, in update_available_resource 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager self._update_available_resource(context, resources, startup=startup) 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 328, in inner 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager return f(args, *kwargs) f(*args, **kwargs) 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 972, in _update_available_resource 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager self._update(context, cn, startup=startup) 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 1237, in _update 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager self._update_to_placement(context, compute_node, startup) 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/retrying.py", line 68, in wrapped_f 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager return Retrying(dargs, *dkw).call(f, args, *kw) Retrying(*dargs, **dkw).call(f, *args, **kw) 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/retrying.py", line 223, in call 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager return attempt.get(self._wrap_exception) 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/retrying.py", line 261, in get 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager six.reraise(self.value[0], self.value[1], self.value[2]) 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/retrying.py", line 217, in call 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager attempt = Attempt(fn(args, *kwargs), Attempt(fn(*args, **kwargs), attempt_number, False) 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 1151, in _update_to_placement 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager context, compute_node.uuid, name=compute_node.hypervisor_hostname) 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/client/report.py", line 858, in get_provider_tree_and_ensure_root 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager parent_provider_uuid=parent_provider_uuid) 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/client/report.py", line 640, in _ensure_resource_provider 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager rps_to_refresh = self.get_providers_in_tree(context, uuid) 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/client/report.py", line 503, in get_providers_in_tree 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager raise exception.ResourceProviderRetrievalFailed(uuid=uuid) 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager ResourceProviderRetrievalFailed: Failed to get resource provider with UUID c9a9fd06-6853-419d-b80e-74b7eab267bb 2019-12-16 20:52:34.786 32218 ERROR nova.compute.manager

[root@master1 conf.d]# openstack endpoint list +----------------------------------+-----------+--------------+--------------+---------+-----------+-----------------------------+ | ID | Region | Service Name | Service Type | Enabled | Interface | URL | +----------------------------------+-----------+--------------+--------------+---------+-----------+-----------------------------+ | 03e005c21cab4e4a84047ecf65e84acf | RegionOne | placement | placement | True | public | http://controller:8778 | | 0c90122822784931a00dd0c2157b79cd | RegionOne | glance | image | True | admin | http://controller:9292 | | 11729d30e6dd4d4182bfe308cb8b441b | RegionOne | keystone | identity | True | public | http://controller:5000/v3/ | | 680a25324c7844e3904a79b8edf44aa9 | RegionOne | placement | placement | True | admin | http://controller:8778 | | 769719c55d3b4ff2969418c5d06d3f0b | RegionOne | glance | image | True | internal | http://controller:9292 | | 81864ebf5c4e44c5a09eeef03cdf6f14 | RegionOne | placement | placement | True | internal | http://controller:8778 | | 829e29cd4f4642c288c634750b69a0b2 | RegionOne | nova | compute | True | internal | http://controller:8774/v2.1 | | 87ca6cbee8f74923a7a633b114250fe9 | RegionOne | keystone | identity | True | admin | http://controller:35357/v3/ | | 946547985cde4df0a7d9572223d575ef | RegionOne | glance | image | True | public | http://controller:9292 | | ca6febf46c694cce87e0c910de4c16b9 | RegionOne | nova | compute | True | public | http://controller:8774/v2.1 | | df4a1769cc6e4ecc92033996ec8919d1 | RegionOne | nova | compute | True | admin | http://controller:8774/v2.1 | | f1baae9046d84fa5b8d869fdabf15c13 | RegionOne | keystone | identity | True | internal | http://controller:5000/v3/ | +----------------------------------+-----------+--------------+--------------+---------+------

+----------------------------------+-----------+--------------+--------------+---------+------