← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1799455] [NEW] AttributeError: 'BgpDrAgentNotifyApi' object has no attribute 'agent_updated'

 

Public bug reported:

When installing a new bgp-dragent and it's disabled by default
(enable_new_agents=False) and you try to enable it, it throws an error
on the first attempt then works on the second.

openstack network agent set --enable 8139752e-5f08-424b-9b99-09772da3ec7d # fails
openstack network agent set --enable 8139752e-5f08-424b-9b99-09772da3ec7d # succeeds


2018-10-23 14:45:12.020 2545 INFO neutron.wsgi [req-8805bf5b-377b-4cba-a0e7-bea10ac5893f 3a78e58e45b84317ad3bb8731112acb3 cc37d5dddde9495a97e8039314c88d5f - default default] ::ffff:xx "GET /v2.0/agents/8139752e-5f08-424b-9b99-09772da3ec7d HTTP/1.1" status: 200  len: 652 time: 0.0748830
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource [req-b47200a6-1fa7-46b7-9b5c-95470d47d2ef 3a78e58e45b84317ad3bb8731112acb3 cc37d5dddde9495a97e8039314c88d5f - default default] update failed: No details.: AttributeError: 'BgpDrAgentNotifyApi' object has no attribute 'agent_updated'
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource Traceback (most recent call last):
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/resource.py", line 98, in resource
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     result = method(request=request, **args)
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 626, in update
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     return self._update(request, id, body, **kwargs)
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron_lib/db/api.py", line 140, in wrapped
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     setattr(e, '_RETRY_EXCEEDED', True)
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     self.force_reraise()
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron_lib/db/api.py", line 136, in wrapped
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     return f(*args, **kwargs)
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 154, in wrapper
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     ectxt.value = e.inner_exc
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     self.force_reraise()
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 142, in wrapper
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     return f(*args, **kwargs)
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron_lib/db/api.py", line 183, in wrapped
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     LOG.debug("Retry wrapper got retriable exception: %s", e)
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     self.force_reraise()
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron_lib/db/api.py", line 179, in wrapped
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     return f(*dup_args, **dup_kwargs)
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 682, in _update
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     obj = obj_updater(request.context, id, **kwargs)
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/db/agentschedulers_db.py", line 81, in update_agent
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     agent_notifier.agent_updated(context,
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource AttributeError: 'BgpDrAgentNotifyApi' object has no attribute 'agent_updated'
2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource 

2018-10-23 14:45:12.174 2545 INFO neutron.wsgi [req-b47200a6-1fa7-46b7
-9b5c-95470d47d2ef 3a78e58e45b84317ad3bb8731112acb3
cc37d5dddde9495a97e8039314c88d5f - default default] ::ffff:xxxx "PUT
/v2.0/agents/8139752e-5f08-424b-9b99-09772da3ec7d HTTP/1.1" status: 500
len: 344 time: 0.1381948

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1799455

Title:
  AttributeError: 'BgpDrAgentNotifyApi' object has no attribute
  'agent_updated'

Status in neutron:
  New

Bug description:
  When installing a new bgp-dragent and it's disabled by default
  (enable_new_agents=False) and you try to enable it, it throws an error
  on the first attempt then works on the second.

  openstack network agent set --enable 8139752e-5f08-424b-9b99-09772da3ec7d # fails
  openstack network agent set --enable 8139752e-5f08-424b-9b99-09772da3ec7d # succeeds

  
  2018-10-23 14:45:12.020 2545 INFO neutron.wsgi [req-8805bf5b-377b-4cba-a0e7-bea10ac5893f 3a78e58e45b84317ad3bb8731112acb3 cc37d5dddde9495a97e8039314c88d5f - default default] ::ffff:xx "GET /v2.0/agents/8139752e-5f08-424b-9b99-09772da3ec7d HTTP/1.1" status: 200  len: 652 time: 0.0748830
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource [req-b47200a6-1fa7-46b7-9b5c-95470d47d2ef 3a78e58e45b84317ad3bb8731112acb3 cc37d5dddde9495a97e8039314c88d5f - default default] update failed: No details.: AttributeError: 'BgpDrAgentNotifyApi' object has no attribute 'agent_updated'
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource Traceback (most recent call last):
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/resource.py", line 98, in resource
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     result = method(request=request, **args)
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 626, in update
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     return self._update(request, id, body, **kwargs)
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron_lib/db/api.py", line 140, in wrapped
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     setattr(e, '_RETRY_EXCEEDED', True)
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     self.force_reraise()
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron_lib/db/api.py", line 136, in wrapped
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     return f(*args, **kwargs)
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 154, in wrapper
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     ectxt.value = e.inner_exc
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     self.force_reraise()
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_db/api.py", line 142, in wrapper
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     return f(*args, **kwargs)
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron_lib/db/api.py", line 183, in wrapped
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     LOG.debug("Retry wrapper got retriable exception: %s", e)
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     self.force_reraise()
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron_lib/db/api.py", line 179, in wrapped
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     return f(*dup_args, **dup_kwargs)
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 682, in _update
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     obj = obj_updater(request.context, id, **kwargs)
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/db/agentschedulers_db.py", line 81, in update_agent
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource     agent_notifier.agent_updated(context,
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource AttributeError: 'BgpDrAgentNotifyApi' object has no attribute 'agent_updated'
  2018-10-23 14:45:12.097 2545 ERROR neutron.api.v2.resource 

  2018-10-23 14:45:12.174 2545 INFO neutron.wsgi [req-b47200a6-1fa7-46b7
  -9b5c-95470d47d2ef 3a78e58e45b84317ad3bb8731112acb3
  cc37d5dddde9495a97e8039314c88d5f - default default] ::ffff:xxxx "PUT
  /v2.0/agents/8139752e-5f08-424b-9b99-09772da3ec7d HTTP/1.1" status:
  500  len: 344 time: 0.1381948

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1799455/+subscriptions


Follow ups