openstack安装nova时执行“openstack compute service list --service nova-compute”报错

dlkqe 2019-09-26 01:46:13
错误提示:The server is currently unavailable. Please try again at a later time.
在计算节点的nova-compute.log中信息如下:
2019-09-26 13:00:10.169 11288 WARNING nova.scheduler.client.report [req-869866fc-4dc5-4e27-aa28-8100e6f00058 - - - - -] The placement API endpoint not found. Placement is optional in Newton, but required in Ocata. Please enable the placement service before upgrading.: EndpointNotFound: ['internal', 'public'] endpoint for placement service in openstack region not found
2019-09-26 13:00:10.176 11288 ERROR nova.compute.manager [req-869866fc-4dc5-4e27-aa28-8100e6f00058 - - - - -] Error updating resources for node compute1.: ResourceProviderCreationFailed: Failed to create resource provider compute1
2019-09-26 13:00:10.176 11288 ERROR nova.compute.manager Traceback (most recent call last):
2019-09-26 13:00:10.176 11288 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 7454, in update_available_resource_for_node
2019-09-26 13:00:10.176 11288 ERROR nova.compute.manager rt.update_available_resource(context, nodename)
2019-09-26 13:00:10.176 11288 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/compute/resource_tracker.py", line 688, in update_available_resource
2019-09-26 13:00:10.176 11288 ERROR nova.compute.manager self._update_available_resource(context, resources)
2019-09-26 13:00:10.176 11288 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 277, in inner
2019-09-26 13:00:10.176 11288 ERROR nova.compute.manager return f(*args, **kwargs)
2019-09-26 13:00:10.176 11288 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/compute/resource_tracker.py", line 712, in _update_available_resource
2019-09-26 13:00:10.176 11288 ERROR nova.compute.manager self._init_compute_node(context, resources)
2019-09-26 13:00:10.176 11288 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/compute/resource_tracker.py", line 561, in _init_compute_node
2019-09-26 13:00:10.176 11288 ERROR nova.compute.manager self._update(context, cn)
2019-09-26 13:00:10.176 11288 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/compute/resource_tracker.py", line 886, in _update
2019-09-26 13:00:10.176 11288 ERROR nova.compute.manager inv_data,
2019-09-26 13:00:10.176 11288 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/__init__.py", line 68, in set_inventory_for_provider
2019-09-26 13:00:10.176 11288 ERROR nova.compute.manager parent_provider_uuid=parent_provider_uuid,
2019-09-26 13:00:10.176 11288 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/__init__.py", line 37, in __run_method
2019-09-26 13:00:10.176 11288 ERROR nova.compute.manager return getattr(self.instance, __name)(*args, **kwargs)
2019-09-26 13:00:10.176 11288 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/report.py", line 1104, in set_inventory_for_provider
2019-09-26 13:00:10.176 11288 ERROR nova.compute.manager parent_provider_uuid=parent_provider_uuid)
2019-09-26 13:00:10.176 11288 ERROR nova.compute.manager File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/report.py", line 673, in _ensure_resource_provider
2019-09-26 13:00:10.176 11288 ERROR nova.compute.manager name=name or uuid)
2019-09-26 13:00:10.176 11288 ERROR nova.compute.manager ResourceProviderCreationFailed: Failed to create resource provider compute1
2019-09-26 13:00:10.176 11288 ERROR nova.compute.manager
2019-09-26 13:00:58.483 11288 WARNING oslo.service.loopingcall [-] Function 'nova.servicegroup.drivers.db.DbDriver._report_state' run outlasted interval by 8.06 sec



在控制节点的nova-scheduler.log内信息如下:
2019-09-26 13:00:30.014 97093 INFO nova.scheduler.host_manager [req-1ea80e6c-dc00-4035-8ff4-e42b0e5e814c - - - - -] Successfully synced instances from host 'compute1'.
2019-09-26 13:00:55.858 97994 INFO oslo_service.periodic_task [-] Skipping periodic task _discover_hosts_in_cells because its interval is negative
2019-09-26 13:00:57.159 97994 WARNING oslo_config.cfg [req-a76b373b-85d7-4bda-ade0-63f5f600fc03 - - - - -] Option "firewall_driver" from group "DEFAULT" is deprecated for removal (
nova-network is deprecated, as are any related configuration options.
). Its value may be silently ignored in the future.
2019-09-26 13:00:57.545 97994 WARNING oslo_config.cfg [req-a76b373b-85d7-4bda-ade0-63f5f600fc03 - - - - -] Option "use_neutron" from group "DEFAULT" is deprecated for removal (
nova-network is deprecated, as are any related configuration options.
). Its value may be silently ignored in the future.
2019-09-26 13:00:57.577 97994 WARNING oslo_config.cfg [req-a76b373b-85d7-4bda-ade0-63f5f600fc03 - - - - -] Option "os_region_name" from group "placement" is deprecated for removal (Endpoint lookup uses the service catalog via common keystoneauth1 Adapter configuration options. Use the region_name option instead.). Its value may be silently ignored in the future.
2019-09-26 13:00:57.578 97994 WARNING oslo_config.cfg [req-a76b373b-85d7-4bda-ade0-63f5f600fc03 - - - - -] Option "os_region_name" from group "placement" is deprecated. Use option "region-name" from group "placement".
2019-09-26 13:00:57.585 97994 WARNING oslo_config.cfg [req-a76b373b-85d7-4bda-ade0-63f5f600fc03 - - - - -] Option "enable" from group "cells" is deprecated for removal (Cells v1 is being replaced with Cells v2.). Its value may be silently ignored in the future.
2019-09-26 13:00:57.611 97994 INFO nova.service [-] Starting scheduler node (version 17.0.10)
2019-09-26 13:02:32.017 97994 INFO nova.scheduler.host_manager [req-43df27ba-8894-4cde-9cee-d7a72e5b25e3 - - - - -] Host mapping not found for host compute1. Not tracking instance info for this host.
2019-09-26 13:02:32.019 97994 INFO nova.scheduler.host_manager [req-43df27ba-8894-4cde-9cee-d7a72e5b25e3 - - - - -] Received a sync request from an unknown host 'compute1'. Re-created its InstanceList.



在控制节点的nova-api.log内显示的信息是:
2019-09-26 13:00:55.644 97975 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-d3016485-e740-476f-9b7f-e75ff888d8ae)
2019-09-26 13:00:55.757 97975 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-149e15c2-4ec6-4820-b6dd-b3d8f04d170a)
2019-09-26 13:00:55.758 97975 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
2019-09-26 13:00:55.779 97975 INFO nova.osapi_compute.wsgi.server [-] 192.168.4.84 "GET /v2.1/os-services?binary=nova-compute HTTP/1.1" status: 503 len: 450 time: 0.4895508
...全文
3950 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
yangxiaoliang-leo 2019-10-02
  • 打赏
  • 举报
回复
在日志报错信息中提示The placement API endpoint not found. Placement is optional in Newton, but required in Ocata. Please enable the placement service before upgrading。说明你没安装placement服务,或者你安装了此服务,但是服务没有启动
Over 100 recipes to successfully set up and manage your OpenStack cloud environments with complete coverage of Nova, Swift, Keystone, Glance, Horizon, Neutron, and Cinder Overview Updated for OpenStack Grizzly Learn how to install, configure, and manage all of the OpenStack core projects including new topics like block storage and software defined networking Learn how to build your Private Cloud utilizing DevOps and Continuous Integration tools and techniques In Detail OpenStack is an open source cloud operating stack that was born from Rackspace and NASA and became a global success, developed by scores of people around the globe and backed by some of the leading players in the cloud space today. OpenStack Cloud Computing Cookbook, Second Edition will show you exactly how to install the components that are required to make up a private cloud environment. You will learn how to set up an environment that you manage just as you would a public cloud provider like Rackspace with the help of experienced OpenStack administrators and architects. We begin by configuring the key components such as identity, image compute, and storage in a safe, virtual environment that we will then build on this throughout the book. The book will also teach you about provisioning and managing OpenStack in the datacenter using proven DevOps tools and techniques. From installing or creating a sandbox environment using Vagrant and VirtualBox to installing OpenStack in the datacenter, from understanding logging to automating OpenStack installations, whatever level of experience or interest you have with OpenStack there is a chapter for you. Installation steps cover compute, object storage, identity, block storage volumes, image, horizon, software defined networking and DevOps tools for automating your infrastructure OpenStack Cloud Computing Cookbook, Second edition gives you clear step-by-step instructions to installing and running your own private cloud. What you will learn from this book Understand, install, configure, and manage Nova, the OpenStack cloud compute resource Dive headfirst into managing software defined networks with the OpenStack networking project and Open vSwitch Install and configure, Keystone, the OpenStack identity & authentication service Install, configure and operate the OpenStack block storage project: Neutron Install and manage Swift, the highly scalable OpenStack object storage service Gain hands on experience with the OpenStack dashboard Horizon Explore different monitoring frameworks to ensure your OpenStack cloud is always online and performing optimally Automate your installations using Vagrant and Chef. Create custom Windows and Linux images for use in your private cloud environment. Approach OpenStack Cloud Computing Cookbook Second Edition will give you clear step-by-step instructions to installing and running your own private cloud successfully. It is full of practical and applicable recipes that enable you to use the latest capabilities of OpenStack and implement them. The book explains every step in detail so that you can build your knowledge about how things work. Product Details Paperback: 396 pages Publisher: Packt Publishing; 2 edition (October 17, 2013) Language: English ISBN-10: 1782167587 ISBN-13: 978-1782167587

999

社区成员

发帖
与我相关
我的任务
社区描述
OpenStack
社区管理员
  • OpenStack社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧