2014-04-04 13:37:34.168 TRACE neutron.openstack.common.rpc.amqp Traceback (most recent call last):
2014-04-04 13:37:34.168 TRACE neutron.openstack.common.rpc.amqp File "/opt/stack/neutron/neutron/openstack/common/rpc/amqp.py", line 438, in _process_data
2014-04-04 13:37:34.168 TRACE neutron.openstack.common.rpc.amqp **args)
2014-04-04 13:37:34.168 TRACE neutron.openstack.common.rpc.amqp File "/opt/stack/neutron/neutron/common/rpc.py", line 45, in dispatch
2014-04-04 13:37:34.168 TRACE neutron.openstack.common.rpc.amqp neutron_ctxt, version, method, namespace, **kwargs)
2014-04-04 13:37:34.168 TRACE neutron.openstack.common.rpc.amqp File "/opt/stack/neutron/neutron/openstack/common/rpc/dispatcher.py", line 172, in dispatch
2014-04-04 13:37:34.168 TRACE neutron.openstack.common.rpc.amqp result = getattr(proxyobj, method)(ctxt, **kwargs)
2014-04-04 13:37:34.168 TRACE neutron.openstack.common.rpc.amqp File "/opt/stack/neutron/neutron/db/dhcp_rpc_base.py", line 65, in get_active_networks_info
2014-04-04 13:37:34.168 TRACE neutron.openstack.common.rpc.amqp networks = self._get_active_networks(context, **kwargs)
2014-04-04 13:37:34.168 TRACE neutron.openstack.common.rpc.amqp File "/opt/stack/neutron/neutron/db/dhcp_rpc_base.py", line 45, in _get_active_networks
2014-04-04 13:37:34.168 TRACE neutron.openstack.common.rpc.amqp context, host)
2014-04-04 13:37:34.168 TRACE neutron.openstack.common.rpc.amqp File "/opt/stack/neutron/neutron/db/agentschedulers_db.py", line 179, in list_active_networks_on_active_dhcp_agent
2014-04-04 13:37:34.168 TRACE neutron.openstack.common.rpc.amqp context, constants.AGENT_TYPE_DHCP, host)
2014-04-04 13:37:34.168 TRACE neutron.openstack.common.rpc.amqp File "/opt/stack/neutron/neutron/db/agents_db.py", line 133, in _get_agent_by_type_and_host
2014-04-04 13:37:34.168 TRACE neutron.openstack.common.rpc.amqp host=host)
2014-04-04 13:37:34.168 TRACE neutron.openstack.common.rpc.amqp AgentNotFoundByTypeHost: Agent with agent_type=DHCP agent and host=arosen-desktop could not be found
Eventually the agent will be learned by neutron-server and this will go away.
The only fix I can think of it to catch the AgentNotFoundBy TypeHost and return an empty set of networks, since for requests like 'list_active_ networks_ on_active_ dhcp_agent' is clear that the agent was not learnt by Neutron yet so throwing the exception doesn't make much sense.
If the goal of this bug was to find a way of making Neutron learn an agent quicker...well this requires some brainstorming :)