osinfo should not emit multiple error messages when module isn't loaded

Bug #1543288 reported by Vladik Romanovsky
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Vladik Romanovsky

Bug Description

Currently osinfo module emits multiple error messages , when libosinfo module cannot be loaded:

2016-02-08 12:44:15.270 2868 ERROR nova.virt.osinfo [req-cb9744f0-c5af-4bc7-a164-6e0ba06c021d tempest-VolumesV1SnapshotTestJSON-1106516754 tempest-VolumesV1SnapshotTestJSON-1593599156] Cannot find OS information - Reason: (Cannot load Libosinfo: (No module named gi.repository.Libosinfo))

Since loading the libosinfo module is optional, It should only report this info once and not as an error message.

Changed in nova:
assignee: nobody → Vladik Romanovsky (vladik-romanovsky)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Changed in nova:
status: New → In Progress
Matt Riedemann (mriedem)
Changed in nova:
importance: Undecided → High
Revision history for this message
Matt Riedemann (mriedem) wrote :

There is a devstack change here to install libosinfo from the distro so we actually start using this code in the gate:

https://review.openstack.org/#/c/278142/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/277565
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=556e4944e903a2742226308190fd34bc4ee9984d
Submitter: Jenkins
Branch: master

commit 556e4944e903a2742226308190fd34bc4ee9984d
Author: Vladik Romanovsky <email address hidden>
Date: Mon Feb 8 16:06:41 2016 -0500

    virt: osinfo will report once if libosinfo is not loaded

    Currently osinfo module emits multiple error messages when libosinfo
    module cannot be loaded. Since loading the libosinfo module is optional,
    it should only report this once as an INFO log message.

    Change-Id: If4b582d1ec39ba79b4f993543da11ec8c6bd023b
    Closes-bug: #1543288

Changed in nova:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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