With new HA nova-network code, the following error is arisen during the nova boot instance:
2011-07-22 12:02:25,509 DEBUG nova.rpc [-] MSG_ID is 87d4406c12764fb58a1167f43970b188 from (pid=9503) multicall /opt/nova/nova/rpc.py:4842011-07-22 12:02:25,998 ERROR nova [-] Exception during message handling(nova): TRACE: Traceback (most recent call last):(nova): TRACE: File "/opt/nova/nova/rpc.py", line 232, in _process_data(nova): TRACE: rval = node_func(context=ctxt, **node_args)(nova): TRACE: File "/opt/nova/nova/exception.py", line 97, in wrapped
(nova): TRACE: return f(*args, **kw)
(nova): TRACE: File "/opt/nova/nova/compute/manager.py", line 340, in run_instance
(nova): TRACE: self._run_instance(context, instance_id, **kwargs)
(nova): TRACE: File "/opt/nova/nova/compute/manager.py", line 301, in _run_instance
(nova): TRACE: instance, vpn=is_vpn)
(nova): TRACE: File "/opt/nova/nova/network/api.py", line 152, in allocate_for_instance
(nova): TRACE: 'args': args})
(nova): TRACE: File "/opt/nova/nova/rpc.py", line 546, in call
(nova): TRACE: rv = list(rv)
(nova): TRACE: File "/opt/nova/nova/rpc.py", line 535, in wait
(nova): TRACE: raise result
(nova): TRACE: RemoteError: AttributeError 'Network' object has no attribute 'dhcp_server'
(nova): TRACE: [u'Traceback (most recent call last):\n', u' File "/opt/nova/nova/rpc.py", line 232, in _process_data\n rval = node_func(context=ctxt, **
node_args)\n', u' File "/opt/nova/nova/network/manager.py", line 205, in allocate_for_instance\n ips = super(FloatingIP, self).allocate_for_instance(con
text, **kwargs)\n', u' File "/opt/nova/nova/network/manager.py", line 398, in allocate_for_instance\n vpn=vpn)\n', u' File "/opt/nova/nova/network/mana
ger.py", line 156, in _allocate_fixed_ips\n self.allocate_fixed_ip(context, instance_id, network, vpn=vpn)\n', u' File "/opt/nova/nova/network/manager.p
y", line 855, in allocate_fixed_ip\n self._setup_network(context, network)\n', u' File "/opt/nova/nova/network/manager.py", line 908, in _setup_network\
n network_ref)\n', u' File "/opt/nova/nova/network/linux_net.py", line 457, in ensure_vlan_bridge\n ensure_bridge(bridge, interface, net_attrs)\n', u
' File "/opt/nova/nova/utils.py", line 613, in inner\n retval = f(*args, **kwargs)\n', u' File "/opt/nova/nova/network/linux_net.py", line 500, in ensu
re_bridge\n (net_attrs[\'dhcp_server\'], suffix),\n', u' File "/opt/nova/nova/db/sqlalchemy/models.py", line 75, in __getitem__\n return getattr(self
, key)\n', u"AttributeError: 'Network' object has no attribute 'dhcp_server'\n"]
(nova): TRACE:
Thanks, for the report, it is supposed to add dhcp_server to the net_attrs before sending them to linux_net. I will try to track down why this isn't happening