← Back to team overview

openstack team mailing list archive

Re: nova-network cannot start because 'host' set in db

 

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.

Thanks,
-tr3buchet

On Mon, Nov 14, 2011 at 8:04 AM, mao weijie <mwjpiero@xxxxxxxxx> wrote:

> Hi,
>
> I have found something maybe bug in nova-network
>
> ie: using FLATDHCP my br100 is set 10.200.200.2,hostname=node1
>
> when I start nova-network, br100 will be add an other ip, maybe
> 10.200.200.5
>
> here in nova db, fixed_ips table , 'host' field of address="10.200.200.5"
> entry will be set to 'node1'.
>
> then I kill the nova-network, and start it again, it will show error
>
>  File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 336,
> in fire_timers
>    timer()
>  File "/usr/lib/python2.7/dist-packages/eventlet/hubs/timer.py", line 56,
> in __call__
>    cb(*args, **kw)
>  File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line
> 192, in main
>    result = function(*args, **kwargs)
>  File "/data/nova/nova/service.py", line 81, in run_server
>    server.start()
>  File "/data/nova/nova/service.py", line 141, in start
>    self.manager.init_host()
>  File "/data/nova/nova/network/manager.py", line 1150, in init_host
>    super(FlatDHCPManager, self).init_host()
>  File "/data/nova/nova/network/manager.py", line 502, in init_host
>    self._setup_network(ctxt, network)
>  File "/data/nova/nova/network/manager.py", line 1164, in _setup_network
>    self.driver.update_dhcp(context, dev, network_ref)
>  File "/data/nova/nova/utils.py", line 730, in inner
>    retval = f(*args, **kwargs)
>  File "/data/nova/nova/network/linux_net.py", line 611, in update_dhcp
>    f.write(get_dhcp_hosts(context, network_ref))
>  File "/data/nova/nova/network/linux_net.py", line 549, in get_dhcp_hosts
>    host = fixed_ref['instance']['host']
> TypeError: 'NoneType' object is not subscriptable
>
> Then I need update host=NULL in db to start nova-network successfully
>
> I think it is a bug
>
>
> 非淡泊無以明志,非寧靜無以致遠
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>

References