vm启动创建port的时候显示需要验证身份 [已关闭]

提问于 2014-09-15 09:03:49 -0500

wangrich 图像

我按照openstack icehouse官方给出的在ubuntu 14.04 server上部署的步骤进行搭建工作,三个QEMU虚拟机分别扮演compute、controller、network角色。 安装好glance、neutron、nova、keystone等核心服务后,试着启动Cirros的镜像,却显示“no valid host was found”。查看Compute的nova-compute.log日志,显示在demo-net上试图创建port时,返回了"authentication required"Http 401结果。因此没能启动Cirros系统。

请问为什么会出现这个问题?我应该怎么解决?谢谢!

日志如下:(为了不显示链接形式我把一些“http”变成了“h-ttp”)

2014-09-15 20:48:50.939 1754 DEBUG neutronclient.client [-] REQ: curl -i h-ttp://controller:9696/v2.0/ports.json -X POST -H "X-Auth-Token: (省略)" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient" -d '{"port": {"binding:host_id": "compute", "admin_state_up": true, "network_id": "065eea33-798c-490c-ae45-65cb323b0383", "tenant_id": "a8c813f2bd9b4d41b895f933bac32c3d", "device_owner": "compute:None", "security_groups": ["335f1122-a119-42ab-8c6b-4c1dc07935cb"], "device_id": "65f8c769-d260-4fef-ae8e-db9edaf91140"}}' http_log_req /usr/lib/python2.7/dist-packages/neutronclient/common/utils.py:173

2014-09-15 20:48:50.958 1754 DEBUG neutronclient.client [-] RESP:{'status': '401', 'content-length': '23', 'x-openstack-request-id': 'req-471db8f6-9e67-4215-9ebf-3471164a8298', 'date': 'Mon, 15 Sep 2014 12:48:50 GMT', 'content-type': 'text/plain', 'www-authenticate': "Keystone uri='h-ttp://controller:5000'"} Authentication required http_log_resp /usr/lib/python2.7/dist-packages/neutronclient/common/utils.py:179

2014-09-15 20:48:50.959 1754 ERROR nova.network.neutronv2.api [-] [instance: 65f8c769-d260-4fef-ae8e-db9edaf91140] Neutron error creating port on network 065eea33-798c-490c-ae45-65cb323b0383

我确认调用nova boot时使用的username,tenant name都无误

edit retag flag offensive reopen merge delete

Closed for the following reason 问题已经解决,已得到正确答案 by wangrich
close date 2015-10-28 02:10:48.635300