nova-manage isn't logging errors

Bug #1029577 reported by Dan Prince
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Dan Prince

Bug Description

Recent version of nova-manage (Folsom +) seem to not log any useful output when and error occurs.

For example:

[dprince@dovetail nova]$ ./bin/nova-manage logs syslog
Command failed, please check log for more info

** Looking in /var/log/nova/nova-manage.log shows nothing.

A variety of other commands behave the same way.

On Essex errors like this were logged to the console:

$ ./bin/nova-manage logs syslog
Command failed, please check log for more info
2012-07-26 13:48:28 CRITICAL nova [-] [Errno 13] Permission denied: '/var/log/messages'

We need to log things *somewhere* when commands like this fail. Logging to the console seems reasonable if logging hasn't been configured. Otherwise things should go to the log file.

Tags: nova-manage
Dan Prince (dan-prince)
Changed in nova:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Dan Prince (dan-prince)
Thierry Carrez (ttx)
tags: added: nova-manage
Revision history for this message
Dan Prince (dan-prince) wrote :

Branch fix posted to openstack-common:

https://review.openstack.org/10610

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/10666

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

Reviewed: https://review.openstack.org/10666
Committed: http://github.com/openstack/nova/commit/997fc59c4783b8c8dfe334bf0513169ec6126efb
Submitter: Jenkins
Branch: master

commit 997fc59c4783b8c8dfe334bf0513169ec6126efb
Author: Dan Prince <email address hidden>
Date: Wed Aug 1 13:02:16 2012 -0400

    Sync w/ latest openstack common log.py.

    Includes the following updates for openstack-common's log.py:

        Remove code to clear basicConfig root log handlers

        Removes some old Nova specific code to clear out the log handlers
        from Nova's logging basicConfig. This code is arguably Nova specific
        and doesn't really belong in openstack-common's generic logging
        configuration.

        Additionally, This code was actually removing the root logger used
    by
        some command line tools and binaries and hiding log messages that
    should
        have otherwise gone to the console.

        Fixes LP Bug #1029577.

    Change-Id: Ic6a6862e5bc357846bf3202186c7e24622d3bb87

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → folsom-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: folsom-3 → 2012.2
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.