yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #42478
[Bug 1510399] Re: Error when metadata proxy is disabled for ha l3 agent
** Changed in: neutron
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1510399
Title:
Error when metadata proxy is disabled for ha l3 agent
Status in neutron:
Fix Released
Bug description:
The configuration:
/etc/neutron/neutron.conf
[DEFAULT]
....
l3_ha = True
....
/etc/neutron/l3_agent.ini
[DEFAULT]
....
enable_metadata_proxy = False
....
There was an error in l3_agent's log:
2015-10-28 00:07:30.568 3198 ERROR neutron.agent.l3.agent [-] Failed to process compatible router '09a4d7a2-310c-488f-8687-18bc6eaa32e7
'
2015-10-28 00:07:30.568 3198 TRACE neutron.agent.l3.agent Traceback (most recent call last):
2015-10-28 00:07:30.568 3198 TRACE neutron.agent.l3.agent File "/usr/lib/python2.7/dist-packages/neutron/agent/l3/agent.py", line 465
, in _process_router_update
2015-10-28 00:07:30.568 3198 TRACE neutron.agent.l3.agent self._process_router_if_compatible(router)
2015-10-28 00:07:30.568 3198 TRACE neutron.agent.l3.agent File "/usr/lib/python2.7/dist-packages/neutron/agent/l3/agent.py", line 410
, in _process_router_if_compatible
2015-10-28 00:07:30.568 3198 TRACE neutron.agent.l3.agent self._process_added_router(router)
2015-10-28 00:07:30.568 3198 TRACE neutron.agent.l3.agent File "/usr/lib/python2.7/dist-packages/neutron/agent/l3/agent.py", line 415
, in _process_added_router
2015-10-28 00:07:30.568 3198 TRACE neutron.agent.l3.agent self._router_added(router['id'], router)
2015-10-28 00:07:30.568 3198 TRACE neutron.agent.l3.agent File "/usr/lib/python2.7/dist-packages/neutron/agent/l3/agent.py", line 316
, in _router_added
2015-10-28 00:07:30.568 3198 TRACE neutron.agent.l3.agent ri.initialize(self.process_monitor)
2015-10-28 00:07:30.568 3198 TRACE neutron.agent.l3.agent File "/usr/lib/python2.7/dist-packages/neutron/agent/l3/ha_router.py", line
88, in initialize
2015-10-28 00:07:30.568 3198 TRACE neutron.agent.l3.agent self.update_initial_state(self.state_change_callback)
2015-10-28 00:07:30.568 3198 TRACE neutron.agent.l3.agent File "/usr/lib/python2.7/dist-packages/neutron/agent/l3/ha_router.py", line
335, in update_initial_state
2015-10-28 00:07:30.568 3198 TRACE neutron.agent.l3.agent callback(self.router_id, state)
2015-10-28 00:07:30.568 3198 TRACE neutron.agent.l3.agent File "/usr/lib/python2.7/dist-packages/neutron/agent/l3/ha.py", line 125, i
n enqueue_state_change
2015-10-28 00:07:30.568 3198 TRACE neutron.agent.l3.agent self._update_metadata_proxy(ri, router_id, state)
2015-10-28 00:07:30.568 3198 TRACE neutron.agent.l3.agent File "/usr/lib/python2.7/dist-packages/neutron/agent/l3/ha.py", line 132, i
n _update_metadata_proxy
2015-10-28 00:07:30.568 3198 TRACE neutron.agent.l3.agent self.metadata_driver.spawn_monitored_metadata_proxy(
2015-10-28 00:07:30.568 3198 TRACE neutron.agent.l3.agent AttributeError: 'L3NATAgentWithStateReport' object has no attribute 'metadata
_driver'
I think maybe we need a check before this method :
https://github.com/openstack/neutron/blob/master/neutron/agent/l3/ha.py#L126
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1510399/+subscriptions
References