分享

neutron网络创建实例500错误

youxizy 发表于 2016-6-15 18:44:12
我也是这个问题,看一下我的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]
回复

使用道具 举报

youxizy 发表于 2016-6-15 18:45:43
glance-api.conf也贴一下
[mw_shl_code=text,true][DEFAULT]
verbose=True
debug=True
notification_driver = noop
[database]
connection=mysql://glance:openstack@localhost/glance
[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=glance
password=openstack
[paste_deploy]
flavor=keystone
[glance_store]
default_store=file
filesystem_store_datadir=/var/lib/glance/images/[/mw_shl_code]
回复

使用道具 举报

445433045 发表于 2016-6-16 08:55:24
youxizy 发表于 2016-6-15 18:42
我也是这个问题,看一下我的nova.conf
[mw_shl_code=applescript,true][DEFAULT]
rpc_backend=rabbit

配置文件找了好几遍就是找不到问题在哪里?有时候会出现这个错误,但是还是不知道如何解决
回复

使用道具 举报

youxizy 发表于 2016-6-17 16:20:03
我又用packstack自动安装了一台新机器,结果还是这个错误,也是醉了
回复

使用道具 举报

445433045 发表于 2016-6-17 17:19:48
youxizy 发表于 2016-6-17 16:20
我又用packstack自动安装了一台新机器,结果还是这个错误,也是醉了

我找到问题了,是nova image-show命令会返回500错误。
回复

使用道具 举报

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的版本,然后重启服务器就可以解决了。。。
回复

使用道具 举报

youxizy 发表于 2016-6-20 18:21:15
445433045 发表于 2016-6-18 01:41
问题描述:
出现这个500错误的原因是python-glanceclient版本过高。当我执行glance image-list   glance i ...

恩,升级了之后就可以了
回复

使用道具 举报

风中号角 发表于 2016-6-22 17:29:05
本帖最后由 风中号角 于 2016-6-22 18:24 编辑

一样的问题,解决了,谢谢楼主
回复

使用道具 举报

xiaoxue 发表于 2016-7-4 11:14:16
风中号角 发表于 2016-6-22 17:29
一样的问题,解决了,谢谢楼主

您好,请问您是怎么升级的,能贴下具体命令吗
回复

使用道具 举报

xiaoxue 发表于 2016-7-4 11:14:52
youxizy 发表于 2016-6-20 18:21
恩,升级了之后就可以了

您好,请问您是怎么升级的,能贴下具体命令吗?
回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条