分享

mitaka创建镜像出错

gide 发表于 2017-1-30 15:58:00 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 2 11984
openstack server create --flavor m1.tiny --image cirros --nic net-id=82926fd5-98e8-418f-971e-1af3a8ed4bcf --security-group default --key-name mykey provider-instance
Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'neutronclient.common.exceptions.Unauthorized'> (HTTP 500) (Request-ID: req-092d836f-e40c-4e22-a2ec-3fe40a3fc58b)

nova-api.log
2017-01-30 14:00:22.123 19379 ERROR nova.api.openstack.extensions [req-092d836f-e40c-4e22-a2ec-3fe40a3fc58b c7729f5bea244b4599ca512a247e9ce1 6ff8c572308f4f358f722daba6e630ee - - -] Unexpected exception in API method
2017-01-30 14:00:22.123 19379 ERROR nova.api.openstack.extensions Traceback (most recent call last):
2017-01-30 14:00:22.123 19379 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/extensions.py", line 478, in wrapped
2017-01-30 14:00:22.123 19379 ERROR nova.api.openstack.extensions     return f(*args, **kwargs)
2017-01-30 14:00:22.123 19379 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 73, in wrapper
2017-01-30 14:00:22.123 19379 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
2017-01-30 14:00:22.123 19379 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 73, in wrapper
2017-01-30 14:00:22.123 19379 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
2017-01-30 14:00:22.123 19379 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 73, in wrapper
2017-01-30 14:00:22.123 19379 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
2017-01-30 14:00:22.123 19379 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/servers.py", line 629, in create
2017-01-30 14:00:22.123 19379 ERROR nova.api.openstack.extensions     **create_kwargs)
2017-01-30 14:00:22.123 19379 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/hooks.py", line 154, in inner
2017-01-30 14:00:22.123 19379 ERROR nova.api.openstack.extensions     rv = f(*args, **kwargs)
2017-01-30 14:00:22.123 19379 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1563, in create
2017-01-30 14:00:22.123 19379 ERROR nova.api.openstack.extensions     check_server_group_quota=check_server_group_quota)
2017-01-30 14:00:22.123 19379 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1146, in _create_instance
2017-01-30 14:00:22.123 19379 ERROR nova.api.openstack.extensions     reservation_id, max_count)
2017-01-30 14:00:22.123 19379 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 873, in _validate_and_build_base_options
2017-01-30 14:00:22.123 19379 ERROR nova.api.openstack.extensions     pci_request_info, requested_networks)
2017-01-30 14:00:22.123 19379 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 1081, in create_pci_requests_for_sriov_ports

2017-01-30 14:00:22.123 19379 ERROR nova.api.openstack.extensions     neutron = get_client(context, admin=True)
2017-01-30 14:00:22.123 19379 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 141, in get_client
2017-01-30 14:00:22.123 19379 ERROR nova.api.openstack.extensions     _ADMIN_AUTH = _load_auth_plugin(CONF)
2017-01-30 14:00:22.123 19379 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 122, in _load_auth_plugin
2017-01-30 14:00:22.123 19379 ERROR nova.api.openstack.extensions     raise neutron_client_exc.Unauthorized(message=err_msg)
2017-01-30 14:00:22.123 19379 ERROR nova.api.openstack.extensions Unauthorized: Unknown auth type: None
2017-01-30 14:00:22.123 19379 ERROR nova.api.openstack.extensions
2017-01-30 14:00:22.138 19379 INFO nova.api.openstack.wsgi [req-092d836f-e40c-4e22-a2ec-3fe40a3fc58b c7729f5bea244b4599ca512a247e9ce1 6ff8c572308f4f358f722daba6e630ee - - -] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'neutronclient.common.exceptions.Unauthorized'>






已有(2)人评论

跳转到指定楼层
easthome001 发表于 2017-1-30 20:50:06
原因很多,总之
首先检测keystone是否有问题。
然后Nova,特别是Nova api
上面服务及各个进程确保正常
回复

使用道具 举报

lannist_Jli7e 发表于 2017-8-24 10:18:02
楼主解决没有,我也碰到一模一样的问题
回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条