鸿 网 互 联 www.68idc.cn

当前位置 : 服务器租用 > 操作系统维护 > vmware > >

openstack 创建虚拟机报错:NetworkNotFound: Network X could not be fo

来源:互联网 作者:佚名 时间:2015-01-10 21:54
网络前沿与资讯,网络风云,网站建设与运营,网赚技巧,软件系统应用,数码科技评测

openstack 在创建虚拟时 创建失败,查看计算节点 nova-network.log 发现有如下报错信息 :

2012-10-24 18:32:58 ERROR nova.rpc.amqp [req-539ff879-f443-4d7e-bdc0-e3eb6636c190 e38f041188a44b829765d50ea9523201 4a10213860fd4b2087e7568ac98ff394] Exception during message handling
2012-10-24 18:32:58 TRACE nova.rpc.amqp Traceback (most recent call last):
2012-10-24 18:32:58 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 253, in _process_data
2012-10-24 18:32:58 TRACE nova.rpc.amqp     rval = node_func(context=ctxt, **node_args)
2012-10-24 18:32:58 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 257, in wrapped
2012-10-24 18:32:58 TRACE nova.rpc.amqp     return func(self, context, *args, **kwargs)
2012-10-24 18:32:58 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 372, in deallocate_for_instance
2012-10-24 18:32:58 TRACE nova.rpc.amqp     super(FloatingIP, self).deallocate_for_instance(context, **kwargs)
2012-10-24 18:32:58 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 257, in wrapped
2012-10-24 18:32:58 TRACE nova.rpc.amqp     return func(self, context, *args, **kwargs)
2012-10-24 18:32:58 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 927, in deallocate_for_instance
2012-10-24 18:32:58 TRACE nova.rpc.amqp     **kwargs)
2012-10-24 18:32:58 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 230, in deallocate_fixed_ip
2012-10-24 18:32:58 TRACE nova.rpc.amqp     network = self._get_network_by_id(context, fixed_ip['network_id'])
2012-10-24 18:32:58 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 1543, in _get_network_by_id
2012-10-24 18:32:58 TRACE nova.rpc.amqp     return self.db.network_get(context, network_id)
2012-10-24 18:32:58 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/db/api.py", line 755, in network_get
2012-10-24 18:32:58 TRACE nova.rpc.amqp     return IMPL.network_get(context, network_id)
2012-10-24 18:32:58 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 120, in wrapper
2012-10-24 18:32:58 TRACE nova.rpc.amqp     return f(*args, **kwargs)
2012-10-24 18:32:58 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 1935, in network_get
2012-10-24 18:32:58 TRACE nova.rpc.amqp     raise exception.NetworkNotFound(network_id=network_id)
2012-10-24 18:32:58 TRACE nova.rpc.amqp NetworkNotFound: Network 1 could not be found.

提示  网络 1 无法找到

这是之前测试时对网络进行多次操作引起的

解决方法:

/usr/bin/mysql -uroot -e "DROP DATABASE nova;"
/usr/bin/nova-manage db sync

重新初始化nova 数据库

网友评论
<