分享

neutron网络创建实例500错误


QQ截图20160604194401.png


nova-api错误日志:
2016-06-04 06:55:15.283 5295 INFO nova.openstack.common.periodic_task [-] Skipping periodic task _periodic_update_dns because its interval is negative
2016-06-04 06:55:15.284 5295 WARNING nova.api.ec2.cloud [-] Deprecated: The in tree EC2 API is deprecated as of Kilo release and may be removed in a future release. The stackforge ec2-api project http://git.openstack.org/cgit/stackforge/ec2-api/ is the target replacement for this functionality.
2016-06-04 06:55:15.671 5295 INFO nova.wsgi [-] ec2 listening on 0.0.0.0:8773
2016-06-04 06:55:15.672 5295 INFO nova.openstack.common.service [-] Starting 2 workers
2016-06-04 06:55:15.673 5295 INFO nova.openstack.common.service [-] Started child 5325
2016-06-04 06:55:15.676 5295 INFO nova.openstack.common.service [-] Started child 5326
2016-06-04 06:55:15.690 5325 INFO nova.ec2.wsgi.server [-] (5325) wsgi starting up on http://0.0.0.0:8773
2016-06-04 06:55:15.698 5326 INFO nova.ec2.wsgi.server [-] (5326) wsgi starting up on http://0.0.0.0:8773
2016-06-04 06:55:16.081 5295 WARNING oslo_config.cfg [-] Option "username" from group "keystone_authtoken" is deprecated. Use option "username" from group "keystone_authtoken".
2016-06-04 06:55:16.084 5295 INFO nova.api.openstack [-] V3 API has been disabled by configuration
2016-06-04 06:55:16.174 5295 INFO nova.api.openstack [-] V3 API has been disabled by configuration
2016-06-04 06:55:16.177 5295 INFO nova.wsgi [-] osapi_compute listening on 0.0.0.0:8774
2016-06-04 06:55:16.178 5295 INFO nova.openstack.common.service [-] Starting 2 workers
2016-06-04 06:55:16.183 5295 INFO nova.openstack.common.service [-] Started child 5327
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 195, in call_func
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack     return self.func(req, *args, **kwargs)
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 756, in __call__
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack     content_type, body, accept)
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 821, in _process_stack
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack     action_result = self.dispatch(meth, request, action_args)
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 911, in dispatch
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack     return method(req=request, **action_args)
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/servers.py", line 636, in create
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack     self._handle_create_exception(*sys.exc_info())
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/servers.py", line 465, in _handle_create_exception
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack     six.reraise(*exc_info)
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/servers.py", line 621, in create
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack     check_server_group_quota=check_server_group_quota)
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/hooks.py", line 149, in inner
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack     rv = f(*args, **kwargs)
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1543, in create
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack     check_server_group_quota=check_server_group_quota)
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1128, in _create_instance
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack     image_id, boot_meta = self._get_image(context, image_href)
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 818, in _get_image
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack     image = self.image_api.get(context, image_href)
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/image/api.py", line 93, in get
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack     show_deleted=show_deleted)
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 309, in show
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack     include_locations=include_locations)
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 483, in _translate_from_glance
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack     include_locations=include_locations)
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 545, in _extract_attributes
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack     queued = getattr(image, 'status') == 'queued'
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/glanceclient/openstack/common/apiclient/base.py", line 491, in __getattr__
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack     self.get()
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/glanceclient/openstack/common/apiclient/base.py", line 509, in get
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack     new = self.manager.get(self.id)
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/glanceclient/openstack/common/apiclient/base.py", line 494, in __getattr__
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack     raise AttributeError(k)
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack AttributeError: id
2016-06-04 07:40:42.249 5508 TRACE nova.api.openstack
2016-06-04 07:40:42.264 5508 INFO nova.api.openstack [req-1841cb20-f080-499d-9f6f-6ad37389f541 8ce60f0cd77b4864a5d5f1fd28d420c7 2bcf3bc112594a6cbb1db0cb733d3b7b - - -] http://controller:8774/v2/2bcf3bc112594a6cbb1db0cb733d3b7b/servers returned with HTTP 500
2016-06-04 07:40:42.265 5508 INFO nova.osapi_compute.wsgi.server [req-1841cb20-f080-499d-9f6f-6ad37389f541 8ce60f0cd77b4864a5d5f1fd28d420c7 2bcf3bc112594a6cbb1db0cb733d3b7b - - -] 192.168.1.10 "POST /v2/2bcf3bc112594a6cbb1db0cb733d3b7b/servers HTTP/1.1" status: 500 len: 359 time: 0.1947920
2016-06-04 07:40:42.413 5507 INFO nova.osapi_compute.wsgi.server [req-32498720-2732-48d5-9b53-6cb20fe713b4 8ce60f0cd77b4864a5d5f1fd28d420c7 2bcf3bc112594a6cbb1db0cb733d3b7b - - -] 192.168.1.10 "GET /v2/2bcf3bc112594a6cbb1db0cb733d3b7b/servers/detail?limit=21&project_id=2bcf3bc112594a6cbb1db0cb733d3b7b HTTP/1.1" status: 200 len: 211 time: 0.1138291
2016-06-04 07:40:42.483 5508 INFO nova.osapi_compute.wsgi.server [req-98198716-4e7f-4ebc-b5a1-0932336f1950 8ce60f0cd77b4864a5d5f1fd28d420c7 2bcf3bc112594a6cbb1db0cb733d3b7b - - -] 192.168.1.10 "GET /v2/2bcf3bc112594a6cbb1db0cb733d3b7b/limits?reserved=1 HTTP/1.1" status: 200 len: 708 time: 0.0230241
2016-06-04 07:40:42.515 5507 INFO nova.osapi_compute.wsgi.server [req-7a5618ce-ec1b-4152-a5f7-fa57f362b1af 8ce60f0cd77b4864a5d5f1fd28d420c7 2bcf3bc112594a6cbb1db0cb733d3b7b - - -] 192.168.1.10 "GET /v2/2bcf3bc112594a6cbb1db0cb733d3b7b/limits?reserved=1 HTTP/1.1" status: 200 len: 708 time: 0.0212381

已有(22)人评论

跳转到指定楼层
youxizy 发表于 2016-6-15 18:42:05
我也是这个问题,看一下我的nova.conf
[mw_shl_code=applescript,true][DEFAULT]
rpc_backend=rabbit
my_ip=10.228.114.34
network_manager=nova.network.manager.FlatDHCPManager
auth_strategy=keystone
network_api_class=nova.network.api.API
public_interface=eno1
linuxnet_interface_driver=nova.network.linux_net.LinuxBridgeInterfaceDriver
send_arp_for_ha=True
flat_network_bridge=br100
flat_interface=eno1
network_size=254
force_dhcp_release=True
multi_host=True
security_group_api=nova
share_dhcp_address=True
debug=true
verbose=True
firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver
allow_same_net_traffic=False
novncproxy_base_url=http://localhost:6080/vnc_auto.html
vncserver_listen=10.228.114.34
vncserver_proxyclient_address=10.228.114.34
vnc_enabled=true
[database]
connection=mysql://nova:openstack@localhost/nova
[glance]
host=localhost
[keystone_authtoken]
auth_uri=http://localhost:5000
auth_url=http://localhost:35357
auth_plugin=password
project_domain_id=default
user_domain_id=default
project_name=service
username=nova
password=openstack
[oslo_concurrency]
lock_path=/var/lib/nova/tmp
[oslo_messaging_rabbit]
rabbit_host=localhost
rabbit_userid=openstack
rabbit_password=openstack
[/mw_shl_code]
回复

使用道具 举报

445433045 发表于 2016-6-18 01:41:39
问题描述:
出现这个500错误的原因是python-glanceclient版本过高。当我执行glance image-list   glance image-show f114bed4-2116-4943-92c8-092842370b01 nova image-list的时候都不报错,但是执行nova image-show f114bed4-2116-4943-92c8-092842370b01的时候会返回以下错误:
nova image-show f114bed4-2116-4943-92c8-092842370b01
ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-5b3caf5c-7806-4623-a1f8-f3ae448c0599)
[root@controller ~]# nova --debug image-show f114bed4-2116-4943-92c8-092842370b01
DEBUG (session:195) REQ: curl -g -i -X GET http://controller:35357/v3 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
INFO (connectionpool:213) Starting new HTTP connection (1): controller
DEBUG (connectionpool:393) "GET /v3 HTTP/1.1" 200 250
DEBUG (session:224) RESP: [200] Content-Length: 250 Vary: X-Auth-Token Keep-Alive: timeout=5, max=100 Server: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 Connection: Keep-Alive Date: Fri, 17 Jun 2016 17:14:58 GMT Content-Type: application/json x-openstack-request-id: req-b756936d-6a91-46a7-8ee0-44f3c7d4592e
RESP BODY: {"version": {"status": "stable", "updated": "2015-03-30T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.4", "links": [{"href": "http://controller:35357/v3/", "rel": "self"}]}}

DEBUG (base:171) Making authentication request to http://controller:35357/v3/auth/tokens
DEBUG (connectionpool:393) "POST /v3/auth/tokens HTTP/1.1" 201 2257
DEBUG (session:195) REQ: curl -g -i -X GET http://controller:8774/v2/dbf7d4ba55aa4f1fa11978c99e11c890/images/f114bed4-2116-4943-92c8-092842370b01 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}2f6da6c3efa76a2a376cc42d478c06e96686a3f9"
INFO (connectionpool:213) Starting new HTTP connection (1): controller
DEBUG (connectionpool:393) "GET /v2/dbf7d4ba55aa4f1fa11978c99e11c890/images/f114bed4-2116-4943-92c8-092842370b01 HTTP/1.1" 500 128
DEBUG (session:224) RESP:
DEBUG (shell:914) The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-af38eba4-0ce0-4d65-bfc2-589d1a9916e0)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 911, in main
    OpenStackComputeShell().main(argv)
  File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 838, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/site-packages/novaclient/v2/shell.py", line 1186, in do_image_show
    image = _find_image(cs, args.image)
  File "/usr/lib/python2.7/site-packages/novaclient/v2/shell.py", line 1894, in _find_image
    return utils.find_resource(cs.images, image)
  File "/usr/lib/python2.7/site-packages/novaclient/utils.py", line 206, in find_resource
    return manager.get(tmp_id)
  File "/usr/lib/python2.7/site-packages/novaclient/v2/images.py", line 53, in get
    return self._get("/images/%s" % base.getid(image), "image")
  File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 156, in _get
    _resp, body = self.api.client.get(url)
  File "/usr/lib/python2.7/site-packages/keystoneclient/adapter.py", line 170, in get
    return self.request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 96, in request
    raise exceptions.from_response(resp, body, url, method)
ClientException: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-af38eba4-0ce0-4d65-bfc2-589d1a9916e0)
ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-af38eba4-0ce0-4d65-bfc2-589d1a9916e0)

解决方法:升级一下python-glanceclient的版本,然后重启服务器就可以解决了。。。
回复

使用道具 举报

qcbb001 发表于 2016-6-4 20:35:33
先确保服务都是正常的,特别是Nova的相关服务。
Nova api可以重装下
回复

使用道具 举报

445433045 发表于 2016-6-4 20:49:56
qcbb001 发表于 2016-6-4 20:35
先确保服务都是正常的,特别是Nova的相关服务。
Nova api可以重装下

nova各个服务都是正常的,这个情况正常吗? QQ截图20160604204739.png
回复

使用道具 举报

445433045 发表于 2016-6-4 20:57:46
qcbb001 发表于 2016-6-4 20:35
先确保服务都是正常的,特别是Nova的相关服务。
Nova api可以重装下

发现l3_agent服务启动失败了
cat l3-agent.log
2016-06-04 08:57:12.719 5812 INFO neutron.common.config [-] Logging enabled!
2016-06-04 08:57:12.719 5812 INFO neutron.common.config [-] /usr/bin/neutron-l3-agent version 2015.1.2
2016-06-04 08:57:12.742 5812 ERROR neutron.agent.l3.agent [-] Error importing interface driver 'neutron.agent.linux.interfae.OVSInterfaceDriver'

回复

使用道具 举报

NEOGX 发表于 2016-6-4 22:02:46
445433045 发表于 2016-6-4 20:57
发现l3_agent服务启动失败了
cat l3-agent.log
2016-06-04 08:57:12.719 5812 INFO neutron.common.co ...
/etc/neutron/l3-agent.ini
interface_driver 是如何配置的
下面是一个例子
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
回复

使用道具 举报

445433045 发表于 2016-6-5 14:43:22
NEOGX 发表于 2016-6-4 22:02
/etc/neutron/l3-agent.ini
interface_driver 是如何配置的
下面是一个例子

谢谢,配置写错了。已经修改;l3 agent服务也启动正常,但是Nova-api还是报那个错误?
回复

使用道具 举报

qcbb001 发表于 2016-6-7 20:20:54

回帖奖励 +1 云币

445433045 发表于 2016-6-5 14:43
谢谢,配置写错了。已经修改;l3 agent服务也启动正常,但是Nova-api还是报那个错误?

应该还是配置的问题
回复

使用道具 举报

445433045 发表于 2016-6-8 12:26:15
qcbb001 发表于 2016-6-7 20:20
应该还是配置的问题

我定位了以下错误,在glance处。使用nova image-list 和glance image-list都没有问题,唯独在dashboard页面找到上传的镜像查看镜像详细信息的时候报这个500错误,但是我的配置文件找了好几遍还是没有找到错在哪里了
回复

使用道具 举报

youxizy 发表于 2016-6-15 16:52:51
LZ问题解决了吗?把配置文件内容列出来看看呢?nova和glance?
回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条