compute.metrics.update is not a versioned notification and not whitelisted. See ./doc/source/notification.rst

Bug #1717943 reported by Matthew Thode
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Matt Riedemann
Newton
Fix Released
Medium
Matt Riedemann
Ocata
Fix Released
Medium
Matt Riedemann
Pike
Fix Released
Medium
Matt Riedemann

Bug Description

From gibi:

The metrics.update should have been whitelisted but we didn't found that as there is no test coverage for that notification

I found it out when updating my config for pike.

Revision history for this message
Matt Riedemann (mriedem) wrote :

I'm not sure what "whitelisted" means here - does that mean it should simply be listed here?

https://github.com/openstack/nova/blob/0aeaa2bce8ad15bc2f28e00b30d688514b992e13/nova/rpc.py#L250

tags: added: notifications
Revision history for this message
Matt Riedemann (mriedem) wrote :
Changed in nova:
status: New → Triaged
assignee: nobody → Matt Riedemann (mriedem)
importance: Undecided → Medium
Revision history for this message
Matt Riedemann (mriedem) wrote :

To recreate, configure nova.conf to set:

[DEFAULT]
compute_monitors = nova.compute.monitors.cpu.virt_driver

Revision history for this message
Matthew Thode (prometheanfire) wrote :

Another warning is emitted if the following is missing from the [DEFAULT] section of nova.conf.

compute_monitors = nova.compute.monitors.cpu.virt_driver

when I add that to the config I get the follow up warning (
compute.metrics.update is not a versioned notification and not whitelisted. See ./doc/source/notification.rst)

Revision history for this message
Matt Riedemann (mriedem) wrote :

Since gerrit is currently down I've attached a patch.

Changed in nova:
status: Triaged → In Progress
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/504978

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

Reviewed: https://review.openstack.org/504978
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=963bf956ce93ba02bf9f38f979fe914d090b76d4
Submitter: Jenkins
Branch: master

commit 963bf956ce93ba02bf9f38f979fe914d090b76d4
Author: Matt Riedemann <email address hidden>
Date: Mon Sep 18 15:30:18 2017 -0400

    Account for compute.metrics.update in legacy notification whitelist

    The compute.metrics.update legacy unversioned notification was missing
    from the whitelist because the only test for it was mocking out the
    rpc notifier call, which is what validates the entries in the whitelist.

    This adds the entry to the whitelist and fixes the test to actually
    use the notifier code.

    Change-Id: Ie278ca58c371b8e3bd4861e6c86ebcf30c6778ea
    Closes-Bug: #1717943

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

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.openstack.org/509440

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

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/509441

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

Reviewed: https://review.openstack.org/509441
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=1d2cfc4f5689fa1d88fb9aa13be14a6b7cc17a89
Submitter: Zuul
Branch: stable/newton

commit 1d2cfc4f5689fa1d88fb9aa13be14a6b7cc17a89
Author: Matt Riedemann <email address hidden>
Date: Mon Sep 18 15:30:18 2017 -0400

    Account for compute.metrics.update in legacy notification whitelist

    The compute.metrics.update legacy unversioned notification was missing
    from the whitelist because the only test for it was mocking out the
    rpc notifier call, which is what validates the entries in the whitelist.

    This adds the entry to the whitelist and fixes the test to actually
    use the notifier code.

    Change-Id: Ie278ca58c371b8e3bd4861e6c86ebcf30c6778ea
    Closes-Bug: #1717943
    (cherry picked from commit 963bf956ce93ba02bf9f38f979fe914d090b76d4)

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

Reviewed: https://review.openstack.org/509440
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=1c88f3f75d827610be925f68b076253dba76cfcc
Submitter: Zuul
Branch: stable/ocata

commit 1c88f3f75d827610be925f68b076253dba76cfcc
Author: Matt Riedemann <email address hidden>
Date: Mon Sep 18 15:30:18 2017 -0400

    Account for compute.metrics.update in legacy notification whitelist

    The compute.metrics.update legacy unversioned notification was missing
    from the whitelist because the only test for it was mocking out the
    rpc notifier call, which is what validates the entries in the whitelist.

    This adds the entry to the whitelist and fixes the test to actually
    use the notifier code.

    Change-Id: Ie278ca58c371b8e3bd4861e6c86ebcf30c6778ea
    Closes-Bug: #1717943
    (cherry picked from commit 963bf956ce93ba02bf9f38f979fe914d090b76d4)

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

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

commit 1a1b65fac9ed429516338bc468144bf742c94824
Author: Matt Riedemann <email address hidden>
Date: Mon Sep 18 15:30:18 2017 -0400

    Account for compute.metrics.update in legacy notification whitelist

    The compute.metrics.update legacy unversioned notification was missing
    from the whitelist because the only test for it was mocking out the
    rpc notifier call, which is what validates the entries in the whitelist.

    This adds the entry to the whitelist and fixes the test to actually
    use the notifier code.

    Change-Id: Ie278ca58c371b8e3bd4861e6c86ebcf30c6778ea
    Closes-Bug: #1717943
    (cherry picked from commit 963bf956ce93ba02bf9f38f979fe914d090b76d4)

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

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

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

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

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

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

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

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