Bug 1478274 - notification_format in nova.conf should be set to unversioned as there is no consumer for versioned
Summary: notification_format in nova.conf should be set to unversioned as there is no ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 11.0 (Ocata)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z5
: 11.0 (Ocata)
Assignee: Sven Anderson
QA Contact: Archit Modi
URL:
Whiteboard:
Depends On: 1551137
Blocks: 1381612 1579316
TreeView+ depends on / blocked
 
Reported: 2017-08-04 07:25 UTC by Martin Schuppert
Modified: 2022-07-09 09:46 UTC (History)
9 users (show)

Fixed In Version: openstack-tripleo-heat-templates-6.2.7-6.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1558901 1579316 (view as bug list)
Environment:
Last Closed: 2018-05-18 17:02:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 494628 0 'None' MERGED Set notification_format to 'unversioned' 2020-12-14 09:25:24 UTC
Red Hat Issue Tracker OSP-16929 0 None None None 2022-07-09 09:46:24 UTC
Red Hat Knowledge Base (Solution) 3139721 0 None None None 2017-08-04 08:38:28 UTC
Red Hat Product Errata RHSA-2018:1627 0 None None None 2018-05-18 17:04:45 UTC

Description Martin Schuppert 2017-08-04 07:25:38 UTC
Description of problem:

With OSP11 the default for notification_format is both:

# Specifies which notification format shall be used by nova.
#
# The default value is fine for most deployments and rarely needs to be changed.
# This value can be set to 'versioned' once the infrastructure moves closer to
# consuming the newer format of notifications. After this occurs, this option
# will be removed (possibly in the "P" release).
#
# Possible values:
# * unversioned: Only the legacy unversioned notifications are emitted.
# * versioned: Only the new versioned notifications are emitted.
# * both: Both the legacy unversioned and the new versioned notifications are
#   emitted. (Default)
#
# The list of versioned notifications is visible in
# http://docs.openstack.org/developer/nova/notifications.html
#  (string value)
# Allowed values: unversioned, versioned, both
# Deprecated group;name - DEFAULT;notification_format
#notification_format=both

As a result messages get sent to both unversioned and versioned queues, but there is no consumer for the versioned_notifications queues. As a result they grow up slowly:

# rabbitmqctl list_queues name consumers messages| grep notifications
notifications.error     3       0
notifications.warn      3       0
notifications.debug     3       0
notifications.critical  3       0
notifications.sample    3       0
notifications.audit     3       0
versioned_notifications.info    0       26
notifications.info      3       0

For now notification_format should be set to unversioned as default on controllers and computes.

Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1. install OSP11
2. start / stop some instances
3. versioned_notifications.info start to grow and there is no consumer

Actual results:


Expected results:


Additional info:

Could be done like this using ExtraConfig sections until the default changed.
    ControllerExtraConfig:
        nova::config::nova_config:
            notifications/notification_format:
                value: 'unversioned'
    NovaComputeExtraConfig:
        nova::config::nova_config:
            notifications/notification_format:
                value: 'unversioned'

Comment 13 errata-xmlrpc 2018-05-18 17:02:55 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:1627


Note You need to log in before you can comment on or make changes to this bug.