分享

创建VM实例,出现以下出错,求大神解决,多谢

bule_sky 发表于 2016-11-26 16:07:39 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 4 6476
/var/log/nova/nova-api.log" 1551L, 332240C
2011-01-04 19:46:42.226 26068 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1543, in create
2011-01-04 19:46:42.226 26068 TRACE nova.api.openstack     check_server_group_quota=check_server_group_quota)
2011-01-04 19:46:42.226 26068 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1151, in _create_instance
2011-01-04 19:46:42.226 26068 TRACE nova.api.openstack     auto_disk_config, reservation_id, max_count)
2011-01-04 19:46:42.226 26068 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 904, in _validate_and_build_base_options
2011-01-04 19:46:42.226 26068 TRACE nova.api.openstack     pci_request_info, requested_networks)
2011-01-04 19:46:42.226 26068 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 894, in create_pci_requests_for_sriov_ports
2011-01-04 19:46:42.226 26068 TRACE nova.api.openstack     neutron = get_client(context, admin=True)
2011-01-04 19:46:42.226 26068 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 205, in get_client
2011-01-04 19:46:42.226 26068 TRACE nova.api.openstack     auth_token = _ADMIN_AUTH.get_token(_SESSION)
2011-01-04 19:46:42.226 26068 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/base.py", line 104, in get_token
2011-01-04 19:46:42.226 26068 TRACE nova.api.openstack     return self.get_access(session).auth_token
2011-01-04 19:46:42.226 26068 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/base.py", line 144, in get_access
2011-01-04 19:46:42.226 26068 TRACE nova.api.openstack     self.auth_ref = self.get_auth_ref(session)
2011-01-04 19:46:42.226 26068 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/v2.py", line 78, in get_auth_ref
2011-01-04 19:46:42.226 26068 TRACE nova.api.openstack     authenticated=False, log=False)
2011-01-04 19:46:42.226 26068 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 497, in post
2011-01-04 19:46:42.226 26068 TRACE nova.api.openstack     return self.request(url, 'POST', **kwargs)
2011-01-04 19:46:42.226 26068 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 318, in inner
2011-01-04 19:46:42.226 26068 TRACE nova.api.openstack     return func(*args, **kwargs)
2011-01-04 19:46:42.226 26068 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 397, in request
2011-01-04 19:46:42.226 26068 TRACE nova.api.openstack     raise exceptions.from_response(resp, method, url)
2011-01-04 19:46:42.226 26068 TRACE nova.api.openstack BadRequest: Expecting to find username or userId in passwordCredentials - the server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400) (Request-ID: req-d5164e44-d317-448f-b7db-5a159fa39d69)

已有(4)人评论

跳转到指定楼层
arsenduan 发表于 2016-11-26 17:10:59
  /etc/nova/nova.conf 文件(计算and 控制节点)

[mw_shl_code=bash,true][DEFAULT]

network_api_class=nova.network.neutronv2.api.API

security_group_api=neutron[/mw_shl_code]

上面配置修改为下面:

[mw_shl_code=bash,true]network_api_class=nova.network.api.API

security_group_api=nova[/mw_shl_code]

回复

使用道具 举报

bule_sky 发表于 2016-11-26 17:25:34
arsenduan 发表于 2016-11-26 17:10
/etc/nova/nova.conf 文件(计算and 控制节点)

[mw_shl_code=bash,true][DEFAULT]

我的版本是kilo 版本
回复

使用道具 举报

bule_sky 发表于 2016-11-26 18:41:27
在控制节点上/etc/nova/nova.conf,同理也需要在计算节点上配置,按照官网配置即可
[neutron]
service_metadata_proxy = True
url = http://172.15.0.1:9696
retion_name = RegionOne
admin_tenant_name = service
auth_strategy = keystone
admin_auth_url = http://172.15.0.1:35357/v2.0
admin_password = neutron
admin_username = neutron
回复

使用道具 举报

bule_sky 发表于 2016-11-26 18:43:32
需要检查控制节点和计算节点 /etc/nova/nova.conf:
[neutron]
service_metadata_proxy = True
url = http://172.15.0.1:9696
retion_name = RegionOne
admin_tenant_name = service
auth_strategy = keystone
admin_auth_url = http://172.15.0.1:35357/v2.0
admin_password = neutron
admin_username = neutron
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条