"ERROR [oslo_messaging._drivers.zmq_driver.zmq_async] ZeroMQ not found!" shows up in other projects and isn't necessary

Bug #1528415 reported by Matt Riedemann
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
oslo.messaging
Fix Released
Medium
Oleksii Zamiatin

Bug Description

Loading oslo.messaging drivers logs an error if you don't have zeromq available since this change in oslo.messaging 4.0.0:

https://github.com/openstack/oslo.messaging/commit/52ccff7cbc26af0738d7a0a7d6e99330421b61d1

This would be fine except it shows up in nova unit test logs, which is unnecessary if you're not testing zeromq:

http://logstash.openstack.org/#dashboard/file/logstash.json?query=message:%5C%22ERROR%20%5Boslo_messaging._drivers.zmq_driver.zmq_async%5D%20ZeroMQ%20not%20found!%5C%22%20AND%20tags:%5C%22console%5C%22

It's showing up in any consumer of oslo.messaging, so more than just nova, e.g.:

http://logs.openstack.org/26/259626/3/check/gate-ceilometer-dsvm-functional-postgresql/ac9da32/console.html#_2015-12-22_00_22_09_277

Matt Riedemann (mriedem)
Changed in oslo.messaging:
status: New → Confirmed
importance: Undecided → Medium
Changed in oslo.messaging:
assignee: nobody → ChangBo Guo(gcb) (glongwave)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo.messaging (master)

Fix proposed to branch: master
Review: https://review.openstack.org/260322

Changed in oslo.messaging:
status: Confirmed → In Progress
Revision history for this message
ChangBo Guo(gcb) (glongwave) wrote :
Changed in oslo.messaging:
assignee: ChangBo Guo(gcb) (glongwave) → Oleksii Zamiatin (ozamiatin)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.messaging (master)

Reviewed: https://review.openstack.org/260322
Committed: https://git.openstack.org/cgit/openstack/oslo.messaging/commit/?id=e8703dc80287614581a64e4cc090e37b4caa2452
Submitter: Jenkins
Branch: master

commit e8703dc80287614581a64e4cc090e37b4caa2452
Author: ChangBo Guo(gcb) <email address hidden>
Date: Tue Dec 22 12:59:35 2015 +0800

    zmq: Don't log error when can't import zmq module

    Method import_zmq returns None if can't import zmq module.
    For runtime code, an ImportError is raised, and for tests,
    a skip message "zmq not available" is sent, so it's unnecessary
    to log error which shows up in other projects' unit test logs.

    Co-Authored-By: Oleksii Zamiatin <email address hidden>
    Change-Id: Iebf15042f45da56eb633a0a70822c487dc72c884
    Closes-Bug: #1528415

Changed in oslo.messaging:
status: In Progress → Fix Released
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/oslo.messaging 4.1.0

This issue was fixed in the openstack/oslo.messaging 4.1.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.