Activity log for bug #989746

Date Who What changed Old value New value Message
2012-04-27 13:52:30 wangchangli bug added bug
2012-05-07 10:22:56 wangchangli description I am now using the FlatManager network mode, when I allocate a floating ip to a instance with nova api command: nova floating-ip-create I get the error log in the server side: nova-api log: 2012-04-27 20:02:44 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/nova-2012.1-py2.6.egg/nova/rpc/__init__.py", line 68, in call 2012-04-27 20:02:44 TRACE nova.api.openstack return _get_impl().call(context, topic, msg, timeout) 2012-04-27 20:02:44 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/nova-2012.1-py2.6.egg/nova/rpc/impl_kombu.py", line 674, in call 2012-04-27 20:02:44 TRACE nova.api.openstack return rpc_amqp.call(context, topic, msg, timeout, Connection.pool) 2012-04-27 20:02:44 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/nova-2012.1-py2.6.egg/nova/rpc/amqp.py", line 338, in call 2012-04-27 20:02:44 TRACE nova.api.openstack rv = list(rv) 2012-04-27 20:02:44 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/nova-2012.1-py2.6.egg/nova/rpc/amqp.py", line 306, in __iter__ 2012-04-27 20:02:44 TRACE nova.api.openstack raise result 2012-04-27 20:02:44 TRACE nova.api.openstack RemoteError: Remote error: AttributeError 'FlatManager' object has no attribute 'allocate_floating_ip' nova-network log: 2012-04-27 20:02:44 TRACE nova.rpc.amqp Traceback (most recent call last): 2012-04-27 20:02:44 TRACE nova.rpc.amqp File "/usr/lib/python2.6/site-packages/nova-2012.1-py2.6.egg/nova/rpc/amqp.py", line 249, in _process_data 2012-04-27 20:02:44 TRACE nova.rpc.amqp node_func = getattr(self.proxy, str(method)) 2012-04-27 20:02:44 TRACE nova.rpc.amqp File "/usr/lib/python2.6/site-packages/nova-2012.1-py2.6.egg/nova/service.py", line 213, in __getattr__ 2012-04-27 20:02:44 TRACE nova.rpc.amqp return getattr(manager, key) 2012-04-27 20:02:44 TRACE nova.rpc.amqp AttributeError: 'FlatManager' object has no attribute 'allocate_floating_ip' It is ok if I change the network mode to FlatDHCPManager. I read the nova source code and found that FloatingIP is the only class that have the "allocate_floating_ip" method and FlatDHCPManager is a subclass of this class, but class FloatManager is not a subclass of this class: Code piece from network/manager.py: class FlatDHCPManager(RPCAllocateFixedIP, FloatingIP, NetworkManager): class FlatManager(NetworkManager): class VlanManager(RPCAllocateFixedIP, FloatingIP, NetworkManager): I am now using the FlatManager network mode, when I allocate a floating ip to a instance with nova api command: nova floating-ip-create I get the error log in the server side: nova-api log: 2012-04-27 20:02:44 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/nova-2012.1-py2.6.egg/nova/rpc/__init__.py", line 68, in call 2012-04-27 20:02:44 TRACE nova.api.openstack return _get_impl().call(context, topic, msg, timeout) 2012-04-27 20:02:44 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/nova-2012.1-py2.6.egg/nova/rpc/impl_kombu.py", line 674, in call 2012-04-27 20:02:44 TRACE nova.api.openstack return rpc_amqp.call(context, topic, msg, timeout, Connection.pool) 2012-04-27 20:02:44 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/nova-2012.1-py2.6.egg/nova/rpc/amqp.py", line 338, in call 2012-04-27 20:02:44 TRACE nova.api.openstack rv = list(rv) 2012-04-27 20:02:44 TRACE nova.api.openstack File "/usr/lib/python2.6/site-packages/nova-2012.1-py2.6.egg/nova/rpc/amqp.py", line 306, in __iter__ 2012-04-27 20:02:44 TRACE nova.api.openstack raise result 2012-04-27 20:02:44 TRACE nova.api.openstack RemoteError: Remote error: AttributeError 'FlatManager' object has no attribute 'allocate_floating_ip' nova-network log: 2012-04-27 20:02:44 TRACE nova.rpc.amqp Traceback (most recent call last): 2012-04-27 20:02:44 TRACE nova.rpc.amqp File "/usr/lib/python2.6/site-packages/nova-2012.1-py2.6.egg/nova/rpc/amqp.py", line 249, in _process_data 2012-04-27 20:02:44 TRACE nova.rpc.amqp node_func = getattr(self.proxy, str(method)) 2012-04-27 20:02:44 TRACE nova.rpc.amqp File "/usr/lib/python2.6/site-packages/nova-2012.1-py2.6.egg/nova/service.py", line 213, in __getattr__ 2012-04-27 20:02:44 TRACE nova.rpc.amqp return getattr(manager, key) 2012-04-27 20:02:44 TRACE nova.rpc.amqp AttributeError: 'FlatManager' object has no attribute 'allocate_floating_ip' It is ok if I change the network mode to FlatDHCPManager. I read the nova source code and found that FloatingIP is the only class that have the "allocate_floating_ip" method and FlatDHCPManager is a subclass of this class, but class FlatManager is not a subclass of this class: Code piece from network/manager.py: class FlatDHCPManager(RPCAllocateFixedIP, FloatingIP, NetworkManager): class FlatManager(NetworkManager): class VlanManager(RPCAllocateFixedIP, FloatingIP, NetworkManager):
2012-05-09 19:55:25 Shashank Sahni bug added subscriber Shashank Sahni
2012-06-07 15:21:14 Dan Smith nova: status New Confirmed
2012-06-07 15:21:30 Dan Smith tags low-hanging-fruit
2012-06-07 15:57:02 Thierry Carrez nova: importance Undecided Medium
2012-06-08 14:32:14 Dan Smith bug added subscriber Dan Smith
2012-08-28 21:38:40 Andrew Laski nova: assignee Andrew Laski (alaski)
2012-08-30 19:05:18 Andrew Laski nova: status Confirmed In Progress
2012-12-13 14:57:26 Thierry Carrez nova: status In Progress Confirmed
2012-12-13 14:57:26 Thierry Carrez nova: assignee Andrew Laski (alaski)
2013-01-28 21:28:17 OpenStack Infra nova: status Confirmed In Progress
2013-01-28 21:28:17 OpenStack Infra nova: assignee Frederic Lepied (flepied)
2013-02-19 20:23:41 OpenStack Infra nova: status In Progress Fix Committed
2013-02-21 08:51:57 Thierry Carrez nova: status Fix Committed Fix Released
2013-02-21 08:51:57 Thierry Carrez nova: milestone grizzly-3
2013-04-04 11:09:42 Thierry Carrez nova: milestone grizzly-3 2013.1