Excessive logging of "We're on a Pike compute host in a deployment with all Pike compute hosts."

Bug #1719714 reported by Matt Riedemann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Jan Zerebecki
Pike
Fix Committed
Medium
Matt Riedemann

Bug Description

There are two issues with this log message from the resource tracker:

Sep 26 18:44:37 devstack nova-compute[30351]: DEBUG nova.compute.resource_tracker [None req-992d494e-d328-4204-bcfe-80d926cf0a65 demo demo] We're on a Pike compute host in a deployment with all Pike compute hosts. Skipping auto-correction of allocations. {{(pid=30351) _update_usage_from_instance /opt/stack/nova/nova/compute/resource_tracker.py:1071}}

1. If you're in Queens, you don't have Pike compute hosts. So the message is misleading.

2. The message gets logged once per instance on a given compute host every minute when the update_instance_allocation periodic task runs.

We should fix the message in #1 to say something else than Pike specifically, and fix #2 to only log that once per periodic, rather than once per instance per periodic.

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

Changed in nova:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Changed in nova:
assignee: nobody → Jan Zerebecki (jan-zerebecki)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Jan Zerebecki (<email address hidden>) on branch: master
Review: https://review.openstack.org/508261

Changed in nova:
assignee: Jan Zerebecki (jan-zerebecki) → Matt Riedemann (mriedem)
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/526477

Matt Riedemann (mriedem)
Changed in nova:
assignee: Matt Riedemann (mriedem) → Jan Zerebecki (jan-zerebecki)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

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

commit 895e3be3fee74bf71a80e9ccad482fdd408fa42f
Author: Jan Zerebecki <email address hidden>
Date: Thu Sep 28 18:36:15 2017 +0200

    Only log not correcting allocation once per period

    Logging once per instance per periodic task run that nothing was done,
    because it is already correct, is unnecessary.

    Fix the wording of the debug messages, to be correct after future
    releases and account for the ironic driver requesting the same
    behaviour.

    Closes-Bug: 1719714
    Change-Id: Id68b68c261efbe4f18d2fb15cb08240866e22466

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 17.0.0.0b3

This issue was fixed in the openstack/nova 17.0.0.0b3 development milestone.

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

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

commit c3eb6ea3f6f31ae9473d0d2a4fa3f7c3a590d5f2
Author: Jan Zerebecki <email address hidden>
Date: Thu Sep 28 18:36:15 2017 +0200

    Only log not correcting allocation once per period

    Logging once per instance per periodic task run that nothing was done,
    because it is already correct, is unnecessary.

    Fix the wording of the debug messages, to be correct after future
    releases and account for the ironic driver requesting the same
    behaviour.

    Closes-Bug: 1719714
    Change-Id: Id68b68c261efbe4f18d2fb15cb08240866e22466
    (cherry picked from commit 895e3be3fee74bf71a80e9ccad482fdd408fa42f)

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

This issue was fixed in the openstack/nova 16.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.