openstack 报错FixedAddressLimitExceeded 的bug解决

我的环境是ubuntu12.04.2 这几天刚刚更新到了openstack最新的包,今天在创建实例的时候,正好是一个项目的第11个实例,报错如下:

/var/log/nova/nova-network.log

2013-05-23 18:53:50 ERROR nova.rpc.amqp [req-c613423d-4ca3-422d-b25a-04bf35182418 6fd51c8e1cd1430381e837147f204b3e 329c3e1eddbe4a3d826fb49c956b688a] ['Traceback (most recent call last):\n', '  File "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 253, in _process_data\n    rval = node_func(context=ctxt, **node_args)\n', '  File "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 224, in _rpc_allocate_fixed_ip\n    return self.allocate_fixed_ip(context, instance_id, network, **kwargs)\n', '  File "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 1159, in allocate_fixed_ip\n    raise exception.QuotaError(code=\'FixedAddressLimitExceeded\')\n', 'QuotaError: Quota exceeded: code=FixedAddressLimitExceeded\n']

  

随机google,发现是代码加入了fixed_ip的更新:

https://review.openstack.org/gitweb?p=openstack%2Fnova.git;a=commitdiff;h=efaacdaee116388234558e2682b647d41fe5b149

 

由于数据库表内没有fixed_ip 的quota值,所以程序取了默认值10,最后修改代码默认值解决:

vi /usr/lib/python2.7/dist-packages/nova/quota.py 

修改这一段(default):

    cfg.IntOpt('quota_fixed_ips',
               default=20,
               help=('number of fixed ips allowed per project (this should be '
                     'at least the number of instances allowed)')),

当然,应该也是可以修改数据库条目,增加fixed_ip 来解决,本人图方便直接改了。

 

引用请注明来源:http://www.cnblogs.com/helloLinux/archive/2013/05/23/3095405.html

posted @ 2013-05-23 19:19  Hello! Linux 博客  Views(484)  Comments(0Edit  收藏  举报