yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #49979
[Bug 1575285] Re: _BroadcastMessage._send_response raises TypeError
It looks like this piece of code [1] is 3 years old without having any
negative effect. These interfaces are all private and contained in one
single module without leaking to the outside world, so I guess it's not
worth to make a patch for that.
References:
[1] https://git.openstack.org/cgit/openstack/nova/tree/nova/cells/messaging.py?id=f9a868e86ce11f786538547c301b805bd68a1697#n462
** Changed in: nova
Status: New => Won't Fix
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1575285
Title:
_BroadcastMessage._send_response raises TypeError
Status in OpenStack Compute (nova):
Won't Fix
Bug description:
The class _BaseMessage defines a method named _send_json_responses,
which takes a named parameter neighbor_only. Later on in the same
class, another method _send_response makes a call to
_send_json_responses (on line 285), setting neighbor_only explicitly.
However, a subclass of _BaseMessage, _BroadcastMessage overrides
_send_json_responses with a definition that does not have
neighbor_only as a named parameter. Therefore if _send_response is
ever called on an object of type _BroadcastMessage, a TypeError will
be raised.
One option would be to change the definition of
_BroadcastMessage._send_json_reponses to allow neighbour_only to be
passed even though it is not required.
def _send_json_responses(self, json_responses,neighbour_only=None):
"""Responses to broadcast messages always need to go to the
neighbor cell from which we received this message. That
cell aggregates the responses and makes sure to forward them
to the correct source.
"""
return super(_BroadcastMessage, self)._send_json_responses(
json_responses, neighbor_only=True, fanout=True)
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1575285/+subscriptions
References