分享

求助帖:创建实例的时候报错

skymoou 发表于 2016-5-17 18:11:14 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 2 6916
2016-05-17 17:58:24.710 23935 DEBUG oslo_concurrency.lockutils [req-ab5dfbe2-169c-400b-9f61-cad2c04aa0ef 6399e807c9af4d979863ad0ffbac19dd 8fc7180b28624346ae2ca47421cc5707 - - -] Releasing semaphore "neutron_admin_auth_token_lock" lock /usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py:211
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions [req-ab5dfbe2-169c-400b-9f61-cad2c04aa0ef 6399e807c9af4d979863ad0ffbac19dd 8fc7180b28624346ae2ca47421cc5707 - - -] Unexpected exception in API method
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions Traceback (most recent call last):
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line 478, in wrapped
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions     return f(*args, **kwargs)
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 73, in wrapper
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 73, in wrapper
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/servers.py", line 611, in create
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions     **create_kwargs)
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/hooks.py", line 149, in inner
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions     rv = f(*args, **kwargs)
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1581, in create
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions     check_server_group_quota=check_server_group_quota)
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1181, in _create_instance
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions     auto_disk_config, reservation_id, max_count)
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 955, in _validate_and_build_base_options
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions     pci_request_info, requested_networks)
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1059, in create_pci_requests_for_sriov_ports
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions     neutron = get_client(context, admin=True)
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 237, in get_client
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions     auth_token = _ADMIN_AUTH.get_token(_SESSION)
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/base.py", line 200, in get_token
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions     return self.get_access(session).auth_token
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/base.py", line 240, in get_access
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions     self.auth_ref = self.get_auth_ref(session)
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/generic/base.py", line 184, in get_auth_ref
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions     self._plugin = self._do_create_plugin(session)
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/generic/base.py", line 139, in _do_create_plugin
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions     authenticated=False)
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 337, in inner
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/base.py", line 400, in get_discovery
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions     authenticated=authenticated)
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 337, in inner
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/keystoneclient/_discover.py", line 142, in __init__
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions     authenticated=authenticated)
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 337, in inner
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/keystoneclient/_discover.py", line 40, in get_version_data
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions     resp = session.get(url, headers=headers, authenticated=authenticated)
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 493, in get
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions     return self.request(url, 'GET', **kwargs)
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 337, in inner
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 328, in request
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions     raise exceptions.EndpointNotFound()
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions EndpointNotFound
2016-05-17 17:58:24.711 23935 ERROR nova.api.openstack.extensions
2016-05-17 17:58:24.714 23935 INFO nova.api.openstack.wsgi [req-ab5dfbe2-169c-400b-9f61-cad2c04aa0ef 6399e807c9af4d979863ad0ffbac19dd 8fc7180b28624346ae2ca47421cc5707 - - -] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'keystoneclient.exceptions.EndpointNotFound'>
2016-05-17 17:58:24.715 23935 DEBUG nova.api.openstack.wsgi [req-ab5dfbe2-169c-400b-9f61-cad2c04aa0ef 6399e807c9af4d979863ad0ffbac19dd 8fc7180b28624346ae2ca47421cc5707 - - -] Returning 500 to user: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'keystoneclient.exceptions.EndpointNotFound'> __call__ /usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py:1175
2016-05-17 17:58:24.717 23935 INFO nova.osapi_compute.wsgi.server [req-ab5dfbe2-169c-400b-9f61-cad2c04aa0ef 6399e807c9af4d979863ad0ffbac19dd 8fc7180b28624346ae2ca47421cc5707 - - -] 192.168.91.129 "POST /v2/8fc7180b28624346ae2ca47421cc5707/servers HTTP/1.1" status: 500 len: 447 time: 0.2011440





以上是nova-api的日志,根据日志来看是没有找到endpoint导致的,但是我查看了endpoint发现并没有少,如下
+----------------------------------+-----------+--------------+--------------+---------+-----------+---------------------------------------------+
| ID                               | Region    | Service Name | Service Type | Enabled | Interface | URL                                         |
+----------------------------------+-----------+--------------+--------------+---------+-----------+---------------------------------------------+
| 30dd89fc721442918618c52293c4d611 | RegionOne | nova         | compute      | True    | public    | http://192.168.91.129:8774/v2/%(tenant_id)s |
| 5034f7cd308143be8f90e2bc0dd0017c | RegionOne | glance       | image        | True    | public    | http://192.168.91.129:9292                  |
| 554a6ad753404ac8ad23c0e60e003c42 | RegionOne | nova         | compute      | True    | admin     | http://192.168.91.129:8774/v2/%(tenant_id)s |
| 77508bacbc9b45618d94f706f1e9fbb4 | RegionOne | keystone     | identity     | True    | public    | http://192.168.91.129:5000/v2.0             |
| 88f7ea1a440d49a782c2a03c9af2e82e | RegionOne | glance       | image        | True    | admin     | http://192.168.91.129:9292                  |
| 95e98c56e2a840b0bae49261eca33b9a | RegionOne | neutron      | network      | True    | admin     | http://192.168.91.129:9696                  |
| 9ecc80d2308a4ecab5c4801a6d2dd94a | RegionOne | neutron      | network      | True    | internal  | http://192.168.91.129:9696                  |
| a33dd389b5e543e98cd6eb3d21e238e9 | RegionOne | keystone     | identity     | True    | admin     | http://192.168.91.129:35357/v2.0            |
| a8cf268899044d83b7b0148190691117 | RegionOne | keystone     | identity     | True    | internal  | http://192.168.91.129:5000/v2.0             |
| d86b1ac2c3df4d6bbd73dfea3a82e171 | RegionOne | glance       | image        | True    | internal  | http://192.168.91.129:9292                  |
| f1e3a76b9253421f886fa7c8e78f4957 | RegionOne | neutron      | network      | True    | public    | http://192.168.91.129:9696                  |
| fcc837a0782b4919988158905f016b1f | RegionOne | nova         | compute      | True    | internal  | http://192.168.91.129:8774/v2/%(tenant_id)s |
+----------------------------------+-----------+--------------+--------------+---------+-----------+---------------------------------------------+

想请教一下有人遇到过这个问题没有,或者可以指点我一下原因。不胜感激!!

已有(2)人评论

跳转到指定楼层
langke93 发表于 2016-5-17 21:40:23
这里是否多次创建过,如果服务于endpoint不一致也会产生这种情况
回复

使用道具 举报

skymoou 发表于 2016-5-18 09:41:35
langke93 发表于 2016-5-17 21:40
这里是否多次创建过,如果服务于endpoint不一致也会产生这种情况

没有多次创建,第一次创建这个实例就报错。

另外:请教一下怎么看endpoint与服务器不一致呢
回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条