Scheduler is dumping all instances on a compute host

Bug #1790126 reported by Radoslav Gerganov
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Radoslav Gerganov
Ocata
Fix Committed
Medium
Stephen Finucane
Pike
Fix Released
Medium
Stephen Finucane
Queens
Fix Released
Medium
s10
Rocky
Fix Released
Medium
s10

Bug Description

There is a log message in the scheduler which dumps all instances running on a compute host:

LOG.debug("Update host state with instances: %s", inst_dict)

There are at least 2 problems with this:
  1. it generates huge amount of logs which are not really useful
  2. it crashes when there is an instance with non-ascii name

Changed in nova:
importance: Undecided → Low
assignee: nobody → Radoslav Gerganov (rgerganov)
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/598611

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

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

commit 4fd7c93726eff4cc0b010741ea1772cf19c314fc
Author: Radoslav Gerganov <email address hidden>
Date: Fri Aug 31 13:53:19 2018 +0300

    Do not dump all instances in the scheduler

    There is a log message in the scheduler which dumps all instances
    running on a compute host. There are at least 2 problems with this:
    1. it generates huge amount of logs which are not really useful
    2. it crashes when there is an instance with non-ascii name

    Instead of fixing 2), just print instance UUIDs.

    Closes-Bug: #1790126
    Related-Bug: #1620692
    Change-Id: I0eda1c58a7eb54121230c880818b4b1d0fdf4893

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

Fix proposed to branch: stable/rocky
Review: https://review.openstack.org/601285

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

Reviewed: https://review.openstack.org/601285
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=1a22c456b4c1ccd41ffa1bae5a37ba88652b2081
Submitter: Zuul
Branch: stable/rocky

commit 1a22c456b4c1ccd41ffa1bae5a37ba88652b2081
Author: Radoslav Gerganov <email address hidden>
Date: Fri Aug 31 13:53:19 2018 +0300

    Do not dump all instances in the scheduler

    There is a log message in the scheduler which dumps all instances
    running on a compute host. There are at least 2 problems with this:
    1. it generates huge amount of logs which are not really useful
    2. it crashes when there is an instance with non-ascii name

    Instead of fixing 2), just print instance UUIDs.

    Closes-Bug: #1790126
    Related-Bug: #1620692
    Change-Id: I0eda1c58a7eb54121230c880818b4b1d0fdf4893
    (cherry picked from commit 4fd7c93726eff4cc0b010741ea1772cf19c314fc)

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

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

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

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

Reviewed: https://review.openstack.org/629822
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=16b2a56005cc44973ec87f71037214db73264580
Submitter: Zuul
Branch: stable/queens

commit 16b2a56005cc44973ec87f71037214db73264580
Author: Radoslav Gerganov <email address hidden>
Date: Fri Aug 31 13:53:19 2018 +0300

    Do not dump all instances in the scheduler

    There is a log message in the scheduler which dumps all instances
    running on a compute host. There are at least 2 problems with this:
    1. it generates huge amount of logs which are not really useful
    2. it crashes when there is an instance with non-ascii name

    Instead of fixing 2), just print instance UUIDs.

    Closes-Bug: #1790126
    Related-Bug: #1620692
    Change-Id: I0eda1c58a7eb54121230c880818b4b1d0fdf4893
    (cherry picked from commit 4fd7c93726eff4cc0b010741ea1772cf19c314fc)
    (cherry picked from commit 1a22c456b4c1ccd41ffa1bae5a37ba88652b2081)

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

This issue was fixed in the openstack/nova 19.0.0.0rc1 release candidate.

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

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

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.opendev.org/659832

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

Fix proposed to branch: stable/ocata
Review: https://review.opendev.org/659833

Matt Riedemann (mriedem)
Changed in nova:
importance: Low → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/pike)

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

commit fc8cd8f3b346c8f53e2dfc8e3de9fdcaedb0d35d
Author: Radoslav Gerganov <email address hidden>
Date: Fri Aug 31 13:53:19 2018 +0300

    Do not dump all instances in the scheduler

    There is a log message in the scheduler which dumps all instances
    running on a compute host. There are at least 2 problems with this:
    1. it generates huge amount of logs which are not really useful
    2. it crashes when there is an instance with non-ascii name

    Instead of fixing 2), just print instance UUIDs.

    Closes-Bug: #1790126
    Related-Bug: #1620692
    Change-Id: I0eda1c58a7eb54121230c880818b4b1d0fdf4893
    (cherry picked from commit 4fd7c93726eff4cc0b010741ea1772cf19c314fc)
    (cherry picked from commit 1a22c456b4c1ccd41ffa1bae5a37ba88652b2081)
    (cherry picked from commit 16b2a56005cc44973ec87f71037214db73264580)

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

Reviewed: https://review.opendev.org/659833
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=a8b8524e724141a7abc9e9bc73c324300851f956
Submitter: Zuul
Branch: stable/ocata

commit a8b8524e724141a7abc9e9bc73c324300851f956
Author: Radoslav Gerganov <email address hidden>
Date: Fri Aug 31 13:53:19 2018 +0300

    Do not dump all instances in the scheduler

    There is a log message in the scheduler which dumps all instances
    running on a compute host. There are at least 2 problems with this:
    1. it generates huge amount of logs which are not really useful
    2. it crashes when there is an instance with non-ascii name

    Instead of fixing 2), just print instance UUIDs.

    Closes-Bug: #1790126
    Related-Bug: #1620692
    Change-Id: I0eda1c58a7eb54121230c880818b4b1d0fdf4893
    (cherry picked from commit 4fd7c93726eff4cc0b010741ea1772cf19c314fc)
    (cherry picked from commit 1a22c456b4c1ccd41ffa1bae5a37ba88652b2081)
    (cherry picked from commit 16b2a56005cc44973ec87f71037214db73264580)
    (cherry picked from commit fc8cd8f3b346c8f53e2dfc8e3de9fdcaedb0d35d)

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

This issue was fixed in the openstack/nova ocata-eol release.

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

This issue was fixed in the openstack/nova pike-eol release.

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.