为何OPENSTACK-210模拟环境中执行 openstack compute service list 报错? 5C

本人刚开始学红帽openstack 210的课程,在导入模拟环境到VMware中后,在开启classroom,workstation,power,director,后,在director上以用户stack执行命令 openstack compute service list 时,报错代码如下,请各位大神指点下,谢谢。

[stack@director ~]$ openstack compute service list
Discovering versions from the identity service failed when creating the password plugin. Attempting to determine version from URL.
SSL exception connecting to https://172.25.249.201:13000/v2.0/tokens: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed

以下是日志信息:

May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main [-] Periodic clean up of node cache failed
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main Traceback (most recent call last):
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main   File "/usr/lib/python2.7/site-packages/ironic_inspector/main.py", line 325, in periodic_clean_up
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main     sync_with_ironic()
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main   File "/usr/lib/python2.7/site-packages/ironic_inspector/main.py", line 333, in sync_with_ironic
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main     ironic_nodes = ironic.node.list(limit=0)
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main   File "/usr/lib/python2.7/site-packages/ironicclient/v1/node.py", line 135, in list
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main     limit=limit)
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main   File "/usr/lib/python2.7/site-packages/ironicclient/common/base.py", line 129, in _list_pagination
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main     resp, body = self.api.json_request('GET', url)
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main   File "/usr/lib/python2.7/site-packages/ironicclient/common/http.py", line 553, in json_request
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main     resp = self._http_request(url, method, **kwargs)
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main   File "/usr/lib/python2.7/site-packages/ironicclient/common/http.py", line 190, in wrapper
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main     return func(self, url, method, **kwargs)
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main   File "/usr/lib/python2.7/site-packages/ironicclient/common/http.py", line 526, in _http_request
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main     raise_exc=False, **kwargs)
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main   File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main     return wrapped(*args, **kwargs)
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main   File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 462, in request
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main     auth_headers = self.get_auth_headers(auth)
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main   File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 733, in get_auth_headers
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main     return auth.get_headers(self, **kwargs)
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main   File "/usr/lib/python2.7/site-packages/keystoneauth1/plugin.py", line 90, in get_headers
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main     token = self.get_token(session)
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main   File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 90, in get_token
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main     return self.get_access(session).auth_token
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main   File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 136, in get_access
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main     self.auth_ref = self.get_auth_ref(session)
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main   File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.py", line 181, in get_auth_ref
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main     return self._plugin.get_auth_ref(session, **kwargs)
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main   File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/v2.py", line 65, in get_auth_ref
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main     authenticated=False, log=False)
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main   File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 681, in post
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main     return self.request(url, 'POST', **kwargs)
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main   File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main     return wrapped(*args, **kwargs)
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main   File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 555, in request
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main     resp = send(**kwargs)
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main   File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 593, in _send_request
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main     raise exceptions.SSLError(msg)
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main SSLError: SSL exception connecting to https://172.25.249.201:13000/v2.0/tokens: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)
May 11 02:35:47 director ironic-inspector: 2019-05-11 02:35:47.107 669 ERROR ironic_inspector.main


1个回答

qq_19671603
Allastair 谢谢,但是这个与我的报错信息不一样
大约一年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
执行指令OpenStack compute service list 出现HTTP(500)

2017-11-08 19:18:52.833 ERROR nova.compute.manager [req-e4abe3b9-f679-41cb-bed6-064ca37a3f7f - - - - -]更新节点controller时发生错误 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager Traceback (most recent call last): 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 6571, in update_available_resource_for_node 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager rt.update_available_resource(context, nodename) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 551, in update_available_resource 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager self._update_available_resource(context, resources) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 271, in inner 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager return f(*args, **kwargs) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 575, in _update_available_resource 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager self._init_compute_node(context, resources) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 438, in _init_compute_node 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager self.scheduler_client.update_resource_stats(cn) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 60, in update_resource_stats 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager self.reportclient.update_resource_stats(compute_node) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 37, in __run_method 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager return getattr(self.instance, __name)(*args, **kwargs) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/client/report.py", line 631, in update_resource_stats 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager compute_node.hypervisor_hostname) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/client/report.py", line 407, in _ensure_resource_provider 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager rp = self._get_resource_provider(uuid) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/client/report.py", line 55, in wrapper 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager return f(self, *a, **k) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/client/report.py", line 309, in _get_resource_provider 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager resp = self.get("/resource_providers/%s" % uuid) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/scheduler/client/report.py", line 209, in get 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager endpoint_filter=self.ks_filter, raise_exc=False, **kwargs) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 758, in get 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager return self.request(url, 'GET', **kwargs) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager return wrapped(*args, **kwargs) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 491, in request 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager auth_headers = self.get_auth_headers(auth) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 818, in get_auth_headers 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager return auth.get_headers(self, **kwargs) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/plugin.py", line 90, in get_headers 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager token = self.get_token(session) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 90, in get_token 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager return self.get_access(session).auth_token 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 136, in get_access 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager self.auth_ref = self.get_auth_ref(session) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.py", line 198, in get_auth_ref 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager return self._plugin.get_auth_ref(session, **kwargs) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/v3/base.py", line 167, in get_auth_ref 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager authenticated=False, log=False, **rkwargs) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 766, in post 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager return self.request(url, 'POST', **kwargs) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager return wrapped(*args, **kwargs) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 655, in request 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager raise exceptions.from_response(resp, method, url) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager InternalServerError: Internal Server Error (HTTP 500) 2017-11-08 19:18:52.833 1503 ERROR nova.compute.manager

检查Nova服务时,nova-compute出现xxx怎么解决?求大神指点!菇凉在线等

root@ubuntu:~# nova-manage service list Binary Host Zone Status State Updated At nova-consoleauth ubuntu nova enabled :-) 2015-08-06 12:42:18 nova-scheduler ubuntu nova enabled :-) 2015-08-06 12:42:18 nova-compute ubuntu nova enabled XXX None nova-network ubuntu nova enabled :-) 2015-08-06 12:42:19

openstack-在centos7上源码安装ocata版,创建实例时,报401的错,求助!

环境:centos7 + ocata版本 + OpenPower 服务器 tail -f /var/log/nova/compute.log 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager [req-48ad4de2-cfb6-4166-94bb-cb5525ce6f76 8a19a07251864ea79ec9e21c5ded1737 40a3463da5d744dd90868e2436d2da94 - - -] Instance failed network setup after 1 attempt(s): Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-f162b5bb-209d-4fa7-8c21-1f24c439ee11) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager Traceback (most recent call last): 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1403, in _allocate_network_async 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager bind_host_id=bind_host_id) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 873, in allocate_for_instance 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager bind_host_id, dhcp_options, available_macs) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 992, in _update_ports_for_instance 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager vif.destroy() 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager self.force_reraise() 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager six.reraise(self.type_, self.value, self.tb) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 962, in _update_ports_for_instance 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager port_client, instance, port_id, port_req_body) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 427, in _update_port 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager port_response = port_client.update_port(port_id, port_req_body) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 99, in wrapper 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager ret = obj(*args, **kwargs) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 780, in update_port 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager return self.put(self.port_path % (port), body=body) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 99, in wrapper 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager ret = obj(*args, **kwargs) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 370, in put 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager headers=headers, params=params) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 99, in wrapper 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager ret = obj(*args, **kwargs) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 338, in retry_request 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager headers=headers, params=params) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 99, in wrapper 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager ret = obj(*args, **kwargs) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 289, in do_request 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager resp, replybody = self.httpclient.do_request(action, method, body=body) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/client.py", line 314, in do_request 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager return self.request(url, method, **kwargs) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/client.py", line 302, in request 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager resp = super(SessionClient, self).request(*args, **kwargs) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 189, in request 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager return self.session.request(url, method, **kwargs) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 573, in request 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager auth_headers = self.get_auth_headers(auth) 2017-11-02 09:47:06.248 5999 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 900, in get_auth_headers

kolla安装单节点openstack ocata版本过程中报错

kolla-ansible deploy /home/all-in-one一安装一大半成功了,到nova-compute就卡住了。对ansible不太熟悉,这种错误怎么解决呢,求教 相关配置文件./ansible/roles/nova/tasks/simple_cell_setup.yml TASK [nova : Waiting for nova-compute service up] ****************************** FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (20 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (19 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (18 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (17 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (16 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (15 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (14 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (13 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (12 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (11 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (10 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (9 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (8 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (7 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (6 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (5 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (4 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (3 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (2 retries left). FAILED – RETRYING: TASK: nova : Waiting for nova-compute service up (1 retries left). fatal: [localhost -> localhost]: FAILED! => {“attempts”: 20, “changed”: false, “cmd”: [“docker”, “exec”, “kolla_toolbox”, “openstack”, “–os-interface”, “internal”, “–os-auth-url”, “http://10.0.0.100:35357/v3”, “–os-identity-api-version”, “3”, “–os-project-domain-name”, “default”, “–os-tenant-name”, “admin”, “–os-username”, “admin”, “–os-password”, “zyops”, “–os-user-domain-name”, “default”, “compute”, “service”, “list”, “-f”, “json”, “–service”, “nova-compute”], “delta”: “0:00:01.242621”, “end”: “2017-03-24 20:31:43.880186”, “failed”: true, “rc”: 0, “start”: “2017-03-24 20:31:42.637565”, “stderr”: “”, “stdout”: “[]”, “stdout_lines”: [“[]”], “warnings”: []} NO MORE HOSTS LEFT ************************************************************* to retry, use: –limit @/usr/share/kolla-ansible/ansible/site.retry PLAY RECAP ********************************************************************* localhost : ok=145 changed=0 unreachable=0 failed=1 Command failed ansible-playbook -i /usr/share/kolla-ansible/ansible/inventory/all-in-one -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml -e CONFIG_DIR=/etc/kolla -e action=deploy /usr/share/kolla-ansible/ansible/site.yml

openstack验证nova时执行openstack host list命令报错

``` ``` 这是执行命令后报的错误 The server is currently unavailable. Please try again at a later time.<br /><br /> (HTTP 503) (Request-ID: req-cc86ee4c-b854-4577-ba9a-57190d2cf39c) 这是日志中报的错误 2019-04-09 20:37:56.792 1778 WARNING keystonemiddleware.auth_token [-] Identity response: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}} 2019-04-09 20:37:56.793 1778 CRITICAL keystonemiddleware.auth_token [-] Unable to validate token: Identity server rejected authorization necessary to fetch token data 这是我改的配置文件(基于n版) [root@bogon ~]# egrep "^[a-z]" /etc/nova/nova.conf use_neutron=True firewall_driver = nova.virt.firewall.NoopFirewallDriver enabled_apis=osapi_compute,metadata auth_strategy=keystone connection=mysql+pymysql://nova:nova@192.168.131.129/nova_api connection=mysql+pymysql://nova:nova@192.168.131.129/nova api_servers=http://192.168.131.129:9292 auth_uri = http://192.168.131.129:5000 auth_url = http://192.168.131.129:35357 memcached_servers = 192.168.131.129:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = nova password = nova lock_path=/var/lib/nova/tmp transport_url=rabbit://openstack:openstack@192.168.131.129 vncserver_listen=0.0.0.0 vncserver_proxyclient_address=192.168.131.129 我确定nova的用户和密码是正确的,以及服务也创建成功了的 ```

安装OpenStack,服务器硬盘容量规划问题

关于OpenStack安装有一些问题: 1. 部署OpenStack,1 x Block Storage Node(Cinder)和 2 x Object Storage Node(Swift)是必须的吗? 1. 我看官方文档说这些Node是optional的,那么如果不提供这两个node,那么Cinder和Swift是安装在Controller Node中的吗?还是说压根就没有它们了?那么OpenStack是用什么东西替代它们呢? 1. Block Storage Node对物理设备有什么特别要求? 1. Object Storage Node对物理设备有什么特别要求? 1. 如果部署了Block Storage Node和Object Storage Node,那么应该怎样规划Controller Node和Computer Node的硬盘容量? 1. 如果没有Block Storage Node和Object Storage Node,那么应该怎样规划Controller Node和Computer Node的硬盘容量? 1. 欢迎分享一些你们遇到过的坑。

openstack ssh登录远程实例

各位大神们,本人刚接触openstack,有好多问题还是不明白,请求各位大神们帮忙。在此谢谢各位了! 问题就是:现在有两台机器:ip分别为192.168.8.175、192.168.8.147,其中192.168.8.175是controller+compute节点,192.168.8.147是一个compute节点,分给虚拟机的ip网段是203.0.113.0/24.现在在这两个节点上都可以创建虚拟机,在dashboard也可以看到,也可以通过VNC控制台登录。但是在controller节点上通过ssh无法登录compute节点上虚拟机,但可以通过ssh登录controller节点上虚拟机,现在我想在controller节点上通过ssh登录compute节点上虚拟机该如何设置?从controller节点ssh登录compute上名为“compute_test_1”,ip为203.0.113.5的虚拟机,报错: ssh: connect to host 203.0.113.5 port 22: No route to host

openstack创建实例成功但是启动实例报错

以下是nova报错详情: ``` /var/log/nova/nova-compute.log:2020-02-11 08:43:18.893 1327 ERROR nova.virt.libvirt.guest [req-ecfa9ec9-82fd-42dd-838f-ff5938af32e7 a7756266208f439bbb8324fb22853932 e7af6fe8f68647ab8010beaa7cb440ed - - -] Error launching a defined domain with XML: <domain type='kvm'> /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [req-ecfa9ec9-82fd-42dd-838f-ff5938af32e7 a7756266208f439bbb8324fb22853932 e7af6fe8f68647ab8010beaa7cb440ed - - -] [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] Instance failed to spawn /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] Traceback (most recent call last): /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2218, in _build_resources /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] except Exception: /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2064, in _build_and_run_instance /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] # saved in that function to prevent races. /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2779, in spawn /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] block_device_info=block_device_info) /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4923, in _create_domain_and_network /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] xml, pause=pause, power_on=power_on) /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4854, in _create_domain /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] guest.launch(pause=pause) /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 142, in launch /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] self._encoded_xml, errors='ignore') /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__ /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] self.force_reraise() /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] six.reraise(self.type_, self.value, self.tb) /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 137, in launch /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] return self._domain.createWithFlags(flags) /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 186, in doit /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] result = proxy_call(self._autowrap, f, *args, **kwargs) /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 144, in proxy_call /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] rv = execute(f, *args, **kwargs) /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 125, in execute /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] six.reraise(c, e, tb) /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 83, in tworker /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] rv = meth(*args, **kwargs) /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1110, in createWithFlags /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self) /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] libvirtError: 内部错误:qemu unexpectedly closed the monitor: 2020-02-11T00:43:18.668387Z qemu-kvm: -drive file=/var/lib/nova/instances/a26fb462-a721-45eb-8eaa-776ec5da3b23/disk,format=qcow2,if=none,id=drive-virtio-disk0,cache=none: Could not open '/var/lib/nova/instances/a26fb462-a721-45eb-8eaa-776ec5da3b23/disk': Permission denied /var/log/nova/nova-compute.log:2020-02-11 08:43:18.895 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] /var/log/nova/nova-compute.log:2020-02-11 08:43:19.145 1327 ERROR nova.compute.manager [req-ecfa9ec9-82fd-42dd-838f-ff5938af32e7 a7756266208f439bbb8324fb22853932 e7af6fe8f68647ab8010beaa7cb440ed - - -] [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] Unexpected build failure, not rescheduling build. /var/log/nova/nova-compute.log:2020-02-11 08:43:19.145 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] Traceback (most recent call last): /var/log/nova/nova-compute.log:2020-02-11 08:43:19.145 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1926, in _do_build_and_run_instance /var/log/nova/nova-compute.log:2020-02-11 08:43:19.145 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] /var/log/nova/nova-compute.log:2020-02-11 08:43:19.145 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2116, in _build_and_run_instance /var/log/nova/nova-compute.log:2020-02-11 08:43:19.145 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] exception.ImageNotActive, /var/log/nova/nova-compute.log:2020-02-11 08:43:19.145 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 0: ordinal not in range(128) /var/log/nova/nova-compute.log:2020-02-11 08:43:19.145 1327 ERROR nova.compute.manager [instance: a26fb462-a721-45eb-8eaa-776ec5da3b23] ``` dashboard报错: ![图片说明](https://img-ask.csdn.net/upload/202002/11/1581385833_715215.png) ![图片说明](https://img-ask.csdn.net/upload/202002/11/1581385890_574951.png) 网上说了很多办法都没有用,个人初学小白,有没有路过的大神指点一二。万分感谢!

[Openstack] 实例创建成功,但是无法启动,看日志也没有报错

安装的是ocata版,完全按照官网教程安装,能成功创建实例,但是实例启动一直卡在首屏。使用的是cirros镜像,使用其他镜像也是这个样子。新手一枚,求大神指点。 ![实例创建成功](https://img-ask.csdn.net/upload/201704/05/1491373558_34964.png) ![实例运行界面](https://img-ask.csdn.net/upload/201704/05/1491373587_6132.png) 实例配置 ``` <domain type='kvm' id='3'> <name>instance-00000006</name> <uuid>ae16fac3-d418-497a-9959-4f2de116ad87</uuid> <metadata> <nova:instance xmlns:nova="http://openstack.org/xmlns/libvirt/nova/1.0"> <nova:package version="15.0.0-1.el7"/> <nova:name>test</nova:name> <nova:creationTime>2017-04-04 17:53:38</nova:creationTime> <nova:flavor name="m1.nano"> <nova:memory>64</nova:memory> <nova:disk>1</nova:disk> <nova:swap>0</nova:swap> <nova:ephemeral>0</nova:ephemeral> <nova:vcpus>1</nova:vcpus> </nova:flavor> <nova:owner> <nova:user uuid="c4eadda47b5e41e9940dd418962b0ab8">admin</nova:user> <nova:project uuid="ac2906f775a24cb48b1040c22f7d07ec">admin</nova:project> </nova:owner> <nova:root type="image" uuid="c92a6bae-b1a0-4296-af5c-a6b34189c0eb"/> </nova:instance> </metadata> <memory unit='KiB'>65536</memory> <currentMemory unit='KiB'>65536</currentMemory> <vcpu placement='static'>1</vcpu> <cputune> <shares>1024</shares> </cputune> <resource> <partition>/machine</partition> </resource> <sysinfo type='smbios'> <system> <entry name='manufacturer'>RDO</entry> <entry name='product'>OpenStack Compute</entry> <entry name='version'>15.0.0-1.el7</entry> <entry name='serial'>4dd6358f-1ebd-4634-9f0f-0d26d3dd4993</entry> <entry name='uuid'>ae16fac3-d418-497a-9959-4f2de116ad87</entry> <entry name='family'>Virtual Machine</entry> </system> </sysinfo> <os> <type arch='x86_64' machine='pc-i440fx-rhel7.3.0'>hvm</type> <boot dev='hd'/> <smbios mode='sysinfo'/> </os> <features> <acpi/> <apic/> </features> <cpu mode='host-model'> <model fallback='allow'/> <topology sockets='1' cores='1' threads='1'/> </cpu> <clock offset='utc'> <timer name='pit' tickpolicy='delay'/> <timer name='rtc' tickpolicy='catchup'/> <timer name='hpet' present='no'/> </clock> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>destroy</on_crash> <devices> <emulator>/usr/libexec/qemu-kvm</emulator> <disk type='file' device='disk'> <driver name='qemu' type='qcow2' cache='none'/> <source file='/var/lib/nova/instances/ae16fac3-d418-497a-9959-4f2de116ad87/disk'/> <backingStore type='file' index='1'> <format type='raw'/> <source file='/var/lib/nova/instances/_base/3e67c6c692a9b432d2f74fc5bc7c22e35b7e1cfc'/> <backingStore/> </backingStore> <target dev='vda' bus='virtio'/> <alias name='virtio-disk0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </disk> <controller type='usb' index='0'> <alias name='usb'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/> </controller> <controller type='pci' index='0' model='pci-root'> <alias name='pci.0'/> </controller> <interface type='bridge'> <mac address='fa:16:3e:9a:3e:07'/> <source bridge='brqf28be70d-9a'/> <target dev='tap3a7df40b-a1'/> <model type='virtio'/> <alias name='net0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> <serial type='file'> <source path='/var/lib/nova/instances/ae16fac3-d418-497a-9959-4f2de116ad87/console.log'/> <target port='0'/> <alias name='serial0'/> </serial> <serial type='pty'> <source path='/dev/pts/1'/> <target port='1'/> <alias name='serial1'/> </serial> <console type='file'> <source path='/var/lib/nova/instances/ae16fac3-d418-497a-9959-4f2de116ad87/console.log'/> <target type='serial' port='0'/> <alias name='serial0'/> </console> <input type='tablet' bus='usb'> <alias name='input0'/> <address type='usb' bus='0' port='1'/> </input> <input type='mouse' bus='ps2'> <alias name='input1'/> </input> <input type='keyboard' bus='ps2'> <alias name='input2'/> </input> <graphics type='vnc' port='5900' autoport='yes' listen='0.0.0.0' keymap='en-us'> <listen type='address' address='0.0.0.0'/> </graphics> <video> <model type='cirrus' vram='16384' heads='1' primary='yes'/> <alias name='video0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </video> <memballoon model='virtio'> <stats period='10'/> <alias name='balloon0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </memballoon> </devices> <seclabel type='none' model='none'/> <seclabel type='dynamic' model='dac' relabel='yes'> <label>+107:+107</label> <imagelabel>+107:+107</imagelabel> </seclabel> </domain> ``` 实例运行日志 ``` 2017-04-04 17:53:38.328+0000: starting up libvirt version: 2.0.0, package: 10.el7_3.5 (CentOS BuildSystem <http://bugs.centos.org>, 2017-03-03-02:09:45, c1bm.rdu2.centos.org), qemu version: 2.6.0 (qemu-kvm-ev-2.6.0-28.el7_3.6.1), hostname: openstack2 LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin QEMU_AUDIO_DRV=none /usr/libexec/qemu-kvm -name guest=instance-00000006,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-3-instance-00000006/master-key.aes -machine pc-i440fx-rhel7.3.0,accel=kvm,usb=off -cpu Haswell-noTSX,+vme,+ds,+ss,+ht,+vmx,+osxsave,+f16c,+rdrand,+hypervisor,+arat,+tsc_adjust,+xsaveopt,+pdpe1gb,+abm -m 64 -realtime mlock=off -smp 1,sockets=1,cores=1,threads=1 -uuid ae16fac3-d418-497a-9959-4f2de116ad87 -smbios 'type=1,manufacturer=RDO,product=OpenStack Compute,version=15.0.0-1.el7,serial=4dd6358f-1ebd-4634-9f0f-0d26d3dd4993,uuid=ae16fac3-d418-497a-9959-4f2de116ad87,family=Virtual Machine' -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-3-instance-00000006/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=discard -no-hpet -no-shutdown -boot strict=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/var/lib/nova/instances/ae16fac3-d418-497a-9959-4f2de116ad87/disk,format=qcow2,if=none,id=drive-virtio-disk0,cache=none -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -netdev tap,fd=26,id=hostnet0,vhost=on,vhostfd=28 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=fa:16:3e:9a:3e:07,bus=pci.0,addr=0x3 -add-fd set=2,fd=30 -chardev file,id=charserial0,path=/dev/fdset/2,append=on -device isa-serial,chardev=charserial0,id=serial0 -chardev pty,id=charserial1 -device isa-serial,chardev=charserial1,id=serial1 -device usb-tablet,id=input0,bus=usb.0,port=1 -vnc 0.0.0.0:0 -k en-us -device cirrus-vga,id=video0,bus=pci.0,addr=0x2 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 -msg timestamp=on char device redirected to /dev/pts/1 (label charserial1) warning: host doesn't support requested feature: CPUID.01H:EDX.ds [bit 21] warning: host doesn't support requested feature: CPUID.01H:EDX.ht [bit 28] warning: host doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5] warning: host doesn't support requested feature: CPUID.01H:ECX.osxsave [bit 27] warning: host doesn't support requested feature: CPUID.07H:EBX.erms [bit 9] warning: host doesn't support requested feature: CPUID.80000001H:EDX.pdpe1gb [bit 26] ```

fuel openstack安装时错误。

求助各位大侠!我用fuel openstack6.0上在2台联想think stationS30和1台HP DL580服务器上安装实验环境。其中HP DL580是compute节点,其他两个工作站分别是master和control节点,整个安装过程都没有报错,openstack也安装成功,其master的管理页面也是正常打开,唯一就是在control节点的web页面中Hypervisor中看不到compute节点的计算资源,通过查看compue节点的openvswitch-agent和compute的log日志,出现了192.168.0.2:5672 closed connection.check login credentials :socked closed错误。刚开始以为![图片说明](https://img-ask.csdn.net/upload/201609/04/1473000976_128951.jpg)是用户名和密码问题,就分别查看compute和control节点中rabbitMQ的配置文件,发现用户名和密码都一样。这个问题好几天都解决不了,跪求各位高人帮忙指点迷津。错误日志如下图:

openstack 登陆不上dashboard 500

systemctl restart httpd memcached重启正常无报错,但是在网页访问 http://192.168.10.11/dashboard就报错了!! 网页显示内容: 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. **error_log:** [Tue Apr 16 12:12:21.668699 2019] [suexec:notice] [pid 17748] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Tue Apr 16 12:12:21.683331 2019] [auth_digest:notice] [pid 17748] AH01757: generating secret for digest authentication ... [Tue Apr 16 12:12:21.684405 2019] [lbmethod_heartbeat:notice] [pid 17748] AH02282: No slotmem from mod_heartmonitor [Tue Apr 16 12:12:21.692264 2019] [mpm_prefork:notice] [pid 17748] AH00163: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations [Tue Apr 16 12:12:21.692312 2019] [core:notice] [pid 17748] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND' [Tue Apr 16 12:12:44.497412 2019] [:error] [pid 17753] WARNING:root:Use of this 'djano.wsgi' file has been deprecated since the Rocky release in favor of 'wsgi.py' in the 'openstack_dashboard' module. This file is a legacy naming from before Django 1.4 and an importable 'wsgi.py' is now the default. This file will be removed in the T release cycle. [Tue Apr 16 12:12:45.992718 2019] [:error] [pid 17753] [remote 192.168.10.1:68] mod_wsgi (pid=17753): Target WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi' cannot be loaded as Python module. [Tue Apr 16 12:12:45.992801 2019] [:error] [pid 17753] [remote 192.168.10.1:68] mod_wsgi (pid=17753): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'. [Tue Apr 16 12:12:45.992834 2019] [:error] [pid 17753] [remote 192.168.10.1:68] Traceback (most recent call last): [Tue Apr 16 12:12:45.992852 2019] [:error] [pid 17753] [remote 192.168.10.1:68] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi", line 40, in <module> [Tue Apr 16 12:12:45.992936 2019] [:error] [pid 17753] [remote 192.168.10.1:68] application = get_wsgi_application() [Tue Apr 16 12:12:45.992949 2019] [:error] [pid 17753] [remote 192.168.10.1:68] File "/usr/lib/python2.7/site-packages/django/core/wsgi.py", line 13, in get_wsgi_application [Tue Apr 16 12:12:45.992985 2019] [:error] [pid 17753] [remote 192.168.10.1:68] django.setup(set_prefix=False) [Tue Apr 16 12:12:45.992994 2019] [:error] [pid 17753] [remote 192.168.10.1:68] File "/usr/lib/python2.7/site-packages/django/__init__.py", line 22, in setup [Tue Apr 16 12:12:45.993032 2019] [:error] [pid 17753] [remote 192.168.10.1:68] configure_logging(settings.LOGGING_CONFIG, settings.LOGGING) [Tue Apr 16 12:12:45.993042 2019] [:error] [pid 17753] [remote 192.168.10.1:68] File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 56, in __getattr__ [Tue Apr 16 12:12:45.993109 2019] [:error] [pid 17753] [remote 192.168.10.1:68] self._setup(name) [Tue Apr 16 12:12:45.993118 2019] [:error] [pid 17753] [remote 192.168.10.1:68] File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 41, in _setup [Tue Apr 16 12:12:45.993131 2019] [:error] [pid 17753] [remote 192.168.10.1:68] self._wrapped = Settings(settings_module) [Tue Apr 16 12:12:45.993137 2019] [:error] [pid 17753] [remote 192.168.10.1:68] File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 110, in __init__ [Tue Apr 16 12:12:45.993146 2019] [:error] [pid 17753] [remote 192.168.10.1:68] mod = importlib.import_module(self.SETTINGS_MODULE) [Tue Apr 16 12:12:45.993154 2019] [:error] [pid 17753] [remote 192.168.10.1:68] File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module [Tue Apr 16 12:12:45.993191 2019] [:error] [pid 17753] [remote 192.168.10.1:68] __import__(name) [Tue Apr 16 12:12:45.993199 2019] [:error] [pid 17753] [remote 192.168.10.1:68] File "/usr/share/openstack-dashboard/openstack_dashboard/settings.py", line 460, in <module> [Tue Apr 16 12:12:45.993304 2019] [:error] [pid 17753] [remote 192.168.10.1:68] '.secret_key_store')) [Tue Apr 16 12:12:45.993313 2019] [:error] [pid 17753] [remote 192.168.10.1:68] File "/usr/lib/python2.7/site-packages/horizon/utils/secret_key.py", line 70, in generate_or_read_from_file [Tue Apr 16 12:12:45.993380 2019] [:error] [pid 17753] [remote 192.168.10.1:68] key = read_from_file(key_file) [Tue Apr 16 12:12:45.993398 2019] [:error] [pid 17753] [remote 192.168.10.1:68] File "/usr/lib/python2.7/site-packages/horizon/utils/secret_key.py", line 52, in read_from_file [Tue Apr 16 12:12:45.993413 2019] [:error] [pid 17753] [remote 192.168.10.1:68] with open(key_file, 'r') as f: [Tue Apr 16 12:12:45.993428 2019] [:error] [pid 17753] [remote 192.168.10.1:68] IOError: [Errno 13] Permission denied: '/usr/share/openstack-dashboard/openstack_dashboard/local/.secret_key_store' **acces_log:** 192.168.10.128 - - [16/Apr/2019:12:12:30 +0800] "GET /resource_providers/96408690-7cca-44ad-b187-13ee8fadbca6/allocations HTTP/1.1" 200 54 "-" "nova-compute keystoneauth1/3.10.0 python-requests/2.19.1 CPython/2.7.5" 192.168.10.128 - - [16/Apr/2019:12:12:38 +0800] "GET /resource_providers?in_tree=96408690-7cca-44ad-b187-13ee8fadbca6 HTTP/1.1" 200 807 "-" "nova-compute keystoneauth1/3.10.0 python-requests/2.19.1 CPython/2.7.5" 192.168.10.1 - - [16/Apr/2019:12:12:43 +0800] "GET /dashboard HTTP/1.1" 500 527 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36" 192.168.10.128 - - [16/Apr/2019:12:12:45 +0800] "GET /resource_providers/96408690-7cca-44ad-b187-13ee8fadbca6/inventories HTTP/1.1" 200 395 "-" "nova-compute keystoneauth1/3.10.0 python-requests/2.19.1 CPython/2.7.5" 192.168.10.128 - - [16/Apr/2019:12:12:48 +0800] "GET /resource_providers/96408690-7cca-44ad-b187-13ee8fadbca6/aggregates HTTP/1.1" 200 53 "-" "nova-compute keystoneauth1/3.10.0 python-requests/2.19.1 CPython/2.7.5" 192.168.10.128 - - [16/Apr/2019:12:12:48 +0800] "GET /resource_providers/96408690-7cca-44ad-b187-13ee8fadbca6/traits HTTP/1.1" 200 368 "-" "nova-compute keystoneauth1/3.10.0 python-requests/2.19.1 CPython/2.7.5" 192.168.10.128 - - [16/Apr/2019:12:12:49 +0800] "GET /resource_providers/96408690-7cca-44ad-b187-13ee8fadbca6/inventories HTTP/1.1" 200 395 "-" "nova-compute keystoneauth1/3.10.0 python-requests/2.19.1 CPython/2.7.5" 192.168.10.128 - - [16/Apr/2019:12:13:31 +0800] "GET /resource_providers/96408690-7cca-44ad-b187-13ee8fadbca6/allocations HTTP/1.1" 200 54 "-" "nova-compute keystoneauth1/3.10.0 python-requests/2.19.1 CPython/2.7.5" 192.168.10.128 - - [16/Apr/2019:12:13:31 +0800] "GET /resource_providers?in_tree=96408690-7cca-44ad-b187-13ee8fadbca6 HTTP/1.1" 200 807 "-" "nova-compute keystoneauth1/3.10.0 python-requests/2.19.1 CPython/2.7.5" 192.168.10.128 - - [16/Apr/2019:12:13:31 +0800] "GET /resource_providers/96408690-7cca-44ad-b187-13ee8fadbca6/inventories HTTP/1.1" 200 395 "-" "nova-compute keystoneauth1/3.10.0 python-requests/2.19.1 CPython/2.7.5" 192.168.10.128 - - [16/Apr/2019:12:13:32 +0800] "GET /resource_providers/96408690-7cca-44ad-b187-13ee8fadbca6/aggregates HTTP/1.1" 200 53 "-" "nova-compute keystoneauth1/3.10.0 python-requests/2.19.1 CPython/2.7.5" 192.168.10.128 - - [16/Apr/2019:12:13:32 +0800] "GET /resource_providers/96408690-7cca-44ad-b187-13ee8fadbca6/traits HTTP/1.1" 200 368 "-" "nova-compute keystoneauth1/3.10.0 python-requests/2.19.1 CPython/2.7.5" 192.168.10.128 - - [16/Apr/2019:12:13:32 +0800] "GET /resource_providers/96408690-7cca-44ad-b187-13ee8fadbca6/inventories HTTP/1.1" 200 395 "-" "nova-compute keystoneauth1/3.10.0 python-requests/2.19.1 CPython/2.7.5"

openstack云主机起不来,具体看下边问题和日志

``` 456 ID 77553db8-8258-4e53-b63c-1e79271ab089 状态 错误 可用域 nova 已创建 2019年4月11日 21:57 从创建以来 0 分钟 主机 - 故障 消息 No valid host was found. There are not enough hosts available. 编码 500 详情 File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 392, in build_instances context, request_spec, filter_properties) File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 436, in _schedule_instances hosts = self.scheduler_client.select_destinations(context, spec_obj) File "/usr/lib/python2.7/site-packages/nova/scheduler/utils.py", line 372, in wrapped return func(*args, **kwargs) File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 51, in select_destinations return self.queryclient.select_destinations(context, spec_obj) File "/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py", line 37, in __run_method return getattr(self.instance, __name)(*args, **kwargs) File "/usr/lib/python2.7/site-packages/nova/scheduler/client/query.py", line 32, in select_destinations return self.scheduler_rpcapi.select_destinations(context, spec_obj) File "/usr/lib/python2.7/site-packages/nova/scheduler/rpcapi.py", line 121, in select_destinations return cctxt.call(ctxt, 'select_destinations', **msg_args) File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/client.py", line 158, in call retry=self.retry) File "/usr/lib/python2.7/site-packages/oslo_messaging/transport.py", line 90, in _send timeout=timeout, retry=retry) File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 470, in send retry=retry) File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 461, in _send raise result 已创建 2019年4月11日 21:57 规格 云主机类型名称 云主机1型 云主机类型ID 8eda3b60-4832-4ab0-8f9a-3ef9604b9b8e 内存 2GB VCPU数量 3 VCPU 磁盘 20GB 临时磁盘 2GB IP地址 外网 10.0.0.109 Sharednet1 192.168.200.111 安全组 default 允许 IPv4 from default 允许 IPv4 icmp from default 允许 IPv4 icmp to 0.0.0.0/0 允许 IPv6 to ::/0 允许 IPv4 to 0.0.0.0/0 允许 IPv6 from default 元数据 密钥对名称 无 镜像名称 CentOS6.5 镜像ID 873a7d1e-16d2-49e3-85c1-60e880253dcc ``` ``` 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [req-4b1cd3d0-1b63-4f3d-a101-482dc9b7cdc2 73392af71b774eae8ec398adf423d560 b9670c01673c47fa8c24e854fdf9f737 - - -] [instance: 77553db8-8258-4e53-b63c-1e79271ab089] Instance failed to spawn 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] Traceback (most recent call last): 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2218, in _build_resources 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] yield resources 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2064, in _build_and_run_instance 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] block_device_info=block_device_info) 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2780, in spawn 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] block_device_info=block_device_info) 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4924, in _create_domain_and_network 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] xml, pause=pause, power_on=power_on) 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4855, in _create_domain 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] guest.launch(pause=pause) 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 142, in launch 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] self._encoded_xml, errors='ignore') 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__ 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] self.force_reraise() 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] six.reraise(self.type_, self.value, self.tb) 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 137, in launch 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] return self._domain.createWithFlags(flags) 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 183, in doit 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] result = proxy_call(self._autowrap, f, *args, **kwargs) 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 141, in proxy_call 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] rv = execute(f, *args, **kwargs) 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 122, in execute 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] six.reraise(c, e, tb) 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 80, in tworker 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] rv = meth(*args, **kwargs) 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1110, in createWithFlags 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self) 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] libvirtError: internal error: qemu unexpectedly closed the monitor: 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] (process:51935): GLib-WARNING **: 06:57:57.413: gmem.c:489: custom memory allocation vtable not supported 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] 2019-04-11T21:57:57.529392Z qemu-kvm: CPU feature arat not found 2019-04-12 06:57:57.825 10877 ERROR nova.compute.manager [instance: 77553db8-8258-4e53-b63c-1e79271ab089] ```

pycharm远程调试openstack

搭建了一套OpenStack单机环境,自己本机安装了pycharm专业版。想进行远程调试,pycharm进行了remote_debug 配置,并且自己用一个demo脚本进行了测试,远程可以单步调试。但是当对nova-compute组件调试的时候,一点击单步调试按钮就停止调试,控制台报如下错: Could not find thread pid_22072_id_140464812642256 Available: ['pid_22072_id_140464797811344', 'pid_22072_id_140464586618256', 'pid_22072_id_140464586743952', 'pid_22072_id_140464586618768', 'pid_22072_id_140464586620048']

在检查服务时,nova-compute出错,nova-compute root nova enabled XXX None

root@root:~# nova-manage service list nova-compute root nova enabled XXX None nova-consoleauth root nova enabled :-) 2015-08-06 01:43:01 nova-network root nova enabled :-) 2015-08-06 01:43:03 查看日志,里面是这样显示的: 2015-08-06 09:20:53 CRITICAL nova [-] Cannot recv data: Connection reset by peer 2015-08-06 09:20:54 AUDIT nova.service [-] Starting compute node (version 2012.1.4-LOCALBRANCH:LOCALREVISION) 请问各路大神,这个应该怎么解决!

openstack创建虚拟机时出问题

opentack创建虚拟机做子网,按照官网提示操作后(输出显示是创建成功的),但控制节点大概在几秒后断开连接 检查控制节点网络发现多出两个网卡 ![图片说明](https://img-ask.csdn.net/upload/202004/18/1587202889_452615.png) ping网关,直接不通。检查路由,发现没有br0出的路由 ![图片说明](https://img-ask.csdn.net/upload/202004/18/1587203012_327419.png)

openstack启动实例报错No valid host was found

计算节点的nova错误日志: ``` 2020-02-11 17:05:07.817 1295 ERROR nova.virt.libvirt.guest [req-740339df-c3c4-450b-9787-9c7336c461a3 a7756266208f439bbb8324fb22853932 e7af6fe8f68647ab8010beaa7cb440ed - - -] Error launching a defined domain with XML: <domain type='kvm'> 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [req-740339df-c3c4-450b-9787-9c7336c461a3 a7756266208f439bbb8324fb22853932 e7af6fe8f68647ab8010beaa7cb440ed - - -] [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] Instance failed to spawn 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] Traceback (most recent call last): 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2229, in _build_resources 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] yield resources 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2075, in _build_and_run_instance 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] block_device_info=block_device_info) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2779, in spawn 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] block_device_info=block_device_info) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4923, in _create_domain_and_network 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] xml, pause=pause, power_on=power_on) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4854, in _create_domain 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] guest.launch(pause=pause) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 142, in launch 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] self._encoded_xml, errors='ignore') 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__ 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] self.force_reraise() 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] six.reraise(self.type_, self.value, self.tb) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 137, in launch 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] return self._domain.createWithFlags(flags) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 186, in doit 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] result = proxy_call(self._autowrap, f, *args, **kwargs) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 144, in proxy_call 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] rv = execute(f, *args, **kwargs) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 125, in execute 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] six.reraise(c, e, tb) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 83, in tworker 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] rv = meth(*args, **kwargs) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1110, in createWithFlags 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self) 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] libvirtError: internal error: process exited while connecting to monitor: 2020-02-11T09:05:07.623239Z qemu-kvm: -drive file=/var/lib/nova/instances/8020d30b-33ec-4836-8f61-f23516aa2508/disk,format=qcow2,if=none,id=drive-virtio-disk0,cache=none: Could not open '/var/lib/nova/instances/8020d30b-33ec-4836-8f61-f23516aa2508/disk': Permission denied 2020-02-11 17:05:07.818 1295 ERROR nova.compute.manager [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] ``` 控制节点的nova-conductor.log ``` 2020-02-11 17:05:08.365 958 ERROR nova.scheduler.utils [req-740339df-c3c4-450b-9787-9c7336c461a3 a7756266208f439bbb8324fb22853932 e7af6fe8f68647ab8010beaa7cb440ed - - -] [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] Error from last host: compute (node compute): [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1937, in _do_build_and_run_instance\n filter_properties)\n', u' File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2127, in _build_and_run_instance\n instance_uuid=instance.uuid, reason=six.text_type(e))\n', u"RescheduledException: Build of instance 8020d30b-33ec-4836-8f61-f23516aa2508 was re-scheduled: internal error: process exited while connecting to monitor: 2020-02-11T09:05:07.623239Z qemu-kvm: -drive file=/var/lib/nova/instances/8020d30b-33ec-4836-8f61-f23516aa2508/disk,format=qcow2,if=none,id=drive-virtio-disk0,cache=none: Could not open '/var/lib/nova/instances/8020d30b-33ec-4836-8f61-f23516aa2508/disk': Permission denied\n"] 2020-02-11 17:05:08.450 958 WARNING nova.scheduler.utils [req-740339df-c3c4-450b-9787-9c7336c461a3 a7756266208f439bbb8324fb22853932 e7af6fe8f68647ab8010beaa7cb440ed - - -] [instance: 8020d30b-33ec-4836-8f61-f23516aa2508] Setting instance to ERROR state. ``` dashboard上报错 ![图片说明](https://img-ask.csdn.net/upload/202002/11/1581412785_788625.png) ![图片说明](https://img-ask.csdn.net/upload/202002/11/1581413291_261638.png) 我的网络配置是 ![图片说明](https://img-ask.csdn.net/upload/202002/11/1581412842_430142.png) ![图片说明](https://img-ask.csdn.net/upload/202002/11/1581412854_59896.png) 不知道有没有路过的大师指导这是什么原因啊,在网上找了好多方法没有解决。万分感谢!

openstack 用deshboard创建实例失败

环境是ubuntu12.04 server 3个节点,compute node,controller node,block storage node,网络服务用到是nova-network 每台服务器一个网卡,eth0 192.168.1.xxx, 然后又虚拟了一个ip eth0:0 10.0.0.xxx 接下来完全安装openstack官网的安装部署步骤来的,在安装完以后用deshboard登录,创建实例的时候出现错误,错误信息如下: 云主机概况 信息 名称 a ID 0eb442be-8ad3-4184-b8c4-a8d1027b4ccb 状态 Error 可用域 nova 已创建 七月 3, 2014, 6:19 a.m. 正常运行时间 16 分钟 故障 消息 Remote error: ProcessExecutionError Unexpected error while running command. Command: sudo nova-rootwrap /etc/nova/rootwrap.conf env CONFIG_FILE=["/etc/nova/nova.conf"] NETWORK_ID=1 dnsmasq --strict-order --bind-interfaces --conf-file= --pid-file=/var/lib/ 编码 500 详情 File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 296, in decorated_function return function(self, context, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2075, in run_instance do_run_instance() File "/usr/lib/python2.7/dist-packages/nova/openstack/common/lockutils.py", line 249, in inner return f(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2074, in do_run_instance legacy_bdm_in_spec) File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1207, in _run_instance notify("error", fault=e) # notify that build failed File "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py", line 68, in __exit__ six.reraise(self.type_, self.value, self.tb) File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1191, in _run_instance instance, image_meta, legacy_bdm_in_spec) File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1355, in _build_instance filter_properties, bdms, legacy_bdm_in_spec) File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1401, in _reschedule_or_error self._log_original_error(exc_info, instance_uuid) File "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py", line 68, in __exit__ six.reraise(self.type_, self.value, self.tb) File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1396, in _reschedule_or_error bdms, requested_networks) File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2127, in _shutdown_instance self._try_deallocate_network(context, instance, requested_networks) File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2086, in _try_deallocate_network self._set_instance_error_state(context, instance['uuid']) File "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py", line 68, in __exit__ six.reraise(self.type_, self.value, self.tb) File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2081, in _try_deallocate_network self._deallocate_network(context, instance, requested_networks) File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1775, in _deallocate_network context, instance, requested_networks=requested_networks) File "/usr/lib/python2.7/dist-packages/nova/network/api.py", line 94, in wrapped return func(self, context, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/nova/network/api.py", line 318, in deallocate_for_instance requested_networks=requested_networks) File "/usr/lib/python2.7/dist-packages/nova/network/rpcapi.py", line 190, in deallocate_for_instance return cctxt.call(ctxt, 'deallocate_for_instance', **kwargs) File "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/client.py", line 150, in call wait_for_reply=True, timeout=timeout) File "/usr/lib/python2.7/dist-packages/oslo/messaging/transport.py", line 90, in _send timeout=timeout) File "/usr/lib/python2.7/dist-packages/oslo/messaging/_drivers/amqpdriver.py", line 412, in send return self._send(target, ctxt, message, wait_for_reply, timeout) File "/usr/lib/python2.7/dist-packages/oslo/messaging/_drivers/amqpdriver.py", line 405, in _send raise result 已创建 七月 3, 2014, 6:19 a.m. 规格 云主机类型 m1.tiny 内存 512MB 虚拟内核 1 虚拟内核 磁盘 1GB IP地址 Demo-Net 安全组 default 未定义规则。 元数据 键名称 demo-key 镜像名称 (not found) 云硬盘已连接 连接到 myVolume on vda 我个人感觉可能是network出现了问题,希望遇到过这个问题,或者能提供一些排错方法的朋友致电

fuel openstack6.0安装物理机中遇到问题

我用fuel openstack6.0上在2台联想think stationS30和1台HP DL580服务器上安装实验环境。其中HP DL580是compute节点,其他两个工作站分别是master和control节点,整个安装过程都没有报错,openstack也安装成功,其master的管理页面也是正常打开,唯一就是在control节点的web页面中Hypervisor中看不到compute节点的计算资源,通过查看compue节点的openvswitch-agent和compute的log日志,出现了192.168.0.2:5672 closed connection.check login credentials :socked closed错误。刚开始以为是用户名和密码问题,就分别查看compute和control节点中rabbitMQ的配置文件,发现用户名和密码都一样。这个问题好几天都解决不了,跪求各位高人帮忙指点迷津。错误日志如下图:![图片说明](https://img-ask.csdn.net/upload/201609/03/1472873809_594665.jpg)

kolla安装单节点openstack rocky版本过程中报错。

kolla-ansible prechecks -i /openstack/kolla-deploy/all-in-one验证部署状态 ,在验证前期准备这一过程中,报了如下错误: ``` TASK [prechecks : Checking docker SDK version] ****************************************** fatal: [localhost]: FAILED! => {"changed": false, "cmd": ["/usr/bin/python", "-c", "import docker; print docker.__version__"], "delta": "0:00:00.456509", "end": "2020-03-03 11:00:50.188186", "failed_when_result": true, "rc": 0, "start": "2020-03-03 11:00:49.731677", "stderr": "", "stderr_lines": [], "stdout": "1.10.6", "stdout_lines": ["1.10.6"]} fatal: [allinone]: FAILED! => {"changed": false, "cmd": ["/usr/bin/python", "-c", "import docker; print docker.__version__"], "delta": "0:00:00.368353", "end": "2020-03-03 11:00:50.167966", "failed_when_result": true, "rc": 0, "start": "2020-03-03 11:00:49.799613", "stderr": "", "stderr_lines": [], "stdout": "1.10.6", "stdout_lines": ["1.10.6"]} ``` 一开始百度到的解决办法是,kolla版本与docker-python版本不兼容。于是我把docker-python版本需要升级到高版本的,但是升级了依旧是报这个错误。不知道是什么原因,太难了

2019 AI开发者大会

2019 AI开发者大会(AI ProCon 2019)是由中国IT社区CSDN主办的AI技术与产业年度盛会。多年经验淬炼,如今蓄势待发:2019年9月6-7日,大会将有近百位中美顶尖AI专家、知名企业代表以及千余名AI开发者齐聚北京,进行技术解读和产业论证。我们不空谈口号,只谈技术,诚挚邀请AI业内人士一起共铸人工智能新篇章!

实现简单的文件系统

实验内容: 通过对具体的文件存储空间的管理、文件的物理结构、目录结构和文件操作的实现,加深对文件系统内部功能和实现过程的理解。 要求: 1.在内存中开辟一个虚拟磁盘空间作为文件存储器,在其上实现一个简

MIPS单周期CPU-组成原理实验-华中科技大学

使用logisim布线完成的MIPS单周期CPU,可支持28条指令。跑马灯的代码已经装入了寄存器,可以直接开启时钟运行。

2019数学建模A题高压油管的压力控制 省一论文即代码

2019数学建模A题高压油管的压力控制省一完整论文即详细C++和Matlab代码,希望对同学们有所帮助

基于QT和OpenCV的五子棋实现源码

一个简单的五子棋应用,基于QT和OpenCV的实现源码,通过相邻棋子判断是否获胜,不包含人工智能算法,适合新手入门

Git 实用技巧

这几年越来越多的开发团队使用了Git,掌握Git的使用已经越来越重要,已经是一个开发者必备的一项技能;但很多人在刚开始学习Git的时候会遇到很多疑问,比如之前使用过SVN的开发者想不通Git提交代码为什么需要先commit然后再去push,而不是一条命令一次性搞定; 更多的开发者对Git已经入门,不过在遇到一些代码冲突、需要恢复Git代码时候就不知所措,这个时候哪些对 Git掌握得比较好的少数人,就像团队中的神一样,在队友遇到 Git 相关的问题的时候用各种流利的操作来帮助队友于水火。 我去年刚加入新团队,发现一些同事对Git的常规操作没太大问题,但对Git的理解还是比较生疏,比如说分支和分支之间的关联关系、合并代码时候的冲突解决、提交代码前未拉取新代码导致冲突问题的处理等,我在协助处理这些问题的时候也记录各种问题的解决办法,希望整理后通过教程帮助到更多对Git操作进阶的开发者。 本期教程学习方法分为“掌握基础——稳步进阶——熟悉协作”三个层次。从掌握基础的 Git的推送和拉取开始,以案例进行演示,分析每一个步骤的操作方式和原理,从理解Git 工具的操作到学会代码存储结构、演示不同场景下Git遇到问题的不同处理方案。循序渐进让同学们掌握Git工具在团队协作中的整体协作流程。 在教程中会通过大量案例进行分析,案例会模拟在工作中遇到的问题,从最基础的代码提交和拉取、代码冲突解决、代码仓库的数据维护、Git服务端搭建等。为了让同学们容易理解,对Git简单易懂,文章中详细记录了详细的操作步骤,提供大量演示截图和解析。在教程的最后部分,会从提升团队整体效率的角度对Git工具进行讲解,包括规范操作、Gitlab的搭建、钩子事件的应用等。 为了让同学们可以利用碎片化时间来灵活学习,在教程文章中大程度降低了上下文的依赖,让大家可以在工作之余进行学习与实战,并同时掌握里面涉及的Git不常见操作的相关知识,理解Git工具在工作遇到的问题解决思路和方法,相信一定会对大家的前端技能进阶大有帮助。

实用主义学Python(小白也容易上手的Python实用案例)

原价169,限时立减100元! 系统掌握Python核心语法16点,轻松应对工作中80%以上的Python使用场景! 69元=72讲+源码+社群答疑+讲师社群分享会&nbsp; 【哪些人适合学习这门课程?】 1)大学生,平时只学习了Python理论,并未接触Python实战问题; 2)对Python实用技能掌握薄弱的人,自动化、爬虫、数据分析能让你快速提高工作效率; 3)想学习新技术,如:人工智能、机器学习、深度学习等,这门课程是你的必修课程; 4)想修炼更好的编程内功,优秀的工程师肯定不能只会一门语言,Python语言功能强大、使用高效、简单易学。 【超实用技能】 从零开始 自动生成工作周报 职场升级 豆瓣电影数据爬取 实用案例 奥运冠军数据分析 自动化办公:通过Python自动化分析Excel数据并自动操作Word文档,最终获得一份基于Excel表格的数据分析报告。 豆瓣电影爬虫:通过Python自动爬取豆瓣电影信息并将电影图片保存到本地。 奥运会数据分析实战 简介:通过Python分析120年间奥运会的数据,从不同角度入手分析,从而得出一些有趣的结论。 【超人气老师】 二两 中国人工智能协会高级会员 生成对抗神经网络研究者 《深入浅出生成对抗网络:原理剖析与TensorFlow实现》一书作者 阿里云大学云学院导师 前大型游戏公司后端工程师 【超丰富实用案例】 0)图片背景去除案例 1)自动生成工作周报案例 2)豆瓣电影数据爬取案例 3)奥运会数据分析案例 4)自动处理邮件案例 5)github信息爬取/更新提醒案例 6)B站百大UP信息爬取与分析案例 7)构建自己的论文网站案例

深度学习原理+项目实战+算法详解+主流框架(套餐)

深度学习系列课程从深度学习基础知识点开始讲解一步步进入神经网络的世界再到卷积和递归神经网络,详解各大经典网络架构。实战部分选择当下最火爆深度学习框架PyTorch与Tensorflow/Keras,全程实战演示框架核心使用与建模方法。项目实战部分选择计算机视觉与自然语言处理领域经典项目,从零开始详解算法原理,debug模式逐行代码解读。适合准备就业和转行的同学们加入学习! 建议按照下列课程顺序来进行学习 (1)掌握深度学习必备经典网络架构 (2)深度框架实战方法 (3)计算机视觉与自然语言处理项目实战。(按照课程排列顺序即可)

C/C++跨平台研发从基础到高阶实战系列套餐

一 专题从基础的C语言核心到c++ 和stl完成基础强化; 二 再到数据结构,设计模式完成专业计算机技能强化; 三 通过跨平台网络编程,linux编程,qt界面编程,mfc编程,windows编程,c++与lua联合编程来完成应用强化 四 最后通过基于ffmpeg的音视频播放器,直播推流,屏幕录像,

三个项目玩转深度学习(附1G源码)

从事大数据与人工智能开发与实践约十年,钱老师亲自见证了大数据行业的发展与人工智能的从冷到热。事实证明,计算机技术的发展,算力突破,海量数据,机器人技术等,开启了第四次工业革命的序章。深度学习图像分类一直是人工智能的经典任务,是智慧零售、安防、无人驾驶等机器视觉应用领域的核心技术之一,掌握图像分类技术是机器视觉学习的重中之重。针对现有线上学习的特点与实际需求,我们开发了人工智能案例实战系列课程。打造:以项目案例实践为驱动的课程学习方式,覆盖了智能零售,智慧交通等常见领域,通过基础学习、项目案例实践、社群答疑,三维立体的方式,打造最好的学习效果。

Java基础知识面试题(2020最新版)

文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...

Python界面版学生管理系统

前不久上传了一个控制台版本的学生管理系统,这个是Python界面版学生管理系统,这个是使用pycharm开发的一个有界面的学生管理系统,基本的增删改查,里面又演示视频和完整代码,有需要的伙伴可以自行下

Vue.js 2.0之全家桶系列视频课程

基于新的Vue.js 2.3版本, 目前新全的Vue.js教学视频,让你少走弯路,直达技术前沿! 1. 包含Vue.js全家桶(vue.js、vue-router、axios、vuex、vue-cli、webpack、ElementUI等) 2. 采用笔记+代码案例的形式讲解,通俗易懂

linux“开发工具三剑客”速成攻略

工欲善其事,必先利其器。Vim+Git+Makefile是Linux环境下嵌入式开发常用的工具。本专题主要面向初次接触Linux的新手,熟练掌握工作中常用的工具,在以后的学习和工作中提高效率。

JAVA初级工程师面试36问(完结)

第三十一问: 说一下线程中sleep()和wait()区别? 1 . sleep()是让正在执行的线程主动让出CPU,当时间到了,在回到自己的线程让程序运行。但是它并没有释放同步资源锁只是让出。 2.wait()是让当前线程暂时退让出同步资源锁,让其他线程来获取到这个同步资源在调用notify()方法,才会让其解除wait状态,再次参与抢资源。 3. sleep()方法可以在任何地方使用,而wait()只能在同步方法或同步块使用。 ...

java jdk 8 帮助文档 中文 文档 chm 谷歌翻译

JDK1.8 API 中文谷歌翻译版 java帮助文档 JDK API java 帮助文档 谷歌翻译 JDK1.8 API 中文 谷歌翻译版 java帮助文档 Java最新帮助文档 本帮助文档是使用谷

我以为我对Mysql事务很熟,直到我遇到了阿里面试官

太惨了,面试又被吊打

智鼎(附答案).zip

并不是完整题库,但是有智鼎在线2019年9、10、11三个月的试题,有十七套以上题目,普通的网申行测题足以对付,可以在做题时自己总结一些规律,都不是很难

Visual Assist X 破解补丁

vs a's'sixt插件 支持vs2008-vs2019 亲测可以破解,希望可以帮助到大家

150讲轻松搞定Python网络爬虫

【为什么学爬虫?】 &nbsp; &nbsp; &nbsp; &nbsp;1、爬虫入手容易,但是深入较难,如何写出高效率的爬虫,如何写出灵活性高可扩展的爬虫都是一项技术活。另外在爬虫过程中,经常容易遇到被反爬虫,比如字体反爬、IP识别、验证码等,如何层层攻克难点拿到想要的数据,这门课程,你都能学到! &nbsp; &nbsp; &nbsp; &nbsp;2、如果是作为一个其他行业的开发者,比如app开发,web开发,学习爬虫能让你加强对技术的认知,能够开发出更加安全的软件和网站 【课程设计】 一个完整的爬虫程序,无论大小,总体来说可以分成三个步骤,分别是: 网络请求:模拟浏览器的行为从网上抓取数据。 数据解析:将请求下来的数据进行过滤,提取我们想要的数据。 数据存储:将提取到的数据存储到硬盘或者内存中。比如用mysql数据库或者redis等。 那么本课程也是按照这几个步骤循序渐进的进行讲解,带领学生完整的掌握每个步骤的技术。另外,因为爬虫的多样性,在爬取的过程中可能会发生被反爬、效率低下等。因此我们又增加了两个章节用来提高爬虫程序的灵活性,分别是: 爬虫进阶:包括IP代理,多线程爬虫,图形验证码识别、JS加密解密、动态网页爬虫、字体反爬识别等。 Scrapy和分布式爬虫:Scrapy框架、Scrapy-redis组件、分布式爬虫等。 通过爬虫进阶的知识点我们能应付大量的反爬网站,而Scrapy框架作为一个专业的爬虫框架,使用他可以快速提高我们编写爬虫程序的效率和速度。另外如果一台机器不能满足你的需求,我们可以用分布式爬虫让多台机器帮助你快速爬取数据。 &nbsp; 从基础爬虫到商业化应用爬虫,本套课程满足您的所有需求! 【课程服务】 专属付费社群+每周三讨论会+1v1答疑

JavaWEB商城项目(包括数据库)

功能描述:包括用户的登录注册,以及个人资料的修改.商品的分类展示,详情,加入购物车,生成订单,到银行支付等!另外还有收货地址的和我的收藏等常用操作.环境(JDK 1.7 ,mysql 5.5,Ecli

Python数据挖掘简易入门

&nbsp; &nbsp; &nbsp; &nbsp; 本课程为Python数据挖掘方向的入门课程,课程主要以真实数据为基础,详细介绍数据挖掘入门的流程和使用Python实现pandas与numpy在数据挖掘方向的运用,并深入学习如何运用scikit-learn调用常用的数据挖掘算法解决数据挖掘问题,为进一步深入学习数据挖掘打下扎实的基础。

一学即懂的计算机视觉(第一季)

图像处理和计算机视觉的课程大家已经看过很多,但总有“听不透”,“用不了”的感觉。课程致力于创建人人都能听的懂的计算机视觉,通过生动、细腻的讲解配合实战演练,让学生真正学懂、用会。 【超实用课程内容】 课程内容分为三篇,包括视觉系统构成,图像处理基础,特征提取与描述,运动跟踪,位姿估计,三维重构等内容。课程理论与实战结合,注重教学内容的可视化和工程实践,为人工智能视觉研发及算法工程师等相关高薪职位就业打下坚实基础。 【课程如何观看?】 PC端:https://edu.csdn.net/course/detail/26281 移动端:CSDN 学院APP(注意不是CSDN APP哦) 本课程为录播课,课程2年有效观看时长,但是大家可以抓紧时间学习后一起讨论哦~ 【学员专享增值服务】 源码开放 课件、课程案例代码完全开放给你,你可以根据所学知识,自行修改、优化 下载方式:电脑登录https://edu.csdn.net/course/detail/26281,点击右下方课程资料、代码、课件等打包下载

软件测试2小时入门

本课程内容系统、全面、简洁、通俗易懂,通过2个多小时的介绍,让大家对软件测试有个系统的理解和认识,具备基本的软件测试理论基础。 主要内容分为5个部分: 1 软件测试概述,了解测试是什么、测试的对象、原则、流程、方法、模型;&nbsp; 2.常用的黑盒测试用例设计方法及示例演示;&nbsp; 3 常用白盒测试用例设计方法及示例演示;&nbsp; 4.自动化测试优缺点、使用范围及示例‘;&nbsp; 5.测试经验谈。

初级玩转Linux+Ubuntu(嵌入式开发基础课程)

课程主要面向嵌入式Linux初学者、工程师、学生 主要从一下几方面进行讲解: 1.linux学习路线、基本命令、高级命令 2.shell、vi及vim入门讲解 3.软件安装下载、NFS、Samba、FTP等服务器配置及使用

2019 Python开发者日-培训

本次活动将秉承“只讲技术,拒绝空谈”的理念,邀请十余位身处一线的Python技术专家,重点围绕Web开发、自动化运维、数据分析、人工智能等技术模块,分享真实生产环境中使用Python应对IT挑战的真知灼见。此外,针对不同层次的开发者,大会还安排了深度培训实操环节,为开发者们带来更多深度实战的机会。

快速入门Android开发 视频 教程 android studio

这是一门快速入门Android开发课程,顾名思义是让大家能快速入门Android开发。 学完能让你学会如下知识点: Android的发展历程 搭建Java开发环境 搭建Android开发环境 Android Studio基础使用方法 Android Studio创建项目 项目运行到模拟器 项目运行到真实手机 Android中常用控件 排查开发中的错误 Android中请求网络 常用Android开发命令 快速入门Gradle构建系统 项目实战:看美图 常用Android Studio使用技巧 项目签名打包 如何上架市场

机器学习初学者必会的案例精讲

通过六个实际的编码项目,带领同学入门人工智能。这些项目涉及机器学习(回归,分类,聚类),深度学习(神经网络),底层数学算法,Weka数据挖掘,利用Git开源项目实战等。

4小时玩转微信小程序——基础入门与微信支付实战

这是一个门针对零基础学员学习微信小程序开发的视频教学课程。课程采用腾讯官方文档作为教程的唯一技术资料来源。杜绝网络上质量良莠不齐的资料给学员学习带来的障碍。 视频课程按照开发工具的下载、安装、使用、程序结构、视图层、逻辑层、微信小程序等几个部分组织课程,详细讲解整个小程序的开发过程

相关热词 c#框体中的退出函数 c# 按钮透明背景 c# idl 混编出错 c#在位置0处没有任何行 c# 循环给数组插入数据 c# 多线程死锁的例子 c# 钉钉读取员工排班 c# label 不显示 c#裁剪影像 c#工作进程更新ui
立即提问