AttributeError 'Network' object has no attribute 'dhcp_server'

Bug #814471 reported by Mike Scherbakov
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Vish Ishaya

Bug Description

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:

Related branches

Revision history for this message
Mike Scherbakov (mihgen) wrote :
Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → High
milestone: none → diablo-3
status: New → Triaged
Revision history for this message
Vish Ishaya (vishvananda) wrote :

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

Revision history for this message
Vish Ishaya (vishvananda) wrote :

Can you try this fix and see if it solves your issue?

Revision history for this message
dan wendlandt (danwent) wrote :

As a data point, I was seeing that error as well and Vish's patch fixes the problem for me. Thanks!

Revision history for this message
Mike Scherbakov (mihgen) wrote :

Vish,
Your patch fixes the issue for me as well.

Changed in nova:
assignee: nobody → Vish Ishaya (vishvananda)
status: Triaged → In Progress
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: diablo-3 → 2011.3
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.