2013-05-29 20:21:34.481 ERROR nova.scheduler.filter_scheduler [req-3b009407-bcbb-46a3-8ae9-173574cf7854 05e8636f0cb94171bba93f5a1a73c927 a32328ccd3f641c882910a32cdff91fc] [instance: d4e4059c-7306-4773-8e01-360a236fd44b] Error from last host: compute3 (node compute3): [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 834, in _run_instance\n set_access_ip=set_access_ip)\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1093, in _spawn\n LOG.exception(_(\'Instance failed to spawn\'), instance=instance)\n', u' File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__\n self.gen.next()\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1089, in _spawn\n block_device_info)\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 1520, in spawn\n block_device_info)\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2433, in _create_domain_and_network\n self.firewall_driver.setup_basic_filtering(instance, network_info)\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/firewall.py", line 288, in setup_basic_filtering\n self.refresh_provider_fw_rules()\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/firewall.py", line 476, in refresh_provider_fw_rules\n self._do_refresh_provider_fw_rules()\n', u' File "/usr/lib/python2.7/dist-packages/nova/openstack/common/lockutils.py", line 221, in inner\n with lock:\n', u' File "/usr/lib/python2.7/dist-packages/nova/openstack/common/lockutils.py", line 75, in __enter__\n self.lockfile = open(self.fname, \'w\')\n', u"IOError: [Errno 13] Permission denied: '/run/lock/nova/nova-iptables'\n"]
复制代码
解决方案
/var/lock/nova 的权限是 nova:root , 应该是nova:nova
chown -R nova:nova /var/lock/nova
复制代码
2.Quantum Exceeded Maximim Amount of Fixed Ips Per Port 错误
openstack 运行过程中突然出现这个错误
在 network节点上/var/log/quantum/dhcp-agent.log
出现如下错误日志
提示Exceeded maximim amount of fixed ips per port.
应该是跟quota有关的。
013-05-22 16:31:10 ERROR [quantum.agent.dhcp_agent] Unable to enable dhcp.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py", line 129, in call_driver
getattr(driver, action)()
File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/dhcp.py", line 117, in enable
reuse_existing=True)
File "/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py", line 528, in setup
port = self.plugin.get_dhcp_port(network.id, device_id)
File "/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py", line 377, in get_dhcp_port
topic=self.topic))
File "/usr/lib/python2.7/dist-packages/quantum/openstack/common/rpc/proxy.py", line 80, in call