2013-04-24 12:14:05 10555 TRACE nova.compute.manager [instance: cc8a04a5-c320-464a-b21c-9014ce3e56ca] Traceback (most recent call last):
2013-04-24 12:14:05 10555 TRACE nova.compute.manager [instance: cc8a04a5-c320-464a-b21c-9014ce3e56ca] File "/usr/lib/Python2.7/dist-packages/nova/compute/manager.py", line 749, in _spawn
2013-04-24 12:14:05 10555 TRACE nova.compute.manager [instance: cc8a04a5-c320-464a-b21c-9014ce3e56ca] block_device_info)
2013-04-24 12:14:05 10555 TRACE nova.compute.manager [instance: cc8a04a5-c320-464a-b21c-9014ce3e56ca] File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 117, in wrapped
2013-04-24 12:14:05 10555 TRACE nova.compute.manager [instance: cc8a04a5-c320-464a-b21c-9014ce3e56ca] temp_level, payload)
2013-04-24 12:14:05 10555 TRACE nova.compute.manager [instance: cc8a04a5-c320-464a-b21c-9014ce3e56ca] File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
2013-04-24 12:14:05 10555 TRACE nova.compute.manager [instance: cc8a04a5-c320-464a-b21c-9014ce3e56ca] self.gen.next()
2013-04-24 12:14:05 10555 TRACE nova.compute.manager [instance: cc8a04a5-c320-464a-b21c-9014ce3e56ca] File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 92, in wrapped
2013-04-24 12:14:05 10555 TRACE nova.compute.manager [instance: cc8a04a5-c320-464a-b21c-9014ce3e56ca] return f(*args, **kw)
2013-04-24 12:14:05 10555 TRACE nova.compute.manager [instance: cc8a04a5-c320-464a-b21c-9014ce3e56ca] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 1086, in spawn
2013-04-24 12:14:05 10555 TRACE nova.compute.manager [instance: cc8a04a5-c320-464a-b21c-9014ce3e56ca] block_device_info=block_device_info)
2013-04-24 12:14:05 10555 TRACE nova.compute.manager [instance: cc8a04a5-c320-464a-b21c-9014ce3e56ca] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 1863, in to_xml
2013-04-24 12:14:05 10555 TRACE nova.compute.manager [instance: cc8a04a5-c320-464a-b21c-9014ce3e56ca] rescue, block_device_info)
2013-04-24 12:14:05 10555 TRACE nova.compute.manager [instance: cc8a04a5-c320-464a-b21c-9014ce3e56ca] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 1821, in get_guest_config
2013-04-24 12:14:05 10555 TRACE nova.compute.manager [instance: cc8a04a5-c320-464a-b21c-9014ce3e56ca] cfg = self.vif_driver.plug(instance, (network, mapping))
2013-04-24 12:14:05 10555 TRACE nova.compute.manager [instance: cc8a04a5-c320-464a-b21c-9014ce3e56ca] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/vif.py", line 111, in plug
2013-04-24 12:14:05 10555 TRACE nova.compute.manager [instance: cc8a04a5-c320-464a-b21c-9014ce3e56ca] return self._get_configurations(instance, network, mapping)
2013-04-24 12:14:05 10555 TRACE nova.compute.manager [instance: cc8a04a5-c320-464a-b21c-9014ce3e56ca] File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/vif.py", line 68, in _get_configurations
2013-04-24 12:14:05 10555 TRACE nova.compute.manager [instance: cc8a04a5-c320-464a-b21c-9014ce3e56ca] conf.add_filter_param("IP", mapping['ips'][0]['ip'])
2013-04-24 12:14:05 10555 TRACE nova.compute.manager [instance: cc8a04a5-c320-464a-b21c-9014ce3e56ca] IndexError: list index out of range
百思不得其解,Google也未找到问题,官方bug修改只说已经修改该BUG,并且在最新的Grizzly版本中已经没有该问题,但是并未给出Folsom版和Essex版本中的解决办法,于是,抱着侥幸心理根据官方文档中Quota其他参数的配置,在nova.conf文件中添加了一条配置:
quota_fixed_ips=100
然后重启nova服务
cd /etc/init.d/; for i in $( ls nova-* ); do sudo service $i restart; done
在控制节点和网络节点都执行一遍,回到Dashboard控制台一看,发现Quotas中的Fixed Ips已经改变,并且再创建实例,正常,问题解决。