error in callback mechanism
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Expired
|
Undecided
|
Unassigned |
Bug Description
Version: train
Deatils:
when create or delete trunk, agent do not receive notification. neutron server error log output:
Error during notification for neutron.
Traceback (most recent call last):
File "/usr/lib/
callback(
File "/usr/lib/
events.
AttributeError: 'ServerSideRpcB
Root reason: ServerSideRpcBa
Example:
from neutron_
class BClass(object):
def __init__(self):
raise IOError()
@registry.
class AClass(object):
def __init__(self):
self.b = BClass()
self.a = 1
@registry.
def test(self):
pass
if __name__ == '__main__':
try:
a = AClass()
except BaseException:
print(
description: | updated |
Hello Yaoguang:
The "__new__" method is called once when the class is instantiated. Then the "__init__" method is called during the initialization. This is when the callbacks are registered. At this point, self._stub is instantiated too.
Sorry but I'm not following your description of the problem and I can't reproduce it neither. Can you describe how is that happening? What command are you executing? Is that happening just after a Neutron server restart?
Regards.