Possible usage of undefined variable in oslo.messaging
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Fix Released
|
Medium
|
Denis Meltsaykin | ||
6.0.x |
Fix Released
|
Medium
|
Denis Meltsaykin |
Bug Description
This code has been found during examination of oslo.messaing's code:
impl_rabbit.py line number ~646
except Exception as ex:
# NOTE(comstud): Unfortunately it's possible for amqplib
# to return an error not covered by its transport
# connection_errors in the case of a timeout waiting for
# a protocol response. (See paste link in LP888621)
# So, we check all exceptions for 'timeout' in them
# and try to reconnect in this case.
if 'timeout' not in six.text_type(e):
e = ex
There is possible an error: e = ex comes after if-section, this makes if useless and always to raise an exception.
Also the bug in upstream has been filed: https:/
Changed in mos: | |
assignee: | nobody → Denis Meltsaykin (dmeltsaykin) |
Changed in mos: | |
status: | New → In Progress |
milestone: | none → 6.1 |
Changed in mos: | |
status: | In Progress → Fix Committed |
description: | updated |
Changed in mos: | |
importance: | Undecided → Medium |
tags: | added: done release-notes |
tags: | added: customer-found support |
Fix proposed to branch: openstack- ci/fuel- 6.1/2014. 2 /review. fuel-infra. org/7848
Change author: Denis V. Meltsaykin <email address hidden>
Review: https:/