nova-scheduler insufficient log details

Bug #1336977 reported by Scott Devoid
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Michael Turek

Bug Description

File this under non-debug log usability. If your system is full (i.e. a schedule attempt runs out of hosts to use), the following log message is printed if debug is disabled:

2014-07-02 17:13:55.584 7567 WARNING nova.scheduler.driver [req-e8749ca6-6ab9-4598-a75e-2cdc0ba82ad6 5ef4ddd7c64545eda6a37cbd0da77c35 030d99a0fd014dd1859a1f633822ce29] [instance: 4e7c44d6-6c8a-43b5-851b-b7f0676850c8] Setting instance to ERROR state.

And ONLY that message. It would be nice if the log indicated why it was putting the instance in an error state. Even "failed to find suitable host" would be nice.

Tags: scheduler
Tracy Jones (tjones-i)
tags: added: scheduler
Revision history for this message
Michael Turek (mjturek) wrote :

Hello Scott, I ran into this while working on another bug report. I'm going to investigate a bit and see if there's any way for the log to better indicate what went wrong.

Changed in nova:
assignee: nobody → Michael Turek (mjturek)
Michael Turek (mjturek)
Changed in nova:
assignee: Michael Turek (mjturek) → nobody
Michael Turek (mjturek)
Changed in nova:
assignee: nobody → Michael Turek (mjturek)
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/110314

Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/110314
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=2aed78705763edb723a4fd4598eae855b5847650
Submitter: Jenkins
Branch: master

commit 2aed78705763edb723a4fd4598eae855b5847650
Author: Michael Turek <email address hidden>
Date: Mon Aug 4 19:04:04 2014 +0000

    More informative nova-scheduler log after NoValidHost is caught.

    This patch adds a warning log entry for when a NoValidHost
    exception causes a scheduling error. The NoValidHost
    exception's message will be logged before reporting that
    the machine went to error. Previously, all other exceptions
    would show a stack trace. However, since the NoValidHost case
    is skipped, a user may not understand why his/her machine
    went to an ERROR state. This patch seeks to remove any
    confusion.

    Change-Id: I0f01b1095251f5c659fe010c7376f3f6bc56babe
    Closes-Bug: 1336977

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