Duplicate Qpid connection is created during Connection initialization
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo-incubator |
Fix Released
|
Low
|
zhu zhu | ||
oslo.messaging |
Fix Released
|
Low
|
ChangBo Guo(gcb) |
Bug Description
neutron was still adopting the oslo incubator code for rpc modules. During the qpid connection setup from amqp get_connection_
Duplicate connections will be created during __init__(class Connection in impl_qpid.py). And after the first connection object is created, this connection will never be used, and within the next step method reconnect, it will create a new qpid connection object and open it.
Need to fix this issue for duplicate creation of qpid connection.
Impl_qpid.py
class Connection(object):
"""Connection object."""
pool = None
def __init__(self, conf, server_
if not qpid_messaging:
raise ImportError("Failed to import qpid.messaging")
self.conf = conf
if server_params and 'hostname' in server_params:
# NOTE(russellb) This enables support for cast_to_server.
]
params = {
}
Changed in neutron: | |
assignee: | nobody → Xu Han Peng (xuhanp) |
Changed in oslo: | |
milestone: | none → juno-2 |
status: | Fix Committed → Fix Released |
Fixed in oslo.messaging by I7618cf3506d857 579dc37b338690d 05179ba272d
oslo-incubator patch https:/ /review. openstack. org/#/c/ 100177/
Note - this isn't nearly as bad as the report makes it sound. We simple creating duplicate connection objects, but don't actually set up and tear down extra sockets with the broker