Mao, if you are familiar with launchpad, can you file a bug and assign it to the nova-network team? You will be able to track the bug's status there as well.<br><br>Thanks,<br>-tr3buchet<br><br><div class="gmail_quote">
On Mon, Nov 14, 2011 at 8:04 AM, mao weijie <span dir="ltr"><<a href="mailto:mwjpiero@gmail.com">mwjpiero@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
I have found something maybe bug in nova-network<br>
<br>
ie: using FLATDHCP my br100 is set 10.200.200.2,hostname=node1<br>
<br>
when I start nova-network, br100 will be add an other ip, maybe 10.200.200.5<br>
<br>
here in nova db, fixed_ips table , 'host' field of address="10.200.200.5" entry will be set to 'node1'.<br>
<br>
then I kill the nova-network, and start it again, it will show error<br>
<br>
  File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 336, in fire_timers<br>
    timer()<br>
  File "/usr/lib/python2.7/dist-packages/eventlet/hubs/timer.py", line 56, in __call__<br>
    cb(*args, **kw)<br>
  File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 192, in main<br>
    result = function(*args, **kwargs)<br>
  File "/data/nova/nova/service.py", line 81, in run_server<br>
    server.start()<br>
  File "/data/nova/nova/service.py", line 141, in start<br>
    self.manager.init_host()<br>
  File "/data/nova/nova/network/manager.py", line 1150, in init_host<br>
    super(FlatDHCPManager, self).init_host()<br>
  File "/data/nova/nova/network/manager.py", line 502, in init_host<br>
    self._setup_network(ctxt, network)<br>
  File "/data/nova/nova/network/manager.py", line 1164, in _setup_network<br>
    self.driver.update_dhcp(context, dev, network_ref)<br>
  File "/data/nova/nova/utils.py", line 730, in inner<br>
    retval = f(*args, **kwargs)<br>
  File "/data/nova/nova/network/linux_net.py", line 611, in update_dhcp<br>
    f.write(get_dhcp_hosts(context, network_ref))<br>
  File "/data/nova/nova/network/linux_net.py", line 549, in get_dhcp_hosts<br>
    host = fixed_ref['instance']['host']<br>
TypeError: 'NoneType' object is not subscriptable<br>
<br>
Then I need update host=NULL in db to start nova-network successfully<br>
<br>
I think it is a bug<br>
<br>
<br>
非淡泊無以明志,非寧靜無以致遠<br>
<br>
<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/%7Eopenstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</blockquote></div><br>