When the nova api is executing under uWSGI or MOD_WSGI
the lifetime of the amqp heartbeat thread is controlled
by the wsgi server. As a result when the nova api is run
in this configuration we expect that the heartbeat thread
will be suspended and heartbeats will be missed when the wsgi
server suspends execution of the wsgi application.
This change adds a python logging filter to suppress
the reporting of heartbeat warnings as this behavior is
expected. Since the operator cannot do anything to address
the issue the warning is just noise and many operators
and customers find it to be off-putting.
Change-Id: I642b1e3ed6de2be4dcc19fe214f84095d2e1d31a
Closes-Bug: #1825584
(cherry picked from commit d6f664524dfa4eecbe3e16fda0fec5359faf84c6)
Reviewed: https:/ /review. opendev. org/728054 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=1caddc4250b 4acbdb8a945c8f2 6a0792bee5e2ed
Committed: https:/
Submitter: Zuul
Branch: stable/ussuri
commit 1caddc4250b4acb db8a945c8f26a07 92bee5e2ed
Author: Sean Mooney <email address hidden>
Date: Tue Apr 28 23:20:16 2020 +0100
Silence amqp heartbeat warning
When the nova api is executing under uWSGI or MOD_WSGI
the lifetime of the amqp heartbeat thread is controlled
by the wsgi server. As a result when the nova api is run
in this configuration we expect that the heartbeat thread
will be suspended and heartbeats will be missed when the wsgi
server suspends execution of the wsgi application.
This change adds a python logging filter to suppress
the reporting of heartbeat warnings as this behavior is
expected. Since the operator cannot do anything to address
the issue the warning is just noise and many operators
and customers find it to be off-putting.
Change-Id: I642b1e3ed6de2b e4dcc19fe214f84 095d2e1d31a cbe3e16fda0fec5 359faf84c6)
Closes-Bug: #1825584
(cherry picked from commit d6f664524dfa4ee