compute resource tracker errors regarding stale allocations should be logged at WARNING instead of DEBUG

Bug #1767553 reported by Lars Kellogg-Stedman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Lars Kellogg-Stedman

Bug Description

We ran into a situation with a Pike deployment (upgraded from Ocata) in which new instances were failing to schedule on a target compute node that was empty. Nova-conductor would throw a NoValidHost exception without any details, and there were no other error messages related to the failure. It turns out this was due to a number of stale resource allocations on the target compute node.

If nova-compute finds stale allocations, it logs a message at DEBUG priority that says:

  There are allocations remaining against the source host that might need to be removed:

Since this is logged at DEBUG priority, the message will not typically be seen by operators in a production environment. However, stale allocations can prevent Nova from scheduling new instances on the compute node, leading to mysterious failures for which there are no obvious errors.

This message should be logged at WARNING priority so that it is visible.

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

Reviewed: https://review.openstack.org/564964
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=a54e5ed00f98b8536080647e5caa90d556d6e809
Submitter: Zuul
Branch: master

commit a54e5ed00f98b8536080647e5caa90d556d6e809
Author: Lars Kellogg-Stedman <email address hidden>
Date: Fri Apr 27 22:43:35 2018 -0400

    log stale allocations as WARNING instead of DEBUG

    Stale resource allocations can prevent Nova from scheduling new
    instances on a host that otherwise has sufficient resources available.
    Nova would log a message about this situation on the affected compute
    node, but it was logged at DEBUG priority and so would typically not
    be visible in a production environment.

    This commit modifies Nova to log the message as a warning instead.

    Change-Id: I347d2ab0077c4d9b62bc169af9e039d00ec214fa
    Closes-bug: #1767553

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/567271

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/567273

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

Reviewed: https://review.openstack.org/567273
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=12a3b698d17672ec0277dff4e96c44a92186aab1
Submitter: Zuul
Branch: stable/queens

commit 12a3b698d17672ec0277dff4e96c44a92186aab1
Author: Lars Kellogg-Stedman <email address hidden>
Date: Fri Apr 27 22:43:35 2018 -0400

    log stale allocations as WARNING instead of DEBUG

    Stale resource allocations can prevent Nova from scheduling new
    instances on a host that otherwise has sufficient resources available.
    Nova would log a message about this situation on the affected compute
    node, but it was logged at DEBUG priority and so would typically not
    be visible in a production environment.

    This commit modifies Nova to log the message as a warning instead.

    Change-Id: I347d2ab0077c4d9b62bc169af9e039d00ec214fa
    Closes-bug: #1767553
    (cherry picked from commit a54e5ed00f98b8536080647e5caa90d556d6e809)

tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/pike)

Reviewed: https://review.openstack.org/567271
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=852cf3bca7e4bf768f9c3e478e5b1e919df57977
Submitter: Zuul
Branch: stable/pike

commit 852cf3bca7e4bf768f9c3e478e5b1e919df57977
Author: Lars Kellogg-Stedman <email address hidden>
Date: Fri Apr 27 22:43:35 2018 -0400

    log stale allocations as WARNING instead of DEBUG

    Stale resource allocations can prevent Nova from scheduling new
    instances on a host that otherwise has sufficient resources available.
    Nova would log a message about this situation on the affected compute
    node, but it was logged at DEBUG priority and so would typically not
    be visible in a production environment.

    This commit modifies Nova to log the message as a warning instead.

    Change-Id: I347d2ab0077c4d9b62bc169af9e039d00ec214fa
    Closes-bug: #1767553
    (cherry picked from commit a54e5ed00f98b8536080647e5caa90d556d6e809)
    (cherry picked from commit 12a3b698d17672ec0277dff4e96c44a92186aab1)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 17.0.4

This issue was fixed in the openstack/nova 17.0.4 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 16.1.3

This issue was fixed in the openstack/nova 16.1.3 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 18.0.0.0b2

This issue was fixed in the openstack/nova 18.0.0.0b2 development milestone.

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.