openstack 在建立虛擬時 建立失敗,查看計算節點 nova-network.log 發現有以下報錯信息 :node
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.python
提示 網絡 1 沒法找到mysql
這是以前測試時對網絡進行屢次操做引發的 sql
解決方法:數據庫
/usr/bin/mysql -uroot -e "DROP DATABASE nova;"
/usr/bin/nova-manage db syncapi
從新初始化nova 數據庫網絡